summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-11-13 21:20:55 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-11-13 22:29:33 +0100
commitb1d79007f3558ae66ec7f33ec615e812350b857f (patch)
tree0eb261d8099a0c24708bcb29a94471da78165274
parentc409b8bebaeb72f8c95514ed3c01fd173fb0d98b (diff)
downloadmupdf-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.
-rw-r--r--source/fitz/font.c2
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)
{