You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Description
Based on Apple's truetype reference only endCode's last value requires to be 0xFFFF, not startCode. In the opentype specification it reads :
In the paragraph below the C expression to compute the glyphId, it reads :
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
The text was updated successfully, but these errors were encountered: