diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-04-23 00:56:09 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-04-23 00:56:09 +0200 |
commit | 1faface747fdf8ca61c4f50518525e5d11bb1063 (patch) | |
tree | a1a4d84ca2e487bacd43a106e821c8b555f60c2c /luaotfload-loaders.lua | |
parent | e102132858d372928719193246c6bd480704e11d (diff) | |
download | luaotfload-1faface747fdf8ca61c4f50518525e5d11bb1063.tar.gz |
move to human-readable names 1
Diffstat (limited to 'luaotfload-loaders.lua')
-rw-r--r-- | luaotfload-loaders.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/luaotfload-loaders.lua b/luaotfload-loaders.lua new file mode 100644 index 0000000..8ab6b29 --- /dev/null +++ b/luaotfload-loaders.lua @@ -0,0 +1,24 @@ +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 |