Hi, Sven,

Thanks for the info!  Yes, I am absolutely sure that the font files I tried
contain Chinese characters and they work fine with X11 applications to
display Chinese fonts.  Even xfd could display Chinese characters from those
files.

I also suspect that the example program df_font.c that comes in the directfb
package might have problems in handling unicode characters that require
multiple bytes. I've tried several UTF-8 font files with df_font, and none
worked for characters requiring multiple bytes.  I'm not sure if the problem
is in df_font, or is in directfb itself.

- Weidong

On Thu, Aug 27, 2009 at 3:56 PM, Sven Neumann <[email protected]> wrote:

> Hi,
>
> On Thu, 2009-08-27 at 08:24 -0400, Weidong Li wrote:
> > I'm new to this mailing list.  I have a directfb 1.2.6 built for an
> > arm device.  It seems that it has probblems in displaying fonts in
> > Chinese characters, or I did not use it correctly?  Here is the
> > symptom I had:
> >
> > I used the release example program, df_fonts, to display a ttf font
> > file as follows:
> >         df_font fontfile.ttf
> > Upon this, it displayed a table of the font from the font file, but
> > only latin characters were correctly displayed. The Chinese characters
> > were shown as empty boxes.
>
> Are you absolutely sure that the font you looked at does have coverage
> for Chinese characters at all?
>
> DirectFB does have full Unicode support. You should be aware though that
> the font rendering capabilities of the core DirectFB API are quite
> limited. If you need more advanced font rendering, you could consider to
> use Pango on top of DirectFB. Should be possible to use the Pango with
> the DirectFB port of Cairo. But I haven't tried this myself yet.
>
>
> Sven
>
>
>
>
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to