I currently working on a library for the NekoVM to create a binding to Freetype 2. It is written in plain c and it all works really nice, except when the user enters some unicode chars like "ü", "Ä" or "ß" they will be transformed into to some ugly square-like letters.
When I recieve the data from the NekoVM you use val_string
which returns a char*
. The function (FT_Load_Char
) where you push the data into freetype expects a unsigned long as char code. (Every letter is processed on its own.)
如何正确对待这些特性? 我也可以选择将其转换成任何ISO-8859-XX代码网页,然后将其输入书面图书馆。