[cairo-commit] src/cairo-gstate.c
Behdad Esfahbod
behdad at kemper.freedesktop.org
Sat Dec 16 15:47:08 PST 2006
src/cairo-gstate.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
New commits:
diff-tree 46add53973de5ba4ae4d6d02d1dd87e5487336c3 (from 57589a90490f9bb9e4926c0b138eb95f16db374b)
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Sat Dec 16 18:46:54 2006 -0500
[cairo-gstate] Don't bypass glyph transformation if font_matrix has translation (#9365)
We have tests for this (ft-text-vertical-*), but unfortunately they didn't
prevent the regression here because they have been marked XFAIL, since we didn't
quite fix them for PS.
diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c
index f1b5897..f3621dd 100644
--- a/src/cairo-gstate.c
+++ b/src/cairo-gstate.c
@@ -1588,7 +1588,8 @@ _cairo_gstate_transform_glyphs_to_backen
cairo_matrix_t *device_transform = &gstate->target->device_transform;
if (_cairo_matrix_is_identity (ctm) &&
- _cairo_matrix_is_identity (device_transform))
+ _cairo_matrix_is_identity (device_transform) &&
+ gstate->font_matrix.x0 == 0 && gstate->font_matrix.y0 == 0)
{
memcpy (transformed_glyphs, glyphs, num_glyphs * sizeof (cairo_glyph_t));
}
More information about the cairo-commit
mailing list