diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-11-13 21:20:55 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-11-13 22:29:33 +0100 |
commit | b1d79007f3558ae66ec7f33ec615e812350b857f (patch) | |
tree | 0eb261d8099a0c24708bcb29a94471da78165274 /source | |
parent | c409b8bebaeb72f8c95514ed3c01fd173fb0d98b (diff) | |
download | mupdf-b1d79007f3558ae66ec7f33ec615e812350b857f.tar.xz |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/font.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |