[cairo] How to show text in chinese with cairo, please?

null flk1986 at 163.com
Tue Jun 2 23:29:20 PDT 2009


这个问题我也不太清楚,我只能给你两个建议,第一你要确定你传到show_text中的是unicode编码,另外一种情况就是这种英文字体没有定义中文的显示(也就是你传进去的uniconde他不认识),更详细的问题我建议是研究研究http://cgit.freedesktop.org/cairo/tree/test/user-font.c


在2009-06-02,"张伯" <zhizhonghe at yahoo.com.cn> 写道:


Hello,

 

I use cairo in Visual Studio 2008, and could draw an english text with cairo_select_font_face() successfully.

However, when I replaced it with another one in Chinese, there was nothing displayed. 

 

What is the reason, please?

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20090603/6fa2ed08/attachment.html 


More information about the cairo mailing list