From da903f6da2e1a00e3ec681913346e0f9ce3b6d24 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Tue, 18 May 2010 16:21:08 +0300 Subject: A bit of documentation --- otfl-font-nms.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 73dd577..f5c8bf6 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -128,8 +128,13 @@ 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 ext == 'otf' or ext == 'ttf' or ext == 'ttc' or ext == 'dfont' 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") -- cgit v1.2.3