summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-06-06 21:28:35 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-06-06 21:28:35 +0300
commit61b06ffa25195a6bfd145c0311ed0d0160ff2259 (patch)
tree9678a0dd302039cea02b58684498621b2cf5c775
parent75a2544fe39407aaf91688d4860d25335a2698dc (diff)
downloadluaotfload-61b06ffa25195a6bfd145c0311ed0d0160ff2259.tar.gz
Make sure we always load TFM files even if OSFONTDIR is set
-rw-r--r--otfl-font-xtx.lua6
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