c5dd5880ed
OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive-specs-a?expand=0&rev=0852ccee3d4cfeafe05528137bea9d63
69 lines
2.1 KiB
Plaintext
69 lines
2.1 KiB
Plaintext
--- texmf-dist/tex/luatex/luaotfload/luaotfload-legacy-merged.lua
|
|
+++ texmf-dist/tex/luatex/luaotfload/luaotfload-legacy-merged.lua 2013-10-28 13:58:12.000000000 +0000
|
|
@@ -77,11 +77,34 @@ if not caches.namespace or caches.namesp
|
|
end
|
|
do
|
|
local cachepaths
|
|
+ local mktex=kpse.find_file('mktex.cnf','cnf') or ""
|
|
if kpse.expand_var('$TEXMFCACHE')~='$TEXMFCACHE' then
|
|
cachepaths=kpse.expand_var('$TEXMFCACHE')
|
|
elseif kpse.expand_var('$TEXMFVAR')~='$TEXMFVAR' then
|
|
cachepaths=kpse.expand_var('$TEXMFVAR')
|
|
end
|
|
+ if mktex~="" then
|
|
+ local varfonts="no"
|
|
+ local features=io.open(mktex,'r')
|
|
+ local cache
|
|
+ for line in features:lines() do
|
|
+ if string.find(line, 'MT_FEATURES=') then
|
|
+ if string.find(line, 'varfonts') then
|
|
+ varfonts="yes"
|
|
+ end
|
|
+ break
|
|
+ end
|
|
+ end
|
|
+ features:close()
|
|
+ cache=kpse.expand_var('$VARTEXFONTS')
|
|
+ if varfonts=="yes" and cache~="" then
|
|
+ if false == file.is_writable(cache) then
|
|
+ cachepaths=os.getenv("HOME") .. "/.cache/texmf/fonts"
|
|
+ else
|
|
+ cachepaths=cache
|
|
+ end
|
|
+ end
|
|
+ end
|
|
if not cachepaths then
|
|
cachepaths="."
|
|
end
|
|
--- texmf-dist/tex/luatex/luaotfload/luaotfload-merged.lua
|
|
+++ texmf-dist/tex/luatex/luaotfload/luaotfload-merged.lua 2013-10-28 13:52:09.000000000 +0000
|
|
@@ -3012,6 +3012,28 @@ if not caches.namespace or caches.namesp
|
|
end
|
|
do
|
|
local cachepaths=kpse.expand_var('$TEXMFCACHE') or ""
|
|
+ local mktex=kpse.find_file('mktex.cnf','cnf') or ""
|
|
+ if mktex~="" then
|
|
+ local varfonts="no"
|
|
+ local features=io.open(mktex,'r')
|
|
+ for line in features:lines() do
|
|
+ if string.find(line, 'MT_FEATURES=') then
|
|
+ if string.find(line, 'varfonts') then
|
|
+ varfonts="yes"
|
|
+ end
|
|
+ break
|
|
+ end
|
|
+ end
|
|
+ features:close()
|
|
+ cachepaths=kpse.expand_var('$VARTEXFONTS')
|
|
+ if varfonts=="yes" and cachepaths~="" then
|
|
+ if false == file.is_writable(cachepaths) then
|
|
+ cachepaths=os.getenv("HOME") .. "/.cache/texmf/fonts"
|
|
+ end
|
|
+ else
|
|
+ cachepaths=""
|
|
+ end
|
|
+ end
|
|
if cachepaths=="" then
|
|
cachepaths=kpse.expand_var('$TEXMFVAR') or ""
|
|
end
|