From b1d79007f3558ae66ec7f33ec615e812350b857f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 13 Nov 2018 21:20:55 +0100 Subject: Bug 697206: Tweak when to use the PDF font metrics in fz_advance_glyph. Only use the PDF font metrics for stretched substitute fonts, in all other cases, trust the embedded font file instead. --- source/fitz/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/fitz/font.c b/source/fitz/font.c index 186b7bc8..0ad6e3f6 100644 --- a/source/fitz/font.c +++ b/source/fitz/font.c @@ -1573,7 +1573,7 @@ fz_advance_ft_glyph(fz_context *ctx, fz_font *font, int gid, int wmode) int mask; /* PDF and substitute font widths. */ - if (!font->flags.ft_substitute || font->flags.ft_stretch) + if (font->flags.ft_stretch) { if (font->width_table) { -- cgit v1.2.3