[cairo] cairo_show_text and Chinese

XinGang Li slinavlee at gmail.com
Mon Jul 7 18:04:18 PDT 2008

The cairo "toy text" API can render Chinese characters in utf-8 under win32.

If can not work fine on other platforms, you can using Pengo.

We have a problem rendering Chinese characters with cairo_show_text.
> If we provide a
> UTF-8 string with both ISO and Chinese characters, only the ISO
> characters are rendered,
> and the Chinese characters are skipped over.  cairo_text_extents
> returns the extents as
> if the Chinese characters were not in the string.
> The same UTF-8 string will work correctly with other libraries (not
> Cairo) and Cairo
> works correctly with UTF-8 characters from other character sets (such
> as the Polish
> characters available in UTF-8)
> We are using Cairo 1.4.10.  We are currently stuck with this version.
> Does anyone know
> if this is a common issue, or if there are any bugs tied to this?

Li XinGang
EMail: slinavlee at gmail.com
Blog: avlee.cnblogs.com
Site: www.mapboost.org.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20080708/f96138ca/attachment.html 

More information about the cairo mailing list