gero3 / facetype.js

typeface.js generator
http://gero3.github.io/facetype.js/
MIT License
664 stars 122 forks source link

Using glyphIndexMap instead of glyphs for traverse #22

Closed troy351 closed 1 year ago

troy351 commented 5 years ago

glyphIndexMap has more accurate unicode -> glyph mapping, especial for glyphs which has multiple unicode values. e.g. A Chinese Charater which char code is 24515 does not in the glyph list of PingFang-SC (it's the default Chinese font family on macOS) when searching with glyph.unicode. But it do exists in the font family and can be found in glyphIndexMap

image

gero3 commented 1 year ago

fixed with #31