[cairo] Two problems with Type 1 fonts

Adrian Johnson ajohnson at redneon.com
Tue Jan 8 07:56:09 PST 2008

Elmar Braun wrote:
> Hi,
> I have two (possibly related) problems with Type 1 fonts. I'm using 
> Cairo 1.4.12 on Windows.
> The first problem is that text output to any surface other than a 
> Win32 surface is completely garbled. For example, when I use a Type 1 
> font to write the string "Type" to a PDF-, SVG- or image surface, the 
> surface will show the string "5ZQF".
> The second issue is that cairo_scaled_font_glyph_extents() doesn't 
> seem to work correctly with Type 1 fonts. When I rely on the results 
> of that function to draw glyphs with cairo_show_glyphs(), the glyph 
> positions are skewed. I think this may be related to the first 
> problem, because the glyph positions seem to be correct for the 
> garbled glyphs that are emitted on non-screen surfaces.
I've have committed a fix for this problem both these problems


More information about the cairo mailing list