-
Notifications
You must be signed in to change notification settings - Fork 23
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
Avar2 support in font identification and contour variations / situations where coords are provided #1074
Comments
I believe it should currently report version 2 if the table specifies that so identification will work. The actual application of avar2 is not done yet but that should be a relatively small patch. I think it’s just detecting the IVS and applying a delta to each coord using the avar1 adjusted coord set. edit: this code has recently moved to read-fonts ( fontations/read-fonts/src/tables/fvar.rs Line 42 in 13d90b8
|
Yeah, applying the ItemVariationStore only. It's this code: |
* Add avar2 fields * Regenerate for avar2 * Add avar2checker (Laurence Penney) * Test case * Support avar2 in user_to_normalized * avar2 support requires alloc See #1074 (comment) * Add provenance details for avar2checker * Unneeded * Tidy up is_some && unwrap * Use stack allocation * Unneeded
In https://docs.rs/read-fonts/latest/read_fonts/tables/avar/type.Avar.html#method.version it says that Major version is set to 1.
For identification of avar2 fonts in Blink it would be useful if this API would be able to return 2 for avar2 fonts.
For applying axis variations and retrieving paths in Skrifa,
Glyph::draw
, and in situations where normalized coords are provided, Skrifa would need to know how to apply avar2 axes.CC @behdad
The text was updated successfully, but these errors were encountered: