summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2006-08-15 04:59:48 -0400
committerBehdad Esfahbod <behdad@behdad.org>2006-08-15 04:59:48 -0400
commitf183b835b111d23e838889178aa8106ec84663b3 (patch)
tree35e3475fe0c496eb75b151caf412bcc6f38145ee /src
parent17ec33aa4f33919377d241bce01e2c395b2aa1b8 (diff)
Respect font_matrix translation in _cairo_gstate_glyph_path
Diffstat (limited to 'src')
-rw-r--r--src/cairo-gstate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c
index 1196691b..2f9079bb 100644
--- a/src/cairo-gstate.c
+++ b/src/cairo-gstate.c
@@ -1479,7 +1479,9 @@ _cairo_gstate_glyph_path (cairo_gstate_t *gstate,
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));