[cairo-commit] src/cairo-gstate.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Aug 15 01:59:56 PDT 2006


 src/cairo-gstate.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

New commits:
diff-tree f183b835b111d23e838889178aa8106ec84663b3 (from 17ec33aa4f33919377d241bce01e2c395b2aa1b8)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Aug 15 04:59:48 2006 -0400

    Respect font_matrix translation in _cairo_gstate_glyph_path

diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c
index 1196691..2f9079b 100644
--- a/src/cairo-gstate.c
+++ b/src/cairo-gstate.c
@@ -1479,7 +1479,9 @@ _cairo_gstate_glyph_path (cairo_gstate_t
 
     for (i = 0; i < num_glyphs; ++i)
     {
-	transformed_glyphs[i] = glyphs[i];
+	transformed_glyphs[i].index = glyphs[i].index;
+	transformed_glyphs[i].x = glyphs[i].x + gstate->font_matrix.x0;
+	transformed_glyphs[i].y = glyphs[i].y + gstate->font_matrix.y0;
 	_cairo_gstate_user_to_backend (gstate,
 				       &(transformed_glyphs[i].x),
 				       &(transformed_glyphs[i].y));


More information about the cairo-commit mailing list