From 177346693da57e72d1e6c01edbdf7ce75e010a3f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 11 Jan 2012 16:02:18 +0100 Subject: Calculate accurate per-glyph bounding boxes for fz_bound_text. --- draw/draw_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'draw') 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); -- cgit v1.2.3