We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 194f2ef commit 715c2e3Copy full SHA for 715c2e3
lib/font/afm.js
@@ -111,11 +111,6 @@ class AFMFont {
111
this.kernPairs = {};
112
113
this.parse();
114
- // todo: remove charWidths since appears to not be used
115
- this.charWidths = new Array(256);
116
- for (let char = 0; char <= 255; char++) {
117
- this.charWidths[char] = this.glyphWidths[characters[char]];
118
- }
119
120
this.bbox = this.attributes['FontBBox'].split(/\s+/).map((e) => +e);
121
this.ascender = +(this.attributes['Ascender'] || 0);
0 commit comments