Dear All,<br><br>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). <br>
<br>I am not sure whether this problem has surfaced before, but by setting <br><br>#define DFB_SHOW_GLYPHS 1 <br><br>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?<br>
<br>Thanks very much and Best Regards<br><br>William To<br><br><br><br><div class="gmail_quote">On Fri, Mar 26, 2010 at 9:30 PM, haithem rahmani <span dir="ltr"><<a href="mailto:haithem.rahmani@gmail.com">haithem.rahmani@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr"><div>William,</div><div><br></div>the "BIG 5" is not supported by DirectFB font interface.<div>
may be this is the problem.</div><div><br></div><div>the following link is a chinese font from BitStream</div>
<div><a href="http://aol-4.vo.llnwd.net/pub/communicator/extras/fonts/windows/Cyberbit.ZIP" target="_blank">http://aol-4.vo.llnwd.net/pub/communicator/extras/fonts/windows/Cyberbit.ZIP</a></div><div><br></div><div>could you try it ?<div>
<div></div><div class="h5"><br><br>
<div class="gmail_quote">On Fri, Mar 26, 2010 at 8:26 AM, Tor Lillqvist <span dir="ltr"><<a href="mailto:tml@iki.fi" target="_blank">tml@iki.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>> Also the encoding of the font file is BIG5 I think. Does it matter? I don't<br>
> think there are any Chinese fonts with UTF-8 encoding anyway.<br>
<br>
</div>I am not sure about BIG5 but especially not UTF-8 could in no way be<br>
used as an "encoding" for a font. I can't imagine what that would<br>
mean. UTF-8 is a byte-level encoding of Unicode code points (numbers).<br>
It's the Unicode code points that then are used as indexes into a able<br>
in a font.<br>
<br>
--tml<br>
</blockquote></div><br><br clear="all"><br></div></div><div class="im">-- <br> Say: He is God, the One and Only;<br> God, the Eternal, Absolute;<br> He begetteth not, nor is He begotten;<br> And there is none like unto Him.<br>
</div></div></div>
</blockquote></div><br>