-
Notifications
You must be signed in to change notification settings - Fork 6
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
Make skrifa optional #104
Comments
I'm not sure that's possible. It's called "shaper"glot for a reason. :-) How would you handle the shaping? |
I suppose there are two font parsers involved: read-fonts and ttf-parser. The latter is part of harfruzz, and it is indeed needed for shaping. The former, however, is used for extracting the glyph names, features, and character mapping, which can be done ahead of time and potentially by other parsers. I opened a PR to illustrate the idea. Again, if there is interest from your side. |
(The aim of harfruzz is to kick out ttf-parser and replace it with read-fonts, so we have read-fonts on both sides. But I'm not seeing a lot of progress towards that aim right now.) |
Would it be of interest to hide the parser behind a feature and make it possible to instantiate the checker by providing it all the necessary pieces of information, such as a character map and feature names, directly? The goal is to reduce the number of dependencies and leave it up to the end user how the parsing is done.
The text was updated successfully, but these errors were encountered: