mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Remove AFMFont.charWidths
This commit is contained in:
parent
194f2eff65
commit
715c2e39aa
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user