summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-08-25 12:11:13 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-08-25 12:11:13 +0200
commitccf1abf541a32aebcc6726aca8ebf058a8ae1291 (patch)
treed2e4f7e3e15dee3895431e4376cec3d788c56ca1
parentb40962783c48f18452e3be2f7e84d2f1194005db (diff)
downloadluaotfload-ccf1abf541a32aebcc6726aca8ebf058a8ae1291.tar.gz
[fontloader] sync luatex-basics-gen.lua
-rw-r--r--luaotfload-basics-gen.lua6
1 files changed, 6 insertions, 0 deletions
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