diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2011-10-14 20:43:11 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2011-10-14 20:43:11 +0200 |
commit | 27425270c71d8cc0a846f236e7128a2fb80cb403 (patch) | |
tree | b612f60cac4bf9aa0a33fe5f0edd6e7f736bdde7 /otfl-font-nms.lua | |
parent | ee1fab567ddf9949c01459a22f7dcb1053e3c48a (diff) | |
download | luaotfload-27425270c71d8cc0a846f236e7128a2fb80cb403.tar.gz |
No more pairs()/ipairs()
Diffstat (limited to 'otfl-font-nms.lua')
-rw-r--r-- | otfl-font-nms.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 8c4a077..889c5aa 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -467,14 +467,14 @@ local function read_blacklist() end end end - for fontname,_ in pairs(whitelist) do + for _,fontname in next, whitelist do blacklist[fontname] = nil end end local font_extensions = { "otf", "ttf", "ttc", "dfont" } local font_extensions_set = {} -for key, value in ipairs(font_extensions) do +for key, value in next, font_extensions do font_extensions_set[value] = true end @@ -490,7 +490,7 @@ local function scan_installed_fonts(fontnames, newfontnames) if trace_search then logs.report("operating system fonts found", "%d", #fonts) end - for key, value in ipairs(fonts) do + for key, value in next, fonts do local file = value.path if file then local ext = extname(file) |