YuanshengZhao / Garamond-Math

An OTF math font matching the EB Garamond.
SIL Open Font License 1.1
110 stars 6 forks source link

No curved partial in text mode with StylisticSet={2} #14

Open ArchangeGabriel opened 5 years ago

ArchangeGabriel commented 5 years ago

MNWE:

\documentclass{standalone}

\usepackage{unicode-math}
\setmathfont[StylisticSet={2}]{Garamond-Math.otf}

\begin{document}

Text: $\frac{\partial f}{\partial x}$.

Math:
$\displaystyle
    \frac{\partial f}{\partial x}
$

\end{document}

Output: test.pdf

YuanshengZhao commented 5 years ago

This should be due to that the map partialriff -> partialdiff.x.ss is not set correctly. I will fix this after finishing current fix on spacings.

YuanshengZhao commented 5 years ago

This should have been fixed now.

update: Seems with LuaTeX this is not working... There is still somethings to to.

YuanshengZhao commented 5 years ago

ss06 and ss10 also does not work on LuaTeX. Seems that all combination of look-ups is not working.

ndandanov commented 4 years ago

Hi @YuanshengZhao, Thank you for your excellent work! I am using XeLaTeX and it seems that ss10 for Garamond-Math does not work with it, too.

YuanshengZhao commented 4 years ago

@ndandanov Could you please tell me the version you are using and provide a minimum example? The current version (both on GitHub & ctan) does not produce error with XeTeX (though still has some problems with LuaTeX):

\documentclass{article}
\usepackage[math-style=ISO, bold-style=ISO]{unicode-math}
\setmathfont{Garamond-Math.otf}[Path=./,StylisticSet={10}]
\begin{document}
  \[h_{h_h}\hbar_{\hbar_\hbar}\]
\end{document}

image

ndandanov commented 4 years ago

@YuanshengZhao, Sorry for the confusion, this turned out to be a misconfiguration on my end. I had the following in my preamble:

    \RequirePackage{mathspec}
    \setmathsfont(Digits,Latin,Greek)[Numbers={Proportional}]{EB Garamond}

After removing this, the stylistic set works as expected. I could not find any significant difference between XeTeX and LuaTeX. Thank you for the beautiful font and for the support!

YuanshengZhao commented 4 years ago

In LuaTeX the following are not working:

The reason might be that in LuaTeX all nesting of glyph substitutions are ignored, and I have no idea how to make this work currently. The above case is for script: h -> h.out_bending -> h.out_bending.ssty (a slightly thicker glyph for script) or h -> h.ssty -> h.out_bending.ssty. And similar situation for the latter.