-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Using font family multiple times results in default font #977
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
Comments
Spent an hour trying to figure out why, and then I remembered that I already know why. The three consecutive That's a totally valid query, and it works on Linux and Windows. But this bug in Pango causes the bug you're seeing. See my comment on the original |
Thanks a lot for investigating @chearon! |
No problem, thanks for reporting. I plan on making a PR soon. This should work out-of-the-box on macOS. |
Works around https://bugzilla.gnome.org/show_bug.cgi?id=762873 for when `ctx.font` is set to something that resolves to more than one registered font with identical SFNT names
macOS font selection improvement (see #977)
Should be fixed in pango 1.42.3? Could someone confirm? |
Yep, fixed in exactly that version. |
Issue or Feature
When registering multiple font files with the same font family, but different styles (like in
examples/font.js
), the default font is used instead of the given font files. When using different font family names for every font file, it works.Right now,
examples/font.js
creates this image:As you can see, the
Pfennig
font is not used at all.Changing the font definitions like this (and changing the
font
property on the rendering context accordingly):This results in:
Your Environment
The text was updated successfully, but these errors were encountered: