From 1cd9d5a8fde59ca882457231434ef788a332b3f7 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 20 Mar 2020 10:34:36 +0100 Subject: [PATCH] Remove the unused `wideChars` property on `Font` instances This property was added in PR 1599 (almost eight years ago), but has been unused ever since PR 3674 (six and a half years ago). --- src/core/evaluator.js | 1 - src/core/fonts.js | 1 - 2 files changed, 2 deletions(-) diff --git a/src/core/evaluator.js b/src/core/evaluator.js index 471132b75..5d84b3844 100644 --- a/src/core/evaluator.js +++ b/src/core/evaluator.js @@ -3176,7 +3176,6 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { length3, loadedName: baseDict.loadedName, composite, - wideChars: composite, fixedPitch: false, fontMatrix: dict.getArray("FontMatrix") || FONT_IDENTITY_MATRIX, firstChar: firstChar || 0, diff --git a/src/core/fonts.js b/src/core/fonts.js index 9ee3f2e79..614048c9a 100644 --- a/src/core/fonts.js +++ b/src/core/fonts.js @@ -544,7 +544,6 @@ var Font = (function FontClosure() { this.widths = properties.widths; this.defaultWidth = properties.defaultWidth; this.composite = properties.composite; - this.wideChars = properties.wideChars; this.cMap = properties.cMap; this.ascent = properties.ascent / PDF_GLYPH_SPACE_UNITS; this.descent = properties.descent / PDF_GLYPH_SPACE_UNITS;