home *** CD-ROM | disk | FTP | other *** search
- head 1.1;
- access;
- symbols;
- locks; strict;
- comment @% @;
-
-
- 1.1
- date 94.04.27.12.03.43; author peteric; state Exp;
- branches;
- next ;
-
-
- desc
- @PostScript code to print widths for a number of fonts.
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @/str 40 string def
- /wf /Helvetica findfont 10 scalefont def
- /swf { /of currentfont def wf setfont } def
- /sof { of setfont } def
- /pstr {
- dup show
- stringwidth
- swf
- currentpoint exch pop rm1 exch moveto
- (-- x: ) show exch str cvs show
- currentpoint exch pop rm2 exch moveto
- (y: ) show str cvs show
- sof
- } def
- /nl {
- currentpoint ls sub exch pop lm exch moveto
- } def
- /strw {
- dup findfont sz scalefont setfont
- str cvs show (:) show nl
- (abcdefghijklmnopqrstuvwxyz) pstr nl
- (ABCDEFGHIJKLMNOPQRSTUVWXYZ) pstr nl
- (VAflffij) pstr nl
- (1234567890 !@@#$%^&*()_+-=) pstr nl
- (The Rain in Spain falls Mainly on the Plain) pstr nl
- (The Quick Brown Fox Jumped over the Lazy Dog) pstr nl
- } def
-
- /sz 16 def
- /ls sz 1.11 mul cvi def
- /lm 20 def
- /rm1 435 def
- /rm2 520 def
- lm 800 moveto
- /Courier strw nl
- /Helvetica strw nl
- /Times-Roman strw nl
- /Becker-Medium strw nl
- /GenoaItalic strw nl
- /Heidelbe-Light strw nl
- /TaranisT1Plain strw nl
-
- showpage
- @
-