summaryrefslogtreecommitdiff
path: root/otfl-font-nms.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-04-02 14:05:52 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-04-02 14:05:52 +0200
commitae2c3eb500962f22cb836f415d3bab6da97e1fdd (patch)
treec509584b713396ee00fd8da18357dc98b9c6f840 /otfl-font-nms.lua
parent2b596d525fc8df86b636725304e4b5d6dbeb37f8 (diff)
downloadluaotfload-ae2c3eb500962f22cb836f415d3bab6da97e1fdd.tar.gz
Return the original name, not the normalised one
When we fallback to filename lookup, we should return the original name.
Diffstat (limited to 'otfl-font-nms.lua')
-rw-r--r--otfl-font-nms.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index ebd9b28..83b5277 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -156,7 +156,7 @@ function names.resolve(specification)
logs.report("load font", "font family='%s', subfamily='%s' found: %s", name, style, closest.filename)
return closest.filename, false
else
- return name, false -- fallback to filename
+ return specification.name, false -- fallback to filename
end
end
else