diff options
author | Piotr Strzelczyk <piotr@eps.gda.pl> | 2009-11-07 00:02:24 +0000 |
---|---|---|
committer | Piotr Strzelczyk <piotr@eps.gda.pl> | 2009-11-07 00:02:24 +0000 |
commit | 979ba9364639d18a0b005e1deb1d42d6bc3d52ca (patch) | |
tree | b5db00018cd273ffaf0979268158a0ff6a7e60e0 /Master/tlpkg/dviout | |
parent | df97c7576b7b5360ead1ff807b589a81f380f418 (diff) |
more font generation fixes, tfmpath processing
git-svn-id: svn://tug.org/texlive/trunk@15943 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/dviout')
-rw-r--r-- | Master/tlpkg/dviout/gen_pk | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/Master/tlpkg/dviout/gen_pk b/Master/tlpkg/dviout/gen_pk index 2357e63c5d2..2d04b7c3b8e 100644 --- a/Master/tlpkg/dviout/gen_pk +++ b/Master/tlpkg/dviout/gen_pk @@ -1,8 +1,21 @@ %1st
-setlocal
-for %%I in (mktexpk.exe) do set "MKTEXPK_EXE=%%~$PATH:I"
-if not defined MKTEXPK_EXE exit 1
-%2nd
-"%MKTEXPK_EXE%" --mfmode / --dpi ^d --bdpi ^D --mag ^M "^s"
-%3rd
+setlocal enableextensions disabledelayedexpansion
+for %%I in (mktexpk.exe) do set "mktexpk=%%~$PATH:I"
+if not defined mktexpk exit 1
+for /f "usebackq skip=17 tokens=1,2,3* delims=|" %%I in (%0) do (
+ set dpi=%%I
+ set bdpi=%%J
+ set mag=%%K
+ set font=%%L
+ goto :sanitize
+)
+:sanitize
+if defined dpi set "dpi=%dpi:"=%"
+if defined bdpi set "bdpi=%bdpi:"=%"
+if defined mag set "mag=%mag:"=%"
+if defined font set "font=%font:"=%"
+"%mktexpk%" --mfmode / --dpi "%dpi%" --bdpi "%bdpi%" --mag "%mag%" "%font%"
del %0 & exit %errorlevel%
+%2nd
+^d|^D|^M|^s
+%3rd
\ No newline at end of file |