summaryrefslogtreecommitdiff
path: root/luaotfload-fonts.lua
diff options
context:
space:
mode:
Diffstat (limited to 'luaotfload-fonts.lua')
-rw-r--r--luaotfload-fonts.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/luaotfload-fonts.lua b/luaotfload-fonts.lua
index c425ee7..9437023 100644
--- a/luaotfload-fonts.lua
+++ b/luaotfload-fonts.lua
@@ -171,7 +171,11 @@ end
local function read_fcdata(data)
local list = { }
for line in data:lines() do
- list[#list+1] = line:gsub(": ", "")
+ line = line:gsub(": ", "")
+ local ext = string.lower(string.match(line,"^.+%.([^/\\]-)$"))
+ if ext == "otf" or ext == "ttf" or ext == "ttc" or ext == "dfont" then
+ list[#list+1] = line:gsub(": ", "")
+ end
end
return list
end