summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-01-14 23:14:42 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-01-15 08:28:18 +0200
commiteffffb25946c8b36e2338d00938d0410a9d1c0f4 (patch)
tree6e8066337c8d0f9ba8f7abde10c7b7b77cb60c3a
parent347ab0a91484624454e20b10f06cf50acdf17254 (diff)
downloadluaotfload-effffb25946c8b36e2338d00938d0410a9d1c0f4.tar.gz
Make non-subfonts entries dictionaries as well
Even if it is a single value (filename), to make our life easier in matching process.
-rw-r--r--luaotfload-fonts.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/luaotfload-fonts.lua b/luaotfload-fonts.lua
index 2a5d4ba..b3348ef 100644
--- a/luaotfload-fonts.lua
+++ b/luaotfload-fonts.lua
@@ -122,8 +122,8 @@ local function load_font(filename, names, texmf)
if not families[fullinfo.family] then
families[fullinfo.family] = { }
end
- families[fullinfo.family][fullinfo.style] = texmf and basename(filename) or filename
- psnames[fullinfo.psname] = texmf and basename(filename) or filename
+ families[fullinfo.family][fullinfo.style] = {texmf and basename(filename) or filename}
+ psnames[fullinfo.psname] = {texmf and basename(filename) or filename}
end
else
log("Failed to load %s", filename)