summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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