[cairo] Fonts and characters in pdf/image surfaces

Adrian Johnson ajohnson at redneon.com
Fri Feb 23 14:59:07 PST 2007

Timothée Lecomte wrote:
> Behdad Esfahbod wrote:
>> On Fri, 2007-02-23 at 05:02 -0500, Timothée Lecomte wrote:
>>> My problem is that this fallback mechanism does not seem to exist for
>>> pdf
>>> surfaces. Instead of a bitmapped Japanese character, there is no
>>> displayed
>>> character.
>> This is certainly a bug.  Please post sample PDF.
> Here are the pdf and the image surface outputs:
> http://tipote.free.fr/cairopdf_utf8.pdf
> http://tipote.free.fr/wxt_utf8.png

The bitmap font is embedded in your the PDF. The reason you can't see it
is that the bitmap glyphs have a y coordinate of -78338. I have
reproduced this problem using the mixed.pango from
when I don't have any Chinese TrueType fonts installed. I have confirmed
that Pango is passing in the invalid y coordinate to cairo_show_glyphs()
when using the PDF or PS surface.

More information about the cairo mailing list