summaryrefslogtreecommitdiff
path: root/source/fitz/font.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-06-29 17:26:27 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-07-05 15:32:34 +0200
commitf40106ac6b7367292432ee7af61608548d490e8c (patch)
tree3b20165e215e76e3cca40e370e73482d9efdc8fc /source/fitz/font.c
parentea7403b4c172338dfe7f371302f82859921e60af (diff)
downloadmupdf-f40106ac6b7367292432ee7af61608548d490e8c.tar.xz
Pass rects by value: device and document interface.
Diffstat (limited to 'source/fitz/font.c')
-rw-r--r--source/fitz/font.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/font.c b/source/fitz/font.c
index f24d639b..97c5347e 100644
--- a/source/fitz/font.c
+++ b/source/fitz/font.c
@@ -1307,7 +1307,7 @@ fz_bound_t3_glyph(fz_context *ctx, fz_font *font, int gid)
dev = fz_new_bbox_device(ctx, &font->bbox_table[gid]);
fz_try(ctx)
{
- fz_run_display_list(ctx, list, dev, font->t3matrix, &fz_infinite_rect, NULL);
+ fz_run_display_list(ctx, list, dev, font->t3matrix, fz_infinite_rect, NULL);
fz_close_device(ctx, dev);
}
fz_always(ctx)
@@ -1401,7 +1401,7 @@ fz_run_t3_glyph(fz_context *ctx, fz_font *font, int gid, fz_matrix trm, fz_devic
return;
ctm = fz_concat(font->t3matrix, trm);
- fz_run_display_list(ctx, list, dev, ctm, &fz_infinite_rect, NULL);
+ fz_run_display_list(ctx, list, dev, ctm, fz_infinite_rect, NULL);
}
fz_pixmap *
@@ -1791,9 +1791,9 @@ fz_buffer **fz_font_t3_procs(fz_context *ctx, fz_font *font)
return font ? font->t3procs : NULL;
}
-fz_rect *fz_font_bbox(fz_context *ctx, fz_font *font)
+fz_rect fz_font_bbox(fz_context *ctx, fz_font *font)
{
- return font ? &font->bbox : NULL;
+ return font->bbox;
}
void *fz_font_ft_face(fz_context *ctx, fz_font *font)