Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/fontloader/runtime/fontloader-basics-gen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -197,18 +197,18 @@ do

-- standard context tree setup

local cachepaths = kpse.expand_var('$TEXMFCACHE') or ""
local cachepaths = kpse.expand_braces('$TEXMFCACHE') or ""

-- quite like tex live or so (the weird $TEXMFCACHE test seems to be needed on miktex)

if cachepaths == "" or cachepaths == "$TEXMFCACHE" then
cachepaths = kpse.expand_var('$TEXMFVAR') or ""
cachepaths = kpse.expand_braces('$TEXMFVAR') or ""
end

-- this also happened to be used (the weird $TEXMFVAR test seems to be needed on miktex)

if cachepaths == "" or cachepaths == "$TEXMFVAR" then
cachepaths = kpse.expand_var('$VARTEXMF') or ""
cachepaths = kpse.expand_braces('$VARTEXMF') or ""
end

-- and this is a last resort (hm, we could use TEMP or TEMPDIR)
Expand Down
6 changes: 3 additions & 3 deletions src/fontloader/runtime/fontloader-reference.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4637,12 +4637,12 @@ if not caches.namespace or caches.namespace=="" or caches.namespace=="context" t
caches.namespace='generic'
end
do
local cachepaths=kpse.expand_var('$TEXMFCACHE') or ""
local cachepaths=kpse.expand_braces('$TEXMFCACHE') or ""
if cachepaths=="" or cachepaths=="$TEXMFCACHE" then
cachepaths=kpse.expand_var('$TEXMFVAR') or ""
cachepaths=kpse.expand_braces('$TEXMFVAR') or ""
end
if cachepaths=="" or cachepaths=="$TEXMFVAR" then
cachepaths=kpse.expand_var('$VARTEXMF') or ""
cachepaths=kpse.expand_braces('$VARTEXMF') or ""
end
if cachepaths=="" then
local fallbacks={ "TMPDIR","TEMPDIR","TMP","TEMP","HOME","HOMEPATH" }
Expand Down