summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-08-01 12:17:25 +0100
committerRobin Watts <robin.watts@artifex.com>2016-08-01 12:47:14 +0100
commitb08617e17bfbc8504dc00cba724817ddf88b0203 (patch)
treec99f49f694e75c2bf6f1840c64a2ee69a52654c5 /include
parentf496b7153b8e8ab5e9b9787d4176656af235cd9b (diff)
downloadmupdf-b08617e17bfbc8504dc00cba724817ddf88b0203.tar.xz
Bug 696984: Badly rendered characters.
The type3 font(s) in the file have an invalid (0 sized) bbox, hence the clipping of the chars goes wrong. We now spot the invalid bbox, and suppress the clipping.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/font.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h
index b0392db0..484273a5 100644
--- a/include/mupdf/fitz/font.h
+++ b/include/mupdf/fitz/font.h
@@ -56,6 +56,7 @@ struct fz_font_s
void (*t3run)(fz_context *ctx, void *doc, void *resources, fz_buffer *contents, struct fz_device_s *dev, const fz_matrix *ctm, void *gstate, int nestedDepth);
void (*t3freeres)(fz_context *ctx, void *doc, void *resources);
+ char invalid_bbox;
fz_rect bbox; /* font bbox is used only for t3 fonts */
int glyph_count;