Remove AFMFont.open

This commit is contained in:
Luiz Américo Pereira Câmara 2025-05-03 00:02:54 -03:00
parent f4edf3d405
commit 194f2eff65

View File

@ -1,5 +1,3 @@
import fs from 'fs';
const WIN_ANSI_MAP = {
402: 131,
8211: 150,
@ -105,10 +103,6 @@ udieresis yacute thorn ydieresis\
`.split(/\s+/);
class AFMFont {
static open(filename) {
return new AFMFont(fs.readFileSync(filename, 'utf8'));
}
constructor(contents) {
this.contents = contents;
this.attributes = {};