summaryrefslogtreecommitdiff
path: root/pdf/pdf_type3.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-01-12 18:00:58 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-01-12 18:00:58 +0100
commit5fdcd483e8d70452b1bff56f37b9a910ade2eccc (patch)
tree11a225fcca455dea7bf7a4cd30eb90e41d74066d /pdf/pdf_type3.c
parent0d9f62af9844ff892e728336f85508a67e1f6cf7 (diff)
downloadmupdf-5fdcd483e8d70452b1bff56f37b9a910ade2eccc.tar.xz
Use the FontMatrix entry to scale the FontBBox in Type3 fonts.
Diffstat (limited to 'pdf/pdf_type3.c')
-rw-r--r--pdf/pdf_type3.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pdf/pdf_type3.c b/pdf/pdf_type3.c
index 98ebe934..f43170c4 100644
--- a/pdf/pdf_type3.c
+++ b/pdf/pdf_type3.c
@@ -40,10 +40,7 @@ pdf_load_type3_font(pdf_xref *xref, fz_obj *rdb, fz_obj *dict)
obj = fz_dict_gets(dict, "FontBBox");
bbox = pdf_to_rect(ctx, obj);
- bbox.x0 *= 0.001;
- bbox.y0 *= 0.001;
- bbox.x1 *= 0.001;
- bbox.y1 *= 0.001;
+ bbox = fz_transform_rect(matrix, bbox);
fontdesc->font = fz_new_type3_font(ctx, buf, matrix);
fontdesc->size += sizeof(fz_font) + 256 * (sizeof(fz_buffer*) + sizeof(float));