summaryrefslogtreecommitdiff
path: root/luaotfload-basics-gen.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-08-25 11:47:01 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-08-25 11:47:01 -0700
commit0812209b5d7566de272739ada26eca08f216b876 (patch)
treed2dddab1c57956fabfb89c443267fceb6d8e7a0a /luaotfload-basics-gen.lua
parent6c668c8f2624a22a1f4ddd99d9f561ddf2f4bf0a (diff)
parent54aa74688bba09a538a98d6852fc3848c6c5f52c (diff)
downloadluaotfload-0812209b5d7566de272739ada26eca08f216b876.tar.gz
Merge pull request #126 from phi-gamma/master
improved afm integration
Diffstat (limited to 'luaotfload-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