-
Notifications
You must be signed in to change notification settings - Fork 7
Add support for variable fonts #13
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
Conversation
@laurmaedje WDYT? See here for example images: https://github.com/LaurenzV/krilla/pull/247/files Obviously should go through a round of manual testing with lots of fonts in Typst before actually landing, but it seems to work. |
I should also note that CFF2 fonts are incredibly rare, thought judging by the Typst issue tracker it seems like at least on NixOS they are used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The approach looks solid to me! Very cool stuff. :)
I just have a few comments.
Still needs more testing, docs, etc., but I from playing around with it a bit I think this could be made to work. I tried to design the whole thing so it requires as few changes to the existing logic as possible, to hopefully prevent new bugs. Something that's probably worth measuring is whether the overhead from dynamic dispatch is very high.