Merge pull request #12924 from brendandahl/fix-clone

Fix font data clone error when pdfBug is enabled.
This commit is contained in:
Tim van der Meij 2021-01-28 23:42:12 +01:00 committed by GitHub
commit 8805614a03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3196,7 +3196,7 @@ class PartialEvaluator {
getBaseFontMetrics(name) {
var defaultWidth = 0;
var widths = [];
var widths = Object.create(null);
var monospace = false;
var stdFontMap = getStdFontMap();
var lookupName = stdFontMap[name] || name;