1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #8938 from brendandahl/bug1392647

Use font's default width even when 0. (bug 1392647)
This commit is contained in:
Jonas Jenwald 2017-09-20 22:38:39 +02:00 committed by GitHub
commit abc864fca9
4 changed files with 9 additions and 1 deletions

View file

@ -2083,7 +2083,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
var defaultVMetrics;
var i, ii, j, jj, start, code, widths;
if (properties.composite) {
defaultWidth = dict.get('DW') || 1000;
defaultWidth = dict.has('DW') ? dict.get('DW') : 1000;
widths = dict.get('W');
if (widths) {