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

Unable to use some specific kinds of font variants (ExtraBold, Heavy, etc.) #1088

Open
baruchel opened this issue Oct 12, 2022 · 1 comment
Labels
bug Triaged as a bug

Comments

@baruchel
Copy link

Some variants of installed fonts can't be used
Trying to use Extrabold or Heavy variants of correctly installed Iosevka fonts make rst2pdf fall back to the regular variant.

The fonts are loaded from the stylesheet in the fontName attribute with the Name-Variant syntax, and it actually works well for standard variant names, but trying to do the same with Extrabold or Heavy doesn't work. Many workarounds are tried (putting the variant name in the font name and/or the variant name), but none could help loading the font.

Fonts are correctly listed with fc-list.

@lornajane
Copy link
Contributor

I think the font loading only accepts four weights (normal, bold, italic and bolditalic), I can replicate this problem.

@lornajane lornajane added the bug Triaged as a bug label Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Triaged as a bug
Projects
None yet
Development

No branches or pull requests

2 participants