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 /draw | |
parent | 220b6f3565b8ec6da406acc08e8f09128b7c7346 (diff) | |
download | mupdf-177346693da57e72d1e6c01edbdf7ce75e010a3f.tar.xz |
Calculate accurate per-glyph bounding boxes for fz_bound_text.
Diffstat (limited to 'draw')
-rw-r--r-- | draw/draw_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/draw/draw_device.c b/draw/draw_device.c index f07ad681..07a2bb82 100644 --- a/draw/draw_device.c +++ b/draw/draw_device.c @@ -589,7 +589,7 @@ fz_draw_clip_text(fz_device *devp, fz_text *text, fz_matrix ctm, int accumulate) if (accumulate == 0) { /* make the mask the exact size needed */ - bbox = fz_round_rect(fz_bound_text(text, ctm)); + bbox = fz_round_rect(fz_bound_text(dev->ctx, text, ctm)); bbox = fz_intersect_bbox(bbox, state->scissor); } else @@ -670,7 +670,7 @@ fz_draw_clip_stroke_text(fz_device *devp, fz_text *text, fz_stroke_state *stroke fz_colorspace *model = state->dest->colorspace; /* make the mask the exact size needed */ - bbox = fz_round_rect(fz_bound_text(text, ctm)); + bbox = fz_round_rect(fz_bound_text(dev->ctx, text, ctm)); bbox = fz_intersect_bbox(bbox, state->scissor); mask = fz_new_pixmap_with_rect(dev->ctx, NULL, bbox); |