latex3 / fontspec

Font selection in LaTeX for XeTeX and LuaTeX
http://latex3.github.io/fontspec/
LaTeX Project Public License v1.3c
277 stars 34 forks source link

Italic not correctly selected for Libertinus Serif #377

Closed wujastyk closed 2 years ago

wujastyk commented 5 years ago

Description

The Libertinus Serif and Sans fonts produce bold italic when ordinary italic is invoked. This behaviour only started with the update to TeXlive 2019. With TL2018, there was no problem.

Check/indicate

Output of MWE below:

helloworld

Minimal example demonstrating the issue


% !TEX program = xelatex
% !TEX encoding = UTF-8
\documentclass{minimal}
\usepackage{fontspec}
\begin{document}
\setmainfont{Libertinus Serif}
Hello world! \emph{Hello world!}

\setmainfont{Linux Libertine O}
Hello world! \emph{Hello world!}
\end{document}

## Further details
wujastyk commented 5 years ago

Is the answer to have a file LibertinusSerif.fontspec with the following content?

\defaultfontfeatures[Libertinus Serif]
  {
  Extension = .otf ,
  UprightFont = LibertinusSerif-Regular,
  BoldFont = LibertinusSerif-Bold,
  ItalicFont = LibertinusSerif-Italic,
  BoldItalicFont = LibertinusSerif-BoldItalic
  }

and similar for Sans?

u-fischer commented 2 years ago

Closing as it looks fine in a current texlive 2022.