diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2016-07-27 23:09:58 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2016-07-27 23:11:17 +0200 |
commit | ca62681c4174dae59d0f45f6432d5ab60d4207f3 (patch) | |
tree | b21aee09dea7c3361dc62b28cdb1f118babba24b /src/luaotfload-loaders.lua | |
parent | c2ee46eb5b2cecfa08c7d31f57e0c46d2457ad36 (diff) | |
download | luaotfload-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.lua | 5 |
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 |