diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-06-14 14:07:28 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-06-14 16:19:11 +0300 |
commit | 313233199b453d1f39eabe01a6ae67ebbdfb48db (patch) | |
tree | 7cc8b91133b5b56d73d18039e6dfcb14ea504f25 | |
parent | b05f5af6f0e4b11da21da783abed32d4822aa9ba (diff) | |
download | luaotfload-313233199b453d1f39eabe01a6ae67ebbdfb48db.tar.gz |
Use file.addsuffix() to properly append the suffix
This avoids duplicating the suffix in case it were already given.
-rw-r--r-- | otfl-font-xtx.lua | 4 |
1 files 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 |