diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-08-11 11:34:12 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-08-11 11:34:12 +0200 |
commit | e20a16e95b45dde2dd0b65c6bda460c5c2fe0164 (patch) | |
tree | 5e8b813356af25347b51b34db76c38981691b32f | |
parent | 61a24f830504da4252dbc3c8de4b273749174580 (diff) | |
download | luaotfload-e20a16e95b45dde2dd0b65c6bda460c5c2fe0164.tar.gz |
[type1] install simple PFB reader after loading AFM support
-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 |