From 346f414afadf87f65227c2c66eb6afbadc49fa78 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 3 Aug 2011 15:53:34 +0100 Subject: Fix bug 692388; colored type3 fonts drawn incorrectly. All glyphs in type3 colored fonts were drawn mirrored in y due to an incorrectly setup transformation matrix. The bug was reported by Zeniko, with a helpful example file that showed the problem. Until then I'd been working using only fts_23_2303.pdf as an example, which uses geometric shapes, so isn't obvious that it's wrong. Also my copy of acrobat fails to render them. --- draw/draw_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'draw') diff --git a/draw/draw_device.c b/draw/draw_device.c index 3367c185..aadef905 100644 --- a/draw/draw_device.c +++ b/draw/draw_device.c @@ -469,7 +469,7 @@ fz_draw_fill_text(void *user, fz_text *text, fz_matrix ctm, } else { - fz_matrix ctm = {glyph->w, 0.0, 0.0, glyph->h, x, y}; + fz_matrix ctm = {glyph->w, 0.0, 0.0, -glyph->h, x + glyph->x, y + glyph->y + glyph->h}; fz_paint_image(dev->dest, dev->scissor, dev->shape, glyph, ctm, alpha * 255); } fz_drop_pixmap(glyph); -- cgit v1.2.3