[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Search user fonts on Windows (9fa3dec)
Marcel Fabian Krüger
tex at 2krueger.de
Wed Mar 18 13:07:47 CET 2020
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/9fa3dec92d9aced2ffc5122fd450146affa14499
>---------------------------------------------------------------
commit 9fa3dec92d9aced2ffc5122fd450146affa14499
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sun Mar 15 16:00:00 2020 +0100
Search user fonts on Windows
>---------------------------------------------------------------
9fa3dec92d9aced2ffc5122fd450146affa14499
src/luaotfload-database.lua | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index ec73a45..a74f17b 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -2413,7 +2413,8 @@ local function get_os_dirs ()
}
elseif os.type == "windows" or os.type == "msdos" then
local windir = osgetenv("WINDIR")
- return { filejoin(windir, 'Fonts') }
+ local appdata = osgetenv("LOCALAPPDATA")
+ return { filejoin(windir, 'Fonts'), filejoin(appdata, 'Microsoft/Windows/Fonts') }
else
local fonts_conves = { --- plural, much?
"/usr/local/etc/fonts/fonts.conf",
More information about the latex3-commits
mailing list.