mooman219 / fontdue

The fastest font renderer in the world, written in pure rust.
Apache License 2.0
1.44k stars 71 forks source link

Add unicode variation selector option in `Font::lookup_glyph_index()` #77

Open ghost opened 3 years ago

ghost commented 3 years ago

In Unicode, the same code point can have different glyphs depends on variant selector. I suggest adding a unicode variant option to Font::lookup_glyph_index().

ghost commented 3 years ago

See also FT_Face_GetCharVariantIndex() in FreeType2 Core API.