diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-03-30 18:12:27 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-03-30 18:18:45 +0100 |
commit | 05c87deb80a08d4451ad656459f17eb586872516 (patch) | |
tree | 0ba2365329855c977a3e1576cfd4374497ea9d83 /source/fitz | |
parent | 9ccdd63f008d865b87e9f55b24a0276670844786 (diff) | |
download | mupdf-05c87deb80a08d4451ad656459f17eb586872516.tar.xz |
Use the font bbox for bounding empty glyphs.
This avoids the displaylist device not playing back space glyphs.
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/font.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |