robotools / compositor

A basic OpenType GSUB and GPOS layout engine.
MIT License
30 stars 11 forks source link

Try a number of cmap subtables to find the best option. #18

Closed jenskutilek closed 7 years ago

jenskutilek commented 7 years ago

Compositor only looked for a (3, 1) cmap subtable, which will miss any non-BMP Unicode characters present in the font.

This patch checks for the presence of the cmap subtables (3, 10), (0, 3) and (3, 1) and returns the first match.