summaryrefslogtreecommitdiff
path: root/fitz/res_font.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-05-14 23:36:55 +0200
committerTor Andersson <tor@ghostscript.com>2010-05-14 23:36:55 +0200
commit167d94a052f6119dde13363e7a03b79e42902bda (patch)
tree45d59e14edb60243da4a6639d5817ea44dd8a325 /fitz/res_font.c
parent96bc25e28d88097a2bc9c149ca862b11d6925242 (diff)
downloadmupdf-167d94a052f6119dde13363e7a03b79e42902bda.tar.xz
Add workaround to clip image blits against the unit rectangle.
Diffstat (limited to 'fitz/res_font.c')
-rw-r--r--fitz/res_font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/res_font.c b/fitz/res_font.c
index 145acea1..9146437c 100644
--- a/fitz/res_font.c
+++ b/fitz/res_font.c
@@ -371,7 +371,7 @@ fz_rendert3glyph(fz_font *font, int gid, fz_matrix trm)
fz_catch(error, "cannot draw type3 glyph");
fz_freedevice(dev);
- glyph = fz_newpixmap(nil, bbox.x0, bbox.y0, bbox.x1 - bbox.x0, bbox.y1 - bbox.y0);
+ glyph = fz_newpixmap(nil, bbox.x0-1, bbox.y0-1, bbox.x1 - bbox.x0 + 1, bbox.y1 - bbox.y0 + 1);
fz_clearpixmap(glyph, 0x00);
cache = fz_newglyphcache();