summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-04-02 20:49:37 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-04-02 20:49:37 +0200
commitb76d93af6ec294e4943f9dddeac963985881a7d0 (patch)
tree5a2943e7884ac50cb5677f77845e43eb179d51af
parentc1eca213a74c2687d7d3a5c4069edcc900934720 (diff)
downloadluaotfload-b76d93af6ec294e4943f9dddeac963985881a7d0.tar.gz
Try fontname and ps fullname too
-rw-r--r--otfl-font-nms.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index 761ff40..589ca10 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -81,6 +81,8 @@ function names.resolve(specification)
local subfamily = sanitize(face.names.subfamily)
local fullname = sanitize(face.names.fullname)
local psname = sanitize(face.names.psname)
+ local fontname = sanitize(face.fontname)
+ local pfullname = sanitize(face.fullname)
local filename = face.filename
local optsize, dsnsize, maxsize, minsize
if #face.size > 0 then
@@ -118,7 +120,7 @@ function names.resolve(specification)
found[1] = face
end
else
- if name == fullname or name == psname then
+ if name == fullname or name == pfullname or name == fontname or name == psname then
if optsize then
if dsnsize == size or (size > minsize and size <= maxsize) then
found[1] = face