-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
registerFont() issue - not all fonts register #1880
Comments
I think this may be similar to what's discussed in #1572 What I understood, you cannot easily register fonts with unique families, because the OS will still take the family and subfamily from the actual font file. I was hoping to use the same trick as you, but it seems that currently, the only reliable way is patching the fonts, as mentioned here But @chearon is working on some changes that could greatly improve the situation. So fingers crossed! 🤞 |
Thank you for that! I've been pulling my hair out trying to find out why this was happening. I'm not sure I understand what they mean by "patching fonts" though. |
It's editing the otf/ttf font files using a tool like fontforge. I didn't go that far, so I cannot tell you if that actually works though |
Ah ok. I thought perhaps it was some programmatic work-around. Also, chearon seems to have made a commit 17 days ago Is this the fix for this issue? If so, how can I incorporate the fix? Would I need to build the package from source? |
That's up to him to describe. I think so far it's just an isolated commit |
True. Well like you said, fingers crossed. :) |
Issue or Feature
When registering several fonts in a row, only some of them work work.
Steps to Reproduce
If I register my fonts as such:
Only 2 of the 3 fonts display correctly.
The weird thing is, if I rearrange the order of registration, a different 2 of 3 display correctly.
So basically 1 always does not display, and it's always different given the ordering.
There are no errors and the fonts do exist as evidenced by the fact they do display if I comment out 2 of the 3.
Individually, they work as well.
Your Environment
fabric@4.5.0
canvas@2.8.0
Ubuntu Release: 20.04
Any help troubleshooting would be greatly appreciated.
~ed
The text was updated successfully, but these errors were encountered: