Remove AFMFont.charWidths

This commit is contained in:
Luiz Américo Pereira Câmara 2025-05-03 00:03:33 -03:00
parent 194f2eff65
commit 715c2e39aa

View File

@ -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);