googlefonts / ufo2ft

A bridge from UFOs to FontTools objects (and therefore, OTFs and TTFs).
MIT License
151 stars 43 forks source link

`public.openTypeCategories` info should be complementary by default #643

Open madig opened 2 years ago

madig commented 2 years ago

I think once you declare the key, there's no GDEF guessing done anywhere. It would be nice if you could declare categories just for a couple of glyphs and the guessing does the rest. If you want to exclude a glyph, you can set the category to "unassigned".

anthrotype commented 2 years ago

since it's a "public." key the discussion should happen at the UFO spec level, though it might be too late to change its semantics.

anthrotype commented 2 years ago

actually the spec currently leaves it to authoring tool, so I suppose we could implement what you suggested:

Note: If a glyph’s category is not defined in the dictionary, authoring tools may assign it to any glyph class in the OpenType GDEF Glyph Class Definition Table.