From 194f2eff65dcf61e0ef2c5a06f367682881506e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Am=C3=A9rico=20Pereira=20C=C3=A2mara?= Date: Sat, 3 May 2025 00:02:54 -0300 Subject: [PATCH] Remove AFMFont.open --- lib/font/afm.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/font/afm.js b/lib/font/afm.js index d80c12e..d9e47a6 100644 --- a/lib/font/afm.js +++ b/lib/font/afm.js @@ -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 = {};