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

Luatex: use scriptstyle sizes from the otf file if available #401

Merged
merged 1 commit into from
Aug 31, 2017

Conversation

d1saster
Copy link
Contributor

So far only in XeTeX the otf-file parameters ScriptPercentScaleDown and ScriptScriptPercentScaleDown were honored by the loading routines. This commit patches \@@_declare_math_sizes in order to get the same behavior for luatex.

There is probably no use in checking \fontdimen 10 in luatex,
since it is afaik not set.
@wspr
Copy link
Collaborator

wspr commented Aug 31, 2017

Thanks — I wonder if this behaviour changed at some point. I thought all the extended fontdimens were set in the same way in both engines, but apparently not.

I haven't completely decided whether it would be "cleaner" in the LuaTeX code to just set the fontdimens manually when the font is loaded so there's a conditional loading section and then no branch. OTOH maybe the indirection is a bit messy in the long term and the approach you've taken here is easier to maintain if there's ever more of a split between the XeTeX and LuaTeX code.

@wspr wspr merged commit e085694 into latex3:master Aug 31, 2017
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.

2 participants