Hiya, On 7/12/12 4:31 AM, Sven Neumann wrote: >> I'm trying to run dfbtest_font from DirectFB-1.4.11 with a string >> using encoding format ISO8859-15 on Ubuntu 10.10 (UTF-8 by default), >> to do this I change dfbtest_font.c on line 186 to this : > > The DirectFB DrawString API expects strings in UTF-8 encoding. If your > text is in another encoding you need to convert it to UTF-8 before > passing it to DirectFB. You can use iconv() for that.
You can actually add your own encoding, and then use IDirectFBFont:: FindEncoding() and IDirectFBFont::SetEncoding(). See interfaces/IDirectFBFont/idirectfbfont_ft2.c to find out how you can add your own encoding support. "Latin1" is already supported besides "UTF8". Cheers, Takanari Hayama, Ph.D. (t...@igel.co.jp) IGEL Co.,Ltd. http://www.igel.co.jp/ _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev