From ccf1abf541a32aebcc6726aca8ebf058a8ae1291 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 25 Aug 2013 12:11:13 +0200 Subject: [fontloader] sync luatex-basics-gen.lua --- luaotfload-basics-gen.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'luaotfload-basics-gen.lua') diff --git a/luaotfload-basics-gen.lua b/luaotfload-basics-gen.lua index 26c1edc..9cf5b93 100644 --- a/luaotfload-basics-gen.lua +++ b/luaotfload-basics-gen.lua @@ -89,6 +89,7 @@ local remapper = { fea = "font feature files", pfa = "type1 fonts", -- this is for Khaled, in ConTeXt we don't use this! pfb = "type1 fonts", -- this is for Khaled, in ConTeXt we don't use this! + afm = "afm", } function resolvers.findfile(name,fileformat) @@ -117,6 +118,11 @@ end resolvers.findbinfile = resolvers.findfile +function resolvers.loadbinfile(filename,filetype) + local data = io.loaddata(filename) + return true, data, #data +end + function resolvers.resolve(s) return s end -- cgit v1.2.3