rougier / freetype-gl

OpenGL text using one vertex buffer, one texture and FreeType
Other
1.65k stars 266 forks source link

Unicode is supported, but how? #202

Closed joessu closed 5 years ago

joessu commented 5 years ago

Looking at the font.c example, is it possible to insert unicode into the loaded glyphs?

i see a utf8_to_utf32 function in the freetype-gl code, so not sure what it expects? something like u8"你好" ?

joessu commented 5 years ago

Figured it out I made a separate call to load glyphs with just those characters and it worked!