From 896c187349425099081e36f221e8010f7812b450 Mon Sep 17 00:00:00 2001 From: Jason Crain Date: Mon, 27 Aug 2012 00:55:53 -0500 Subject: [PATCH] Change default fallback character width --- poppler/GfxFont.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc index ea22af8..2ae1c1e 100644 --- a/poppler/GfxFont.cc +++ b/poppler/GfxFont.cc @@ -1397,7 +1397,10 @@ Gfx8BitFont::Gfx8BitFont(XRef *xref, const char *tagA, Ref idA, GooString *nameA widths[32] = 0.001 * w; } for (code = 0; code < 256; ++code) { - if (enc[code] && builtinFont->widths->getWidth(enc[code], &w)) { + if (enc[code]) { + if (!builtinFont->widths->getWidth(enc[code], &w)) { + w = 600; + } widths[code] = 0.001 * w; } } -- 1.7.9.5