Skip to content

\setmathfont option range=\mathalpha fails for upshape #653

@jiaopjie

Description

@jiaopjie

When switch math font with the option range=\mathalpha, the upshape fails to switch but other shapes succeeds.

% !TeX program = xelatex
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{TeX Gyre Schola Math}
\def\mathtest{
  \(
    \begin{array}{l}
      \symup{ABCDEFGHIJKLMNOPQRSTUVWXYZ} \\
      \symit{ABCDEFGHIJKLMNOPQRSTUVWXYZ} \\
      \symbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ} \\
    \end{array}
  \)
}
\begin{document}
\raggedright
\mathtest
\setmathfont{XITS Math}[range={\mathalpha}]
\mathtest
\end{document}

The result:

Image

It is similar to issue #649

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions