summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-01-13 23:09:21 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-01-14 18:58:49 +0200
commit364fb5930204558554afe9414baf7dff237835e4 (patch)
tree2d17bf728aea5528f55e924ef49d763aa8a306a5
parentd2ef853c06ff6d0806117fe24f2c9ce4af4c8fb2 (diff)
downloadluaotfload-364fb5930204558554afe9414baf7dff237835e4.tar.gz
'scan_os_fonts' is useless
If $OSFONTDIR is set, then it'll be appended to $OPENTYPEFONTS and $TTFONTS anyway, so we are just rescanning fonts. To be replaced by fontconfig based implementation.
-rw-r--r--luaotfload-fonts.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/luaotfload-fonts.lua b/luaotfload-fonts.lua
index 17d81d5..9aa8225 100644
--- a/luaotfload-fonts.lua
+++ b/luaotfload-fonts.lua
@@ -131,6 +131,7 @@ local function scan_dir(dirname, names, recursive, texmf)
end
end
+--[[
local function scan_os_fonts(names)
local fontdirs
fontdirs = expandpath("$OSFONTDIR")
@@ -141,6 +142,7 @@ local function scan_os_fonts(names)
end
end
end
+--]]
local function scan_txmf_tree(names)
local fontdirs = expandpath("$OPENTYPEFONTS")
@@ -159,7 +161,6 @@ local function generate()
version = luaotfload.fonts.version
}
local savepath
- scan_os_fonts(fnames)
scan_txmf_tree(fnames)
logs.simple("%s fonts saved in the database", #table.keys(fnames.mappings))
savepath = kpse.expand_var("$TEXMFVAR") .. "/tex/"