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.
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.