From 1faface747fdf8ca61c4f50518525e5d11bb1063 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 23 Apr 2013 00:56:09 +0200 Subject: move to human-readable names 1 --- luaotfload-loaders.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 luaotfload-loaders.lua (limited to 'luaotfload-loaders.lua') 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 -- cgit v1.2.3