Open ajstarks opened 5 years ago
Thanks for the report, @ajstarks. At first glance, it looks like this line is the culprit -- the number of character widths is hard-coded to 65536. I think I'll need to dynamically extend this slice as needed.
Unfortunately, the problem goes deeper than just the size of the character width slice. When I increased the allocated size for testing purposes, the glyph table program did not crash but the characters did not render properly.
Any update on this issue?
@DarkFreedman -- what would be involved in supporting more than 64K glyphs in a Unicode font?
When do you implement this issue?
There is a lot of utf-8 code that depends on two-byte runes. Fixing this will be a substantial undertaking. Any help in this regard will be appreciated.
Using the Symbola font (which contains 10744 glyphs -- see: http://users.teilar.gr/~g1951d/) when trying to index into the emoji range 0x1f600 - 0x1f64f, generateCIDFontMap crashes with index out of range. Using a smaller range with the same font works fine