From f3d01d6407f3a8bd178a876a3a6228102618b986 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 15 Apr 2013 14:12:40 +0200 Subject: clean font-pfb --- otfl-font-pfb.lua | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'otfl-font-pfb.lua') diff --git a/otfl-font-pfb.lua b/otfl-font-pfb.lua index 66abf23..8ab6b29 100644 --- a/otfl-font-pfb.lua +++ b/otfl-font-pfb.lua @@ -1,8 +1,24 @@ -local fonts = fonts -local readers = fonts.readers +local fonts = fonts -fonts.formats.pfb = "pfb" -fonts.formats.pfa = "pfa" +--- +--- opentype reader (from font-otf.lua): +--- (spec : table) -> (suffix : string) -> (format : string) -> (font : table) +--- -function readers.pfb(specification) return readers.opentype(specification,"pfb","type1") end -function readers.pfa(specification) return readers.opentype(specification,"pfa","type1") end +local pfb_reader = function (specification) + return readers.opentype(specification,"pfb","type1") +end + +local pfa_reader = function (specification) + return readers.opentype(specification,"pfa","type1") +end + +fonts.formats.pfb = "type1" +fonts.readers.pfb = pfb_reader +fonts.handlers.pfb = { } --- empty, as with tfm + +fonts.formats.pfa = "type1" +fonts.readers.pfa = pfa_reader +fonts.handlers.pfa = { } + +-- vim:tw=71:sw=2:ts=2:expandtab -- cgit v1.2.3 From 4f0774100b6000784cf29bcc8677e63a3169f21a Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 22 Apr 2013 15:15:22 +0200 Subject: =?UTF-8?q?migrate=20files=20from=20=E2=80=98otfl=E2=80=99=20to=20?= =?UTF-8?q?=E2=80=98luaotfload=E2=80=99=20prefix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- otfl-font-pfb.lua | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 otfl-font-pfb.lua (limited to 'otfl-font-pfb.lua') diff --git a/otfl-font-pfb.lua b/otfl-font-pfb.lua deleted file mode 100644 index 8ab6b29..0000000 --- a/otfl-font-pfb.lua +++ /dev/null @@ -1,24 +0,0 @@ -local fonts = fonts - ---- ---- opentype reader (from font-otf.lua): ---- (spec : table) -> (suffix : string) -> (format : string) -> (font : table) ---- - -local pfb_reader = function (specification) - return readers.opentype(specification,"pfb","type1") -end - -local pfa_reader = function (specification) - return readers.opentype(specification,"pfa","type1") -end - -fonts.formats.pfb = "type1" -fonts.readers.pfb = pfb_reader -fonts.handlers.pfb = { } --- empty, as with tfm - -fonts.formats.pfa = "type1" -fonts.readers.pfa = pfa_reader -fonts.handlers.pfa = { } - --- vim:tw=71:sw=2:ts=2:expandtab -- cgit v1.2.3