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

Possible typos in cmap table, subtable format 4 #1158

Open
math1992 opened this issue Jun 5, 2024 · 0 comments
Open

Possible typos in cmap table, subtable format 4 #1158

math1992 opened this issue Jun 5, 2024 · 0 comments

Comments

@math1992
Copy link

math1992 commented Jun 5, 2024

Description

Based on Apple's truetype reference only endCode's last value requires to be 0xFFFF, not startCode. In the opentype specification it reads :

For the search to terminate, the final startCode and endCode values must be 0xFFFF.

In the paragraph below the C expression to compute the glyphId, it reads :

If the idRangeOffset is 0, the idDelta value is added directly to the character code offset (i.e. idDelta[i] + c) to get the corresponding glyph index.

The issue here is that the formula use the character code, not the character code offset.

Page URL

https://learn.microsoft.com/en-us/typography/opentype/spec/cmap

Content source URL

https://github.com/MicrosoftDocs/typography/blob/live/typographydocs/opentype/spec/cmap.md

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