diff --git a/lib/font/afm.js b/lib/font/afm.js index d9e47a6..610f381 100644 --- a/lib/font/afm.js +++ b/lib/font/afm.js @@ -111,11 +111,6 @@ class AFMFont { this.kernPairs = {}; this.parse(); - // todo: remove charWidths since appears to not be used - this.charWidths = new Array(256); - for (let char = 0; char <= 255; char++) { - this.charWidths[char] = this.glyphWidths[characters[char]]; - } this.bbox = this.attributes['FontBBox'].split(/\s+/).map((e) => +e); this.ascender = +(this.attributes['Ascender'] || 0);