summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/luaotfload/otfl-font-nms.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luaotfload/otfl-font-nms.lua')
-rw-r--r--Master/texmf-dist/tex/luatex/luaotfload/otfl-font-nms.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/luatex/luaotfload/otfl-font-nms.lua b/Master/texmf-dist/tex/luatex/luaotfload/otfl-font-nms.lua
index 73a45c9dbf0..54dcde886f0 100644
--- a/Master/texmf-dist/tex/luatex/luaotfload/otfl-font-nms.lua
+++ b/Master/texmf-dist/tex/luatex/luaotfload/otfl-font-nms.lua
@@ -189,6 +189,9 @@ function names.resolve(specification)
found[1] = face
break
end
+ elseif subfamily == "regular"
+ or synonyms.regular[style] then
+ found.fallback = face
end
else
if name == fullname
@@ -237,6 +240,8 @@ function names.resolve(specification)
name, style, closest.filename[1])
return closest.filename[1], closest.filename[2]
end
+ elseif found.fallback then
+ return found.fallback.filename[1], found.fallback.filename[2]
end
-- no font found so far
if not reloaded then