Skip to content

Commit 715c2e3

Browse files
committed
Remove AFMFont.charWidths
1 parent 194f2ef commit 715c2e3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/font/afm.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,6 @@ class AFMFont {
111111
this.kernPairs = {};
112112

113113
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-
}
119114

120115
this.bbox = this.attributes['FontBBox'].split(/\s+/).map((e) => +e);
121116
this.ascender = +(this.attributes['Ascender'] || 0);

0 commit comments

Comments
 (0)