latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
239 stars 28 forks source link

Script style of prime #503

Closed stone-zeng closed 5 years ago

stone-zeng commented 5 years ago

Description

For some fonts (e.g. XITS Math), the ssty2 of \prime will not be used in the script script level:

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{XITS Math}
% \setmathfont{TeX Gyre Termes Math}

\begin{document}
\[ {f\prime f'}^{{f\prime f'}^{f\prime f'}} \]
\end{document}

It gives the following:

gid2503 u1D453
gid906  uni2032
gid2503 u1D453
gid3868 uni2032.ssty1
gid2503 u1D453
gid3868 uni2032.ssty1
gid2503 u1D453
gid3868 uni2032.ssty1
gid2503 u1D453
gid3868 uni2032.ssty1
gid2503 u1D453
gid3868 uni2032.ssty1

However, for TeX Gyre Termes Math, the sts variant can be used correctly:

gid474  u1D453
gid4035 minute
gid474  u1D453
gid4042 minute.st
gid1401 u1D453.st
gid4042 minute.st
gid1401 u1D453.st
gid4049 minute.sts
gid1402 u1D453.sts
gid4049 minute.sts
gid1402 u1D453.sts
gid4049 minute.sts

I have check the font features, but the ssty looks the same (except for the glyphs' names) for the two fonts.

Check/indicate

Further details

stone-zeng commented 5 years ago

In Fira Math, this issue is fixed in https://github.com/firamath/firamath/commit/4df09ecfeb9b4d4f288c7605a974d58ec9d08351, and more details are discussed in #510, so I will close it.