fontspec icon indicating copy to clipboard operation
fontspec copied to clipboard

Inconsistent letterforms for \mathrm and friends under LuaTeX

Open RuixiZhang42 opened this issue 6 years ago • 0 comments

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

  • [ ] Relevant for XeTeX
  • [x] Relevant for LuaTeX
  • [x] Issue tracker has been searched for similar issues?

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

RuixiZhang42 avatar Oct 27 '19 15:10 RuixiZhang42