-
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
Libertinus Serif font's small caps face doesn't work (needs a workaround) #624
Comments
Actually the issue happens with Babel too if I set the font family with \babelfont{rm}{Libertinus Serif} With that command there must be the same font options as described in my previous message: \babelfont{rm}[
SmallCapsFont={* Regular},
SmallCapsFeatures={Language=Default, Letters=SmallCaps}
]{Libertinus Serif} So probably this is not much about Polyglossia and more about Libertinus Serif and Fontspec. I don't know. |
I'm not sure what is the source of the problem, but I'm guessing it is a bug in fontspec. The problem occurs when fontspec try to load the font with the language tag (which polyglossia \documentclass{article}
\usepackage{fontspec}
\setmainfont{Libertinus Serif}
\begin{document}
\textsc{small caps} normal text
\addfontfeature{Language=Finnish}
\textsc{small caps} normal text
\end{document} notice in the log file how in the second loading of the font, However, if I load the font directly with luaotfload, \documentclass{article}
\usepackage{fontspec}
\begin{document}
\font\foo="LibertinusSerif:mode=node;script=latn;language=FIN;+tlig;"\foo
\textsc{small caps} normal text
\setmainfont{Libertinus Serif}[Language=Finnish]
\textsc{small caps} normal text
\end{document} As a workaround, you can define the finish font with I'll close for now, but feel free to reopen if you think I misunderstood anything. |
Maybe related to latex3/fontspec#449 |
Libertinus Serif font family has small caps face but it does not work with Polyglossia normally. Here is an example document:
The
\textsc{...}
part is displayed with normal upright font face and there is an error in the compile output (lualatex
):However, with Babel package, this all works without errors. I know two workarounds for Polyglossia. One is by adding
\rmfamily
command at the beginning ofdocument
environment.Another workaround is defining the font family with these options:
\setmainfont{Libertinus Serif}[ SmallCapsFont={* Regular}, SmallCapsFeatures={Language=Default, Letters=SmallCaps}]
I don't know it this is a Polyglossia bug but it triggers with it (and not with Babel), so I dare the report it here.
The text was updated successfully, but these errors were encountered: