[cairo-commit] src/cairo-pdf-surface.c
Adrian Johnson
ajohnson at kemper.freedesktop.org
Tue Feb 6 16:45:01 PST 2007
src/cairo-pdf-surface.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
New commits:
diff-tree fc660511ec7a51be909e5ed940354d39ef7ad633 (from 908469b5fcdc311a89868ab44baa85d0744985d1)
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Wed Feb 7 11:05:33 2007 +1030
PDF: Correct the y value of Td in show_glyphs
This bug would occur if the y coordinate of all the glyphs
in a single cairo_show_glyphs() call was not the same.
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index 18f79ca..93face3 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -2845,7 +2845,7 @@ _cairo_pdf_surface_show_glyphs (void *
_cairo_output_stream_printf (surface->output,
"%f %f Td <%02x> Tj\r\n",
(glyphs[i].x - glyphs[i-1].x)/scaled_font->scale.xx,
- (glyphs[i].y - glyphs[i-1].y)/scaled_font->scale.yy,
+ (glyphs[i].y - glyphs[i-1].y)/-scaled_font->scale.yy,
subset_glyph_index);
}
}
More information about the cairo-commit
mailing list