diff options
-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 |