[cairo] Cairo and DirectFB: black marks on Chinese and English texts (William To)
meinreflection at gmail.com
Tue Mar 30 00:29:14 PDT 2010
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
#define DFB_SHOW_GLYPHS 1
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
On Fri, Mar 26, 2010 at 9:30 PM, haithem rahmani
<haithem.rahmani at gmail.com>wrote:
> 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
> 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
>> > 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.
> 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...
More information about the cairo