fonttools / fontbakery

🧁 A font quality assurance tool for everyone
https://fontbakery.readthedocs.io
Apache License 2.0
548 stars 99 forks source link

Check sups/subs/sinf glyphs exist, are encoded, and have related features #1846

Open davelab6 opened 6 years ago

davelab6 commented 6 years ago

"Pro" and "Expert" fonts should have a bunch of glyphs related to numbers, aka "figures", and corresponding OT features.

I think these glyphs should when possible be encoded, so the glyph names for the 20 superior and inferior characters would be zerosuperior through nineinferior, plus the 3 related OT features, sups, subs, sinf.

Some context on this:

I expect that it will be common to find these glyphs named with a valid schema (eg one.sups or one.sinf or one.superior) that is not preferred because it means the glyphs are not encoded. So there could be checks if the glyphs follow those known anti patterns; and checks for if the glyphs are encoded correctly but

Also a check if the characters are encoded, if their glyphs don't conform to that naming scheme.

khaledhosny commented 6 years ago

Why do you want them always encoded? The encoded ones are phonetic symbols and can plausibly have different design considerations than the OpenType features.

davelab6 commented 6 years ago

can you show me examples of that?