1 Commits
Author SHA1 Message Date
calixteman b4aa2afa17 Use CharCodeMap for font character mappings (bug 2077176)
Store CMap, ToUnicode and CIDToGIDMap entries in an Array for integer
codes in [0, 0xFFFF] and a Map for other codes. Track keys separately
to preserve insertion order without scanning array holes.

Cache reverse lookups after eight linear searches, preserving the
first matching code. This avoids repeated scans during CFF glyph
mapping and string encoding.
2026-10-06 21:56:07 +02:00