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

Switch to lualatex and New Computer Modern #6418

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tkoeppe
Copy link
Contributor

@tkoeppe tkoeppe commented Jul 25, 2023

This is experimental.

LuaTeX seems to have come a long way: it now uses harfbuzz for glyph shaping, and most microtype features seem to work with it now. We could consider switching from pdfTeX to LuaTeX.

I see two main options:

  1. Just switch to LuaTeX but leave lmodern/fontenc as is. This provides a very similar result, but also doesn't give us much benefit.
  2. Switch to LuaTeX, and use fontspec and the New Computer Modern family (which I believe is derived from Latin modern). This is what this PR does.

Pros:

  • Better unicode support, access to more scripts and glyphs.
  • Better indexing (@godbyk, is that true?).
  • Potential access to more fonts, should we care.

Cons:

  • Slower.
  • New Computer Modern doesn't have nearly as many optical sizes as Latin Modern.
  • Despite microtype claiming support, protrusions seem less sophisticated than with pdfTeX.
  • Using NewCM for maths requires the unicode-math package, which is still advertised as "experimental".
  • Hard to be sure if everything is still OK.

If you'd like to weigh in, it would be very useful if you could review the resulting PDF and see if you notice any major defects (e.g. look at some areas that you might recall as being typographically tricky in the past).

We don't have to make a decision any time soon, but it might be worth to start looking into this.

@tkoeppe tkoeppe force-pushed the luatex branch 2 times, most recently from 5000cf4 to 56fc619 Compare July 25, 2023 22:30
@tkoeppe
Copy link
Contributor Author

tkoeppe commented Jul 26, 2023

Slower.

Actually quite a lot slower: the github action build seems to take some 20min now, up from 5min.

@wg21bot wg21bot added the needs rebase The pull request needs a git rebase to resolve merge conflicts. label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs rebase The pull request needs a git rebase to resolve merge conflicts.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants