diff options
Diffstat (limited to 'luaotfload-loaders.lua')
-rw-r--r-- | luaotfload-loaders.lua | 39 |
1 files changed, 17 insertions, 22 deletions
diff --git a/luaotfload-loaders.lua b/luaotfload-loaders.lua index fd7c8c6..15a97e0 100644 --- a/luaotfload-loaders.lua +++ b/luaotfload-loaders.lua @@ -9,28 +9,6 @@ if not modules then modules = { } end modules ["loaders"] = { local fonts = fonts local readers = fonts.readers ---- ---- 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 = { } - - resolvers.openbinfile = function (filename) if filename and filename ~= "" then local f = io.open(filename,"rb") @@ -87,4 +65,21 @@ require "luaotfload-font-afk.lua" --[[ </EXPERIMENTAL> ]] +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.pfa = "type1" +fonts.readers.pfa = pfa_reader +fonts.handlers.pfa = { } + + +fonts.formats.pfb = "type1" +fonts.readers.pfb = pfb_reader +fonts.handlers.pfb = { } --- empty, as with tfm + -- vim:tw=71:sw=2:ts=2:expandtab |