latex3 / unicode-math

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

Stylistic set substitution doesn't work with \scriptstyle #484

Open zepinglee opened 6 years ago

zepinglee commented 6 years ago

Description

The letters in \scriptstyle does not change to variant form.

Check/indicate

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{unicode-math}
\setmathfont[StylisticSet=2]{STIX2Math.otf}
\begin{document}
\[
  \displaystyle g \textstyle g \scriptstyle g \scriptscriptstyle g
\]
\end{document}

Here is the result:

screen shot 2018-07-17 at 10 00 08 pm

Further details

I am using TeX Live 2018 with all packages up-to-date.

The example works fine with LuaLaTeX (tested by moewe). But XeLaTeX does not change the letters.