latex3 / fontspec

Font selection in LaTeX for XeTeX and LuaTeX
http://latex3.github.io/fontspec/
LaTeX Project Public License v1.3c
276 stars 33 forks source link

Inconsistent letterforms for \mathrm and friends under LuaTeX #388

Open RuixiZhang42 opened 4 years ago

RuixiZhang42 commented 4 years ago

Description

When using Stylistic Sets to obtain alternative letterforms for text faces, XeTeX will correctly use the changed faces for \mathrm and friends. But LuaTeX will not.

Check/indicate

Minimal example demonstrating the issue

\documentclass{article}

\usepackage{amsopn}% For \DeclareMathOperator
\usepackage{fontspec}
\setmainfont{SourceSansPro-Regular.otf}[
  StylisticSet=2
  % Single-story lowercase a and straight-terminal lowercase l
]
\DeclareMathOperator\Stable{Stable}

\begin{document}
\ifx\XeTeXversion\undefined Lua\else Xe\fi LaTeX:
Stable \& $\Stable$.
\end{document}

Further details

luatex xetex