Skip to content

Conversation

@romaincazier
Copy link

When using the library to output fonts’ character set, I noticed some were missing characters (when compared with opentypejs’ output) because of glyphs being part of the Unicode full repertoire (U+10000 to U+10FFFF).

This commit updates getUnicodeCharMap() to check the cmap subtables in reverse so the Unicode full repertoire Encoding ID comes first.

@bsweeney bsweeney added this to the 1.1.0 milestone Mar 15, 2024
@bsweeney bsweeney mentioned this pull request Dec 6, 2024
This was linked to issues Dec 6, 2024
@romaincazier
Copy link
Author

romaincazier commented Nov 6, 2025

Just pushed a small commit because I just faced a case where the keys of the cmap subtables were non-consecutives, going from 0 to 2, skipping 1 and thus failing. I should have been more careful and followed the original code using a foreach loop.

@bsweeney
Copy link
Member

bsweeney commented Nov 6, 2025

Thanks for keeping this alive. I'm hoping to switch to working on a release for FontLib in the near future.

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.

Add Emoji support Add Emoji support

2 participants