diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-01-12 18:00:58 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-01-12 18:00:58 +0100 |
commit | 5fdcd483e8d70452b1bff56f37b9a910ade2eccc (patch) | |
tree | 11a225fcca455dea7bf7a4cd30eb90e41d74066d /pdf/pdf_type3.c | |
parent | 0d9f62af9844ff892e728336f85508a67e1f6cf7 (diff) | |
download | mupdf-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.c | 5 |
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)); |