summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-01-15 07:22:37 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-01-15 08:28:19 +0200
commitd219fcfa58d00d321aaf8966c7d62a38d0cb4d45 (patch)
treecf2bc429d5edfd9d3dd2b57f4278e0f04a255fa2
parente9a6ba1faeb7d7e943e386286aa76e9c6345ed62 (diff)
downloadluaotfload-d219fcfa58d00d321aaf8966c7d62a38d0cb4d45.tar.gz
Fix loading subfonts
-rw-r--r--otfl-font-dum.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/otfl-font-dum.lua b/otfl-font-dum.lua
index d9fabfa..0859f6d 100644
--- a/otfl-font-dum.lua
+++ b/otfl-font-dum.lua
@@ -80,14 +80,14 @@ function fonts.names.resolve(name,sub,style)
family = family[style]
local fontname, filename, subfont = family, family[1], family[2]
if subfont then
- return filename, fontname
+ return filename, subfont
else
return filename, false
end
elseif psname then
local fontname, filename, subfont = psname, psname[1], psname[2]
if subfont then
- return filename, fontname
+ return filename, subfont
else
return filename, false
end