summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--otfl-font-nms.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index 8290e17..87f4987 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -118,10 +118,10 @@ function names.resolve(_,_,specification) -- the 1st two parameters are used by
if data.mappings then
local found = { }
for _,face in next, data.mappings do
- local family = sanitize(face.names.family)
- local subfamily = sanitize(face.names.subfamily)
- local fullname = sanitize(face.names.fullname)
- local psname = sanitize(face.names.psname)
+ local family = sanitize(face.names and face.names.family)
+ local subfamily = sanitize(face.names and face.names.subfamily)
+ local fullname = sanitize(face.names and face.names.fullname)
+ local psname = sanitize(face.names and face.names.psname)
local fontname = sanitize(face.fontname)
local pfullname = sanitize(face.fullname)
local optsize, dsnsize, maxsize, minsize