diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-05-31 19:20:48 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-05-31 19:54:23 +0300 |
commit | 70c20cda5b485931cb5105aa996d7b98197a2197 (patch) | |
tree | 38c06fdbb85e050b2624da76f90089b683437918 | |
parent | d8182391db400f8827e068ac72e9b8eb7c85af01 (diff) | |
download | luaotfload-70c20cda5b485931cb5105aa996d7b98197a2197.tar.gz |
This code path have never been used
-rw-r--r-- | otfl-font-nms.lua | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index f0d0d17..0cad6b1 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -165,28 +165,6 @@ function names.resolve(specification) local data = names.data if type(data) == "table" and data.version == names.version then if data.mappings then - -- if the specified name ends like a font file, we first look for - -- it through kpse, and if we don't find it, we look for it in - -- the database. - if table.contains(font_extensions_lc, ext) then - local fname = specification.name - -- for absolute and relative path, kpse will find them, so - -- there shouldn't be any problem - local path = resolvers.find_file(fname, "opentype fonts") - if not path then - path = resolvers.find_file(fname, "truetype fonts") - end - if path then - return path -- or fname ? - else - for _,face in ipairs(data.mappings) do - if basename(face.filename[1]) == fname then - return face.filename[1], face.filename[2] - end - end - end - return specification.name - end local found = { } for _,face in ipairs(data.mappings) do local family = sanitize(face.names.family) |