summaryrefslogtreecommitdiff
path: root/fonts/utilities/t1tools/pfbshow.bat
blob: b7e805146a7bf833234848fddec51edd554bb846 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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