Hi Jan.

first of all, you need to have a Chinese font installed. LiTE uses 
gulim.ttf by default, which it looks for in 
/opt/local/share/fonts/truetype/ on my machine. I don't have it 
installed so it's a little bit guessing for me from here. Unfortunately, 
this only works in conjunction with the hantextline widget.

I would propose to, as a first test, simply copy a font with Chinese 
characters over the default font which is called vera.ttf. Now, you 
should be able to use and see UTF-8 text.

If your text box is not large enough, LiTE will perform truncating, this 
may lead to funny effects with UTF-8, so have a look how it works in 
your case.

Greets
Niels

Jan Elmenthaler wrote:
> Hi there!
>
> I just tried out to display some chinese characters on a LiTE
> textbutton but only the square space holder is shown.
>
> Loading either german, english or chinese descriptions from an ini
> file works fine. I can see the chinese characters both in my log file
> and in the telnet terminal connected with our powerPC but not on
> screen :(
>
> Can anybody tell me if it is working in general and maybe offer me some hints?
>
> Thanks in advance,
> Jan
> _______________________________________________
> LiTE mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/lite
>
>   


-- 

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------" 

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

Reply via email to