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

Fix that space glyph's unicodes could be empty #45

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

derwind
Copy link
Contributor

@derwind derwind commented Dec 3, 2021

Applying extractUFO to a TTF with vmtx, such as a CJK font, may result in an empty list of unicodes for the space glyph.
According to the OpenType specification, VORG is a CFF OpenType specific table, so the path for measuring the bounding box using ControlBoundsPen will be performed in extractOpenTypeGlyphs. In the case of the space glyph, the bounding box is None, so we have to continue before setting the unicodes. However, this does not seem to be the correct behavior.

To reproduce the problem you can use for example the following font:
https://github.com/fontworks-fonts/Reggae/blob/master/fonts/ttf/ReggaeOne-Regular.ttf

@benkiel benkiel merged commit 9e2cd68 into robotools:master Dec 3, 2021
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.

None yet

2 participants