Denis Oliver Kropp schrieb:
> Dirk E. Wagner wrote:
>> I want to draw an UTF-8 string with DrawGlyph. This works fine, but  
>> DrawGlyph does not draw German Umlauts. If I use DrawString with the  
>> same string, everything is ok.
>>
>> Has anyone successfully drawn Umlauts or other special UTF-8 chars  
>> with DrawGlyph?
>
> df_fonts from the examples does that.
I checked df_fonts, but it uses Glyph indices, not UTF-8 codes.

I made a simple test, I want to draw a 'ß' German sz, Unicode 0xc39f

This sample does not work (Fontencoding is default, UTF-8 ):

unsigned int character = 0xc39f;
surface->DrawGlyph(surface, character, 0, 0, (DFBSurfaceTextFlags)0);

If I replace the Unicode by the Glyph Index, it works:

unsigned int character = 223;
surface->DrawGlyph(surface, character, 0, 0, (DFBSurfaceTextFlags)0);

DFFA_NOCHARMAP is never used, and all encodings are UTF-8.
Why I can't use UTF-8 codes with DrawGlyph, what's wrong?

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to