summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2010-05-18 16:21:08 +0300
committerElie Roux <elie.roux@telecom-bretagne.eu>2010-05-18 16:21:08 +0300
commitda903f6da2e1a00e3ec681913346e0f9ce3b6d24 (patch)
treec72c2f0886be68aabe78261b608489eaf8390e18
parentd5a6caa4e9ecff79f41333d7c13843543566efac (diff)
downloadluaotfload-da903f6da2e1a00e3ec681913346e0f9ce3b6d24.tar.gz
A bit of documentation
-rw-r--r--otfl-font-nms.lua5
1 files changed, 5 insertions, 0 deletions
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")