[cairo] Cairo and DirectFB: black marks on Chinese and English texts (William To)

William To meinreflection at gmail.com
Tue Mar 30 00:29:14 PDT 2010

Dear All,

I tried the font but the problem persists. Initially I did the following to
avoid the display corruption problem (all Chinese fonts are rendered
correctly initially, but after 2-3 scroll pages the displayed characters are
corrupted (broken typefaces).

I am not sure whether this problem has surfaced before, but by setting


under cairo/cairo-directfb-surface.c the problem goes away (and the
rendering speed is faster too), but the rendered Chinese fonts on screen are
all corrupted. I really wanted to post a photo showing the problem. Where
can I do that?

Thanks very much and Best Regards

William To

On Fri, Mar 26, 2010 at 9:30 PM, haithem rahmani
<haithem.rahmani at gmail.com>wrote:

> William,
> the "BIG 5" is not supported by DirectFB font interface.
> may be this is the problem.
> the following link is a chinese font from BitStream
> http://aol-4.vo.llnwd.net/pub/communicator/extras/fonts/windows/Cyberbit.ZIP
> could you try it ?
> On Fri, Mar 26, 2010 at 8:26 AM, Tor Lillqvist <tml at iki.fi> wrote:
>> > Also the encoding of the font file is BIG5 I think. Does it matter? I
>> don't
>> > think there are any Chinese fonts with UTF-8 encoding anyway.
>> I am not sure about BIG5 but especially not UTF-8 could in no way be
>> used as an "encoding" for a font. I can't imagine what that would
>> mean. UTF-8 is a byte-level encoding of Unicode code points (numbers).
>> It's the Unicode code points that then are used as indexes into a able
>> in a font.
>> --tml
> --
> Say: He is God, the One and Only;
> God, the Eternal, Absolute;
> He begetteth not, nor is He begotten;
> And there is none like unto Him.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100330/d2d1492d/attachment.htm>

More information about the cairo mailing list