diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-06-06 21:28:35 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-06-06 21:28:35 +0300 |
commit | 61b06ffa25195a6bfd145c0311ed0d0160ff2259 (patch) | |
tree | 9678a0dd302039cea02b58684498621b2cf5c775 | |
parent | 75a2544fe39407aaf91688d4860d25335a2698dc (diff) | |
download | luaotfload-61b06ffa25195a6bfd145c0311ed0d0160ff2259.tar.gz |
Make sure we always load TFM files even if OSFONTDIR is set
-rw-r--r-- | otfl-font-xtx.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/otfl-font-xtx.lua b/otfl-font-xtx.lua index 236997c..7da29d3 100644 --- a/otfl-font-xtx.lua +++ b/otfl-font-xtx.lua @@ -203,8 +203,12 @@ function fonts.define.specify.colonized(specification) -- xetex mode list.optsize = nil end if list.name then - if resolvers.find_file(list.name, "ofm") then + if resolvers.find_file(list.name, "tfm") then list.lookup = "file" + list.name = list.name .. ".tfm" + elseif resolvers.find_file(list.name, "ofm") then + list.lookup = "file" + list.name = list.name .. ".ofm" end specification.name = list.name |