10

I’m using XeLaTeX and I recently started using the Libertinus font family. I ran into the problem that scaling of delimiters does not always seem to work. As an example, take the following code:

\documentclass{article}

\usepackage{unicode-math}
\setmainfont{Libertinus Serif}
\setmathfont{Libertinus Math}

\begin{document}

\[
  \left( \frac{a}{b} \right) \quad
  \left[ \frac{a}{b} \right] \quad
  \left\langle \frac{a}{b} \right\rangle \quad
  \left. \frac{a}{b} \middle/ \frac{c}{d} \right. \quad
  \left. \frac{a}{b} \middle\backslash \frac{c}{d} \right.
\]

\end{document}

This results in the following output:

output for different delimiters

While the scaling works in the first two cases, the other cases are unaffected.

On a similar note, \widetilde does not seem to scale with the length of its argument while \widehat does. I suspect these problem are somehow related, but I’m not sure of it.

\documentclass{article}

\usepackage{unicode-math}
\setmainfont{Libertinus Serif}
\setmathfont{Libertinus Math}

\begin{document}

\[
  \widetilde{abcdefg} \quad \widehat{abcdefg}
\]

\end{document}

widehat works while widetilde does not

I’ve been trying to figure out where this problem comes from, but I had no success so far. I first suspected that the Libertinus Math font is missing some features, but especilly the difference between \widetilde and \widehat seems too strange for that (surely, if one of them is supported then the other should be too).

I would like to know how to make the delimiters and widetilde scale appropriately, preferably without changing the font.

  • 1
    I can confirm same in texlive 2017 possibly a font issue but I don't feel up to trying to understand the font tables in fontforge tonight someone may answer. – David Carlisle May 17 '17 at 20:39
  • 2
    It looks like a bug in the fonts to me, so I would suggest to report it: github.com/khaledhosny/libertinus – Ulrike Fischer May 17 '17 at 21:15
  • 3
    Confirmed also with the recent update of Libertinus (on TL 2017) – egreg May 17 '17 at 21:46
  • I see similar issues with \widehat and \widetilde under LuaLaTeX when using the Libertinus Math font. The problem is not present for \widehat under XeLaTeX but remains for \widetilde. – John Aug 30 '17 at 12:42
  • 2
    This may be fixed in the latest version of the font, see issue 102. – Caleb Oct 30 '17 at 16:24
3

The problem has been fixed and the MWE now (in the current version 6.6) produces the following output :

delimiters work widetilde works

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.