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

Invalid name records in Gentium Book Basic #5805

Open
IvanUkhov opened this issue Jan 19, 2023 · 0 comments
Open

Invalid name records in Gentium Book Basic #5805

IvanUkhov opened this issue Jan 19, 2023 · 0 comments

Comments

@IvanUkhov
Copy link

Describe the bug
The encoding of entries in the naming table contradicts the specification. More specifically, for some entries, the platform is set to be Mac, that is, 1, but the language tags follow Windows, such as 0x409 for United States English.

To Reproduce
For instance, using fonttools:

ttx -t name ofl/gentiumbookbasic/GenBkBasI.ttf
cat ofl/gentiumbookbasic/GenBkBasI.ttx | grep 2048
#     <namerecord nameID="2048" platformID="1" platEncID="0" langID="0x409" unicode="True">
#     <namerecord nameID="2048" platformID="3" platEncID="1" langID="0x409">

It can be seen that the platform is Mac, but the language ID is 0x409, which is a value outside of the range of the languages on that platform. The last language on Mac has a code of 150. The 0x409 seems to come from the table for Windows where this value corresponds to United States English. Therefore, the language ID does not agree with the platform ID.

Expected behavior
The platforms and languages should agree.

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