From 364fb5930204558554afe9414baf7dff237835e4 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Wed, 13 Jan 2010 23:09:21 +0200 Subject: '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. --- luaotfload-fonts.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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/" -- cgit v1.2.3