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

handle duplicate production names, with invalid PS chars, or too long (> 63 chars) #274

Merged
merged 2 commits into from
Sep 10, 2018

Conversation

anthrotype
Copy link
Member

This patch ensures that we never end up writing duplicate postscript glyph names in the post/CFF tables.
FontTools will crash if we set TTFont.setGlyphOrder() to a list containing duplicate glyph names, so need to avoid this.
Also, following AGL specification, we strip any characters that is not in the safe postscript character set [A-Za-z0-9_.], e.g. like hyphens sometimes used in Glyphs.app.
And we print a warning if a glyph name exceeds 63 characters in length (see adobe-type-tools/agl-specification#2).

@anthrotype anthrotype merged commit ccad4b7 into googlefonts:master Sep 10, 2018
@anthrotype anthrotype deleted the duplicate-prod-names branch September 10, 2018 13:52
@anthrotype
Copy link
Member Author

linking relevant fontmake issue #274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant