diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-01-11 16:02:18 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-01-11 16:02:18 +0100 |
commit | 177346693da57e72d1e6c01edbdf7ce75e010a3f (patch) | |
tree | 7cfa2037949f22b7263f05e0ca95820dc4b4fe2e /pdf/pdf_type3.c | |
parent | 220b6f3565b8ec6da406acc08e8f09128b7c7346 (diff) | |
download | mupdf-177346693da57e72d1e6c01edbdf7ce75e010a3f.tar.xz |
Calculate accurate per-glyph bounding boxes for fz_bound_text.
Diffstat (limited to 'pdf/pdf_type3.c')
-rw-r--r-- | pdf/pdf_type3.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pdf/pdf_type3.c b/pdf/pdf_type3.c index 730a2754..98ebe934 100644 --- a/pdf/pdf_type3.c +++ b/pdf/pdf_type3.c @@ -40,6 +40,10 @@ 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; fontdesc->font = fz_new_type3_font(ctx, buf, matrix); fontdesc->size += sizeof(fz_font) + 256 * (sizeof(fz_buffer*) + sizeof(float)); |