From 61b06ffa25195a6bfd145c0311ed0d0160ff2259 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 6 Jun 2010 21:28:35 +0300 Subject: Make sure we always load TFM files even if OSFONTDIR is set --- otfl-font-xtx.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3