summaryrefslogtreecommitdiff
path: root/src/luaotfload-loaders.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-07-27 23:09:58 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-07-27 23:11:17 +0200
commitca62681c4174dae59d0f45f6432d5ab60d4207f3 (patch)
treeb21aee09dea7c3361dc62b28cdb1f118babba24b /src/luaotfload-loaders.lua
parentc2ee46eb5b2cecfa08c7d31f57e0c46d2457ad36 (diff)
downloadluaotfload-ca62681c4174dae59d0f45f6432d5ab60d4207f3.tar.gz
[loaders] take tfm path directly where appropriate
The AFM one is still preferable when passed a PFB because of the extra checking it does.
Diffstat (limited to 'src/luaotfload-loaders.lua')
-rw-r--r--src/luaotfload-loaders.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/luaotfload-loaders.lua b/src/luaotfload-loaders.lua
index d7be31e..87275ef 100644
--- a/src/luaotfload-loaders.lua
+++ b/src/luaotfload-loaders.lua
@@ -50,6 +50,7 @@ local unsupported_reader = function (format)
end
local type1_reader = fonts.readers.afm
+local tfm_reader = fonts.readers.tfm
local install_formats = function ()
local fonts = fonts
@@ -82,9 +83,9 @@ local install_formats = function ()
and aux ("lua", lua_reader)
and aux ("pfa", unsupported_reader "pfa")
and aux ("afm", type1_reader)
- and aux ("tfm", type1_reader)
and aux ("pfb", type1_reader)
- and aux ("ofm", readers.tfm)
+ and aux ("tfm", tfm_reader)
+ and aux ("ofm", tfm_reader)
and aux ("dfont", unsupported_reader "dfont")
end