summaryrefslogtreecommitdiff
path: root/fonts/utilities/t1tools/pfbshow.bat
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /fonts/utilities/t1tools/pfbshow.bat
Initial commit
Diffstat (limited to 'fonts/utilities/t1tools/pfbshow.bat')
-rw-r--r--fonts/utilities/t1tools/pfbshow.bat41
1 files changed, 41 insertions, 0 deletions
diff --git a/fonts/utilities/t1tools/pfbshow.bat b/fonts/utilities/t1tools/pfbshow.bat
new file mode 100644
index 0000000000..b7e805146a
--- /dev/null
+++ b/fonts/utilities/t1tools/pfbshow.bat
@@ -0,0 +1,41 @@
+@echo off
+rem show font text sample and character sets
+rem point size is automatically adjusted to number of fonts (1..4)
+rem additionally required programs:
+rem the PostScript file pfshow.ps
+rem ghostscript
+rem a program to convert .pfb to .pfa hex representation (here t1ascii)
+
+if not "%1"=="-" goto weiter
+set dumvar=
+set del=rem
+shift
+:weiter
+if not "%1"=="" goto los
+echo Parameter: font-files (.pfb), max. 4
+goto end
+
+:los
+rem copy %GS_LIB%\pfshow.ps %TEMP%\pfshow$$.ps
+echo 40 730 sethome 40 setfontsize 1000 setrightborder > %TEMP%\pfshow$$.ps
+rem with one line less, appropriate sizes are 45/28/18/13
+if not "%2"=="" echo 25 setfontsize >> %TEMP%\pfshow$$.ps
+if not "%3"=="" echo 16 setfontsize >> %TEMP%\pfshow$$.ps
+if not "%4"=="" echo 11 setfontsize >> %TEMP%\pfshow$$.ps
+:next
+if "%1"=="-a" goto arial
+if exist %1.pfa type %1.pfa >> %TEMP%\pfshow$$.ps
+if exist %1.pfb D:\fonts\progs\t1utils\t1ascii %1.pfb >> %TEMP%\pfshow$$.ps
+if exist %1 D:\fonts\progs\t1utils\t1ascii %1 >> %TEMP%\pfshow$$.ps
+goto append
+:arial
+D:\fonts\progs\t1utils\t1ascii D:\fonts\profi\_a______.pfb >> %TEMP%\pfshow$$.ps
+:append
+echo appendnewfont >> %TEMP%\pfshow$$.ps
+shift
+if not "%1"=="" goto next
+echo showallfonts showpage quit >> %TEMP%\pfshow$$.ps
+
+gs -q %GSOPT% pfshow.ps %TEMP%\pfshow$$.ps
+%del% del %TEMP%\pfshow$$.ps
+:end