From 313233199b453d1f39eabe01a6ae67ebbdfb48db Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Mon, 14 Jun 2010 14:07:28 +0300 Subject: Use file.addsuffix() to properly append the suffix This avoids duplicating the suffix in case it were already given. --- otfl-font-xtx.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otfl-font-xtx.lua b/otfl-font-xtx.lua index c8bcd22..8d81e02 100644 --- a/otfl-font-xtx.lua +++ b/otfl-font-xtx.lua @@ -204,10 +204,10 @@ function fonts.define.specify.colonized(specification) -- xetex mode if list.name then if resolvers.find_file(list.name, "tfm") then list.lookup = "file" - list.name = list.name .. ".tfm" + list.name = file.addsuffix(list.name, "tfm") elseif resolvers.find_file(list.name, "ofm") then list.lookup = "file" - list.name = list.name .. ".ofm" + list.name = file.addsuffix(list.name, "ofm") end specification.name = list.name -- cgit v1.2.3