freetype2 - FreeType 2 - Unicode Character Codes? -


the documentation freetype2 says default character map used unicode map... however, when attempt retrieve character code unicode 't', gives me unicode 'z' using:

glyph_index = ft_get_char_index(face, text[n]); 

what need way find out how many glyphs in font face , unicode value maps per each one. there way this. i've tried every freetype function , can't results.

thanks

i know old but...

what ask not possible. there glyphs don't match unicode codepoint, , there unicode codepoints map multiple glyphs, depending on neighboring glyph. example, "ff" in many fonts special glyph make typesetting work better. there no "ff" codepoint in unicode. it's layout system decide use "ff" glyph or not.

however, if you're asking 't' character , getting 'z' glyph index, there issues font.


Comments

Popular posts from this blog

Javascript line number mapping -

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -