diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2011-08-03 15:53:34 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2011-08-03 15:53:34 +0100 |
commit | 346f414afadf87f65227c2c66eb6afbadc49fa78 (patch) | |
tree | 749e07e64e07ca5cfe31b4bde120404a025b0b4e /draw/draw_device.c | |
parent | 14fd48464745204c486690557119d9ce03ac55e6 (diff) | |
download | mupdf-346f414afadf87f65227c2c66eb6afbadc49fa78.tar.xz |
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.
Diffstat (limited to 'draw/draw_device.c')
-rw-r--r-- | draw/draw_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |