From 05c87deb80a08d4451ad656459f17eb586872516 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 30 Mar 2016 18:12:27 +0100 Subject: Use the font bbox for bounding empty glyphs. This avoids the displaylist device not playing back space glyphs. --- source/fitz/font.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/fitz') diff --git a/source/fitz/font.c b/source/fitz/font.c index a0a659fe..cd5c7648 100644 --- a/source/fitz/font.c +++ b/source/fitz/font.c @@ -1343,6 +1343,8 @@ fz_bound_glyph(fz_context *ctx, fz_font *font, int gid, const fz_matrix *trm, fz font->bbox_table[gid] = fz_empty_rect; } *rect = font->bbox_table[gid]; + if (fz_is_empty_rect(rect)) + *rect = font->bbox; } else { -- cgit v1.2.3