summaryrefslogtreecommitdiff
path: root/Master/bin/win32/runscript.tlu
diff options
context:
space:
mode:
Diffstat (limited to 'Master/bin/win32/runscript.tlu')
-rwxr-xr-xMaster/bin/win32/runscript.tlu6
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/bin/win32/runscript.tlu b/Master/bin/win32/runscript.tlu
index baebdecc9cc..b4c124e0110 100755
--- a/Master/bin/win32/runscript.tlu
+++ b/Master/bin/win32/runscript.tlu
@@ -242,6 +242,8 @@ local docstr = [[
2013/08/30
- do not pass -NULL to dviout, to allow users changing and
saving settings. Patch by Yusuke KUROKI
+ 2013/09/22
+ - add TEXMFDIST/fonts to the GS_LIB path. Patch by Yusuke KUROKI
]]
-- HELPER SUBROUTINES --
@@ -436,6 +438,7 @@ local lua_binary = arg[k]
kpse.set_program_name(lua_binary, progname)
-- various dir-vars
local TEXDIR = kpse.var_value('SELFAUTOPARENT')
+local TEXMFDIST = kpse.var_value('TEXMFDIST')
local BINDIR = kpse.var_value('SELFAUTOLOC')
local PATH = os.getenv('PATH') or ''
-- restricted programs
@@ -506,7 +509,8 @@ if GSEXE then
end
else
-- use built in gs
- os.setenv('GS_LIB', TEXDIR..'/tlpkg/tlgs/lib;'..TEXDIR..'/tlpkg/tlgs/fonts;'..os.getenv('WINDIR')..'/Fonts')
+ os.setenv('GS_LIB', TEXDIR..'/tlpkg/tlgs/lib;'..TEXDIR..'/tlpkg/tlgs/fonts;'
+ ..os.getenv('WINDIR')..'/Fonts'..TEXMFDIST..'/fonts')
os.setenv('GS_DLL', TEXDIR..'/tlpkg/tlgs/bin/gsdll32.dll')
GSEXE = TEXDIR..'/tlpkg/tlgs/bin/gswin32c.exe'
GSNAME = 'gswin32c.exe'