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

bug: not all true types can use winansiencoding. need to check cmaps #257

Conversation

galkahana
Copy link
Owner

To resolve #255.

In order to use winansiencoding (or in other words...non cid encoding) for true type fonts, the embedded font program must contain a method to translate the winansiencoding glyph names to glyph ids. For this to happen, there should be either 3,1 cmap encoding existing (win unicode bmp) or 1,0 cmap (mac roman). helveticaneue, for instance, does not have this table and so the library should not attempt to build a winansiencoding representation, but go straight to cid. arial.ttf does have the right cmaps and so can use it.

@galkahana galkahana merged commit c48807a into master Jun 14, 2024
3 checks passed
@galkahana galkahana deleted the galk.true_type_bad_cmap_bug.check_cmaps_to_use_winansiencoding branch June 14, 2024 08:46
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.

Perfectly kosher bug :)
1 participant