googlefonts / fontc

Where in we pursue oxidizing (context: https://github.com/googlefonts/oxidize) fontmake.
Apache License 2.0
62 stars 10 forks source link

Add fontdrasil::glyph_data module and codegen #768

Closed cmyr closed 2 months ago

cmyr commented 3 months ago

This is based on the non_spacing_marks.py script that is being used in glyphs2fontir.

In order to properly generate mark positioning lookups, I need access to the categories and subcategories that glyphs.app assigns to glyphs. This patch adds a new module to fontdrasil that exposes this data. Currently this is limited to mapping from glyph names to category information, but it would be trivial to update this to also provide conversion from unicode values to glyph names (and thus from unicode values to categories).

conclusions:

cmyr commented 3 months ago

So this is now working but I am seriously reconsidering whether or not it should live in fontdrasil; I was thinking that it would be used in the shared anchor propagation implementation, but I think it will continue to only be used in glyphs2fontir.