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

Use mathfontdimen font feature in LuaTeX #559

Closed zauguin closed 2 years ago

zauguin commented 3 years ago

Status

READY

Description

unicode-math sets \fontdimens to emulate either traditional TeX or XeTeX fonts. Since this functionality is usefful n a more general context than just with unicode-math, it has been added to luaotfload directly. This changes unicode-math to make use of this new luaotfload functionality and therefore makes font loading faster, avoids caching issues, does not require to load fonts with weird scaling factors and simplifies the code.

The current code still loads the family 2/3 funts scaled by 0.9999/1.001 to avoid small changes to existing documents and keep compatibility with XeTeX.

Todo

Minimal example demonstrating the new/fixed functionality

n/a (Only refactors existing functionality)

wspr commented 2 years ago

Excellent -- thanks very much for implementing this.