# Scaling of delimiters and \widetilde does not work with Libertinus

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:

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}


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.

• 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
• 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
• 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
• This may be fixed in the latest version of the font, see issue 102. – Caleb Oct 30 '17 at 16:24