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

Use mathfontdimen font feature in LuaTeX #559

Merged
merged 1 commit into from
Jan 17, 2022
Merged

Conversation

zauguin
Copy link
Member

@zauguin zauguin commented Jan 1, 2021

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

  • Tests added to cover new/fixed functionality
  • Documentation added if necessary
  • Code follows expl3 style guidelines

Minimal example demonstrating the new/fixed functionality

n/a (Only refactors existing functionality)

@wspr
Copy link
Collaborator

wspr commented Jan 17, 2022

Excellent -- thanks very much for implementing this.

@wspr wspr merged commit 2ed9407 into latex3:working Jan 17, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants