-
Notifications
You must be signed in to change notification settings - Fork 50
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
breaking font selection with LuaLaTeX and fontspec #650
Comments
It's an issue with the Harfbuzz renderer rather than \documentclass{book}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX,Renderer=Harfbuzz]{TeX Gyre Termes}
\begin{document}
\slshape
This is a sentence.
\end{document} |
The problem is caused by the fact that
|
You can change the default renderer with the |
It is not really class dependent, I don't think. The difference between \documentclass{article}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX,Renderer=Harfbuzz]{TeX Gyre Termes}
\begin{document}
\slshape
This is a sentence.
\end{document} also reproduces. |
Not if you add, e.g., |
This is a bug in I'm closing this ticket, but feel free to reopen it if you think my analyze is wrong. |
This could happen if a shape is not found and substituted
It seems, that
polyglossia
breaks fonts names with whitespaces when using LuaLaTeX andfontspec
, e.g.:results in:
So it seems, that the font name is
TeX
.A workaround would be to load
polyglossia
after\setmainfont
or to useTeXGyreTermes
(without spaces) as font name.There error does not occur with XeLaTeX instead of LuaLaTeX.
See also https://tex.stackexchange.com/q/721772/277964.
I'm not absolutely sure, that this is a
polyglossia
issue, but because the error does not occur withoutpolyglossia
or when usingbabel
instead ofpolyglossia
, I report it here.The text was updated successfully, but these errors were encountered: