diff options
Diffstat (limited to 'otfl-font-nms.lua')
-rw-r--r-- | otfl-font-nms.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 50e8b96..f60664c 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -59,7 +59,7 @@ function names.resolve(specification) local data = names.data if type(data) == "table" and data.version == names.version then if data.mappings then - local family = data.families[name] + local family = data.families[sanitize(name)] if family and type(family) == "table" then for _,v in ipairs(family) do local face = data.mappings[v] @@ -187,6 +187,8 @@ function fontloader.fullinfo(...) m.design_range_top ~= 0 and m.design_range_top or nil, m.design_range_bottom ~= 0 and m.design_range_bottom or nil, } + + t.names.family = sanitize(t.names.family) return t end |