-
Notifications
You must be signed in to change notification settings - Fork 26
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
Font constants crate? #1182
Comments
Makes sense to me. I have questions about whether it should be one crate, several crates, if some of it belongs in font-types, if some of it belongs in harfruzz (what shaper), etc. |
We've discussed this sort of thing in the past, and I think it's a good idea. I would make it an additional crate in this repo, and called something like... We want to avoid adding much to |
@rsheeter does this sound reasonable? |
Broadly yes. Needs a norse name of course. Is it possible to enumerate what we currently believe would go into this crate and what we think might consume it? It would also be nice to capture where current python and/or Rust definitions live. For example, fontc has a port of the python codepage range code @ https://github.com/googlefonts/fontc/blob/ab35d44b16267fa97c12c110bdc1b5dc53a01166/fontbe/src/os2.rs#L341. Presumably that should use the new library once it exists. |
I made a list above. :-)
The immediate motivation for this issue is fontspector (fontbakery port), but I imagine fontc and fea-rs also have collections of magical data. Python constants are scattered around
Sounds gud, ya. I wanted fróðleikr just to see what cargo would do with utf8 crate names. |
If that's the list all good, I wasn't sure if that was just quick examples or all the examples we currently have.
I am very curious about that too. Lots of wonderful options if it works. Might be a bit gnarly to see in source code haha. |
Boo hiss. |
From a Chromium and Skia perspective, there's a bit of per crate overhead involved in depending on additional crates, getting them through review and rolling them. Are we expected to need the constants in skrifa, read-fonts soon? In that case, I would prefer to keep them in an existing crate. I'd rather not set up a new crate import for a set of constants. |
We don't need to use them in skrifa/read-fonts. We could just have the create for use only in fontc and other tools. |
One thing I have noticed in the Python font ecosystem is endless duplication of core constants; various packages have their own lists of:
and so on. Would there be any interest in hosting a crate in this repo with a common set of font-related constants?
The text was updated successfully, but these errors were encountered: