latex3 / unicode-math

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

range={\backprime} or range={"2035} fails #529

Open ghost opened 4 years ago

ghost commented 4 years ago

Description

Getting the reversed prime ‵ (U+2035) from TeX Gyre Termes Math fails when the main math font is Cambria Math.

Add info or delete as appropriate:

Minimal example demonstrating the issue

\documentclass{standalone}
\usepackage{unicode-math}
\setmathfont{cambria.ttc}[FontIndex=1]
\setmathfont{texgyretermes-math.otf}[range={\backprime}]%%% fails
%\setmathfont[Ligatures=TeX,range={\backprime}]{texgyretermes-math.otf}%%% fails
%\setmathfont[Ligatures=TeX,range={"2035}]{texgyretermes-math.otf}%%% fails
%\setmathfont[range={\backprime}]{texgyretermes-math.otf}%%% fails
%\setmathfont[range={"2035}]{texgyretermes-math.otf}%%% fails
%\setmathfont[Ligatures=TeX,range={"2035,\backprime}]{texgyretermes-math.otf}%%%  works
%\setmathfont[range={"2035,\backprime}]{texgyretermes-math.otf}%%%  works
\begin{document}
\(\sigma^{\backprime}\)
\end{document}

Further details

Output: failing output

Expected: σ‵