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

Renderer=Basic sometimes munches on characters. #241

Open
michaelcadilhac opened this issue Nov 26, 2022 · 1 comment
Open

Renderer=Basic sometimes munches on characters. #241

michaelcadilhac opened this issue Nov 26, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@michaelcadilhac
Copy link

(From this stackexchange question)

MWE:

\documentclass{article}
\usepackage{fontspec}
\setmainfont[Renderer=Basic]{TeX Gyre Pagella}

\begin{document}
rrrrrrvrrrrr

a-\emph{b}
\end{document}

When rendered using lualatex, the emphasized "b" does not appear; any text put after the "b" will also be suppressed. If I change the v for an r in the first string, then the "b" appears. Same thing if Basic is changed to Node.

Context: This setmainfont appears in the default tufte-book configuration.
Versions: This is LuaHBTeX, Version 1.15.0 (TeX Live 2022/Arch Linux), fontspec 2022/01/15 2.8a

@zauguin zauguin self-assigned this Nov 26, 2022
@zauguin zauguin added the bug Something isn't working label Nov 26, 2022
@zauguin
Copy link
Member

zauguin commented Nov 27, 2022

This is caused by two LuaTeX engine bugs. I send possible fixes to the developers (https://mailman.ntg.nl/pipermail/dev-luatex/2022-November/006709.html and https://mailman.ntg.nl/pipermail/dev-luatex/2022-November/006710.html) but even if they get merged the fix will only be available with the next TeX Live version (aka. TeX Live 2023).

This shouldn't affect fonts used in math mode though and outside of math mode there are almost no good uses for Renderer=Basic, so for now the best solution is not to do that.

Context: This setmainfont appears in the default tufte-book configuration.

That's a tufte-book bug and should probably be reported. Setting Renderer=Basic for the main text font effectively disables modern font handling and will most likely break whenever non-english text is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants