Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CharacterVariant doesn't work for smaller font sizes with LuaTeX #587

Open
teatimeguest opened this issue May 9, 2022 · 0 comments
Open

Comments

@teatimeguest
Copy link

Description

When using LuaTeX, the CharacterVariant feature doesn't work for small font sizes such as \scriptstyle and \footnotesize. This problem doesn't occur with XeTeX.

  • ✗ Relevant for XeTeX
  • ✓ Relevant for LuaTeX
  • ✓ Issue tracker has been searched for similar issues?

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{STIXTwoMath-Regular.otf}[CharacterVariant=3]
\begin{document}
  $\varnothing$
  % The following produce incorrect output:
  $\scriptstyle\varnothing$
  $\scriptscriptstyle\varnothing$
  \footnotesize$\varnothing$
  \scriptsize$\varnothing$
  \tiny$\varnothing$
\end{document}

Further details

Compiling the above code yields the following output:

  • with LuaTeX

  • with XeTeX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant