summaryrefslogtreecommitdiff
path: root/fitz/dev_bbox.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-01-11 16:02:18 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-01-11 16:02:18 +0100
commit177346693da57e72d1e6c01edbdf7ce75e010a3f (patch)
tree7cfa2037949f22b7263f05e0ca95820dc4b4fe2e /fitz/dev_bbox.c
parent220b6f3565b8ec6da406acc08e8f09128b7c7346 (diff)
downloadmupdf-177346693da57e72d1e6c01edbdf7ce75e010a3f.tar.xz
Calculate accurate per-glyph bounding boxes for fz_bound_text.
Diffstat (limited to 'fitz/dev_bbox.c')
-rw-r--r--fitz/dev_bbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/dev_bbox.c b/fitz/dev_bbox.c
index 766adefa..9165407f 100644
--- a/fitz/dev_bbox.c
+++ b/fitz/dev_bbox.c
@@ -25,7 +25,7 @@ fz_bbox_fill_text(fz_device *dev, fz_text *text, fz_matrix ctm,
fz_colorspace *colorspace, float *color, float alpha)
{
fz_bbox *result = dev->user;
- fz_bbox bbox = fz_round_rect(fz_bound_text(text, ctm));
+ fz_bbox bbox = fz_round_rect(fz_bound_text(dev->ctx, text, ctm));
*result = fz_union_bbox(*result, bbox);
}
@@ -34,7 +34,7 @@ fz_bbox_stroke_text(fz_device *dev, fz_text *text, fz_stroke_state *stroke, fz_m
fz_colorspace *colorspace, float *color, float alpha)
{
fz_bbox *result = dev->user;
- fz_bbox bbox = fz_round_rect(fz_bound_text(text, ctm));
+ fz_bbox bbox = fz_round_rect(fz_bound_text(dev->ctx, text, ctm));
*result = fz_union_bbox(*result, bbox);
}