Skip to content
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

fontc must strip hyphens and other invalid characters from postscript names #1299

Open
anthrotype opened this issue Feb 26, 2025 · 0 comments
Milestone

Comments

@anthrotype
Copy link
Member

The post table contains PostScript (glyph) names, which are defined by
https://github.com/adobe-type-tools/agl-specification as only allowing the following characters [A-Za-z0-9_.] and must not be longer than 63 characters.

When we do rename glyphs (when --no-production-names flag is not set), we need to do what fontmake (via ufo2ft) does here:

googlefonts/ufo2ft#274
googlefonts/fontmake#455

basically, remove all non PS-valid characters (e.g. hyphens which often Glyphs.app's names contain for script suffixes -cy), truncate to max 64 chars and handle any duplicates that may arise as result of this stripping/truncating.

@anthrotype anthrotype added this to the fontc 1.0 milestone Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant