[cairo-commit] src/cairo-pdf-surface.c

Adrian Johnson ajohnson at kemper.freedesktop.org
Wed Apr 11 14:08:33 PDT 2007


 src/cairo-pdf-surface.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree d0745c08b782d79fc7ccfd59cab0ae841a56c428 (from e36794ad34282a4d671d7cc5527e9c650c2736fe)
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Thu Apr 12 06:32:29 2007 +0930

    PDF: Fix glyph positioning bug when glyphs are not horizontal
    
    Bug reported in
    http://lists.freedesktop.org/archives/cairo/2007-April/010337.html

diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index 38b447e..2cfad5c 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -3040,7 +3040,7 @@ _cairo_pdf_surface_show_glyphs (void			*
                         _cairo_output_stream_printf (surface->output,
                                                      "%f %f Td ",
                                                      (glyphs[i].x - Tlm_x)/scaled_font->scale.xx,
-                                                     (glyphs[i].y - Tlm_x)/-scaled_font->scale.yy);
+                                                     (glyphs[i].y - Tlm_y)/-scaled_font->scale.yy);
                         Tlm_x = glyphs[i].x;
                         Tlm_y = glyphs[i].y;
                         Tm_x = Tlm_x;


More information about the cairo-commit mailing list