summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/pdf/pdf-op-run.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/pdf/pdf-op-run.c b/source/pdf/pdf-op-run.c
index 139f7e50..c09abb45 100644
--- a/source/pdf/pdf-op-run.c
+++ b/source/pdf/pdf-op-run.c
@@ -1112,12 +1112,8 @@ pdf_show_char(pdf_csi *csi, pdf_run_state *pr, int cid)
fz_concat(&trm, &tsm, &pr->tm);
- fz_bound_glyph(ctx, fontdesc->font, gid, &trm, &bbox);
/* Compensate for the glyph cache limited positioning precision */
- bbox.x0 -= 1;
- bbox.y0 -= 1;
- bbox.x1 += 1;
- bbox.y1 += 1;
+ fz_expand_rect(fz_bound_glyph(ctx, fontdesc->font, gid, &trm, &bbox), 1);
/* If we are a type3 font within a type 3 font, or are otherwise
* uncachable, then render direct. */