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

\setmathfontface does not respects Style key in lulatex #621

Open borisveytsman opened 9 months ago

borisveytsman commented 9 months ago

Description

\setmathfontface does not recognize Style= key in font options if luatex engine is used

Add info or delete as appropriate:

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{unicode-math}
\setmathfontface\symbsw{Arsenal-Regular.otf}[Style=Swash]
\begin{document}
$\symbsw{ABCD}$
\end{document}

Further details

This example defines a swash alphabet in XeLaTeX, but LuaLaTeX drops the swashes. Rawfeatures=swsh has the same effect

khaledhosny commented 4 months ago

\setmathfontface does not seem to set mode=base which is required in LuaTeX for fonts used in Math mode.

khaledhosny commented 4 months ago

The corresponding fontspec/unicode-math font option would be Renderer=Basic.