home *** CD-ROM | disk | FTP | other *** search
- % Copyright (C) 1992, 1993 Aladdin Enterprises. All rights reserved.
- %
- % This file is part of Ghostscript.
- %
- % Ghostscript is distributed in the hope that it will be useful, but
- % WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
- % to anyone for the consequences of using it or for whether it serves any
- % particular purpose or works at all, unless he says so in writing. Refer
- % to the Ghostscript General Public License for full details.
- %
- % Everyone is granted permission to copy, modify and redistribute
- % Ghostscript, but only under the conditions described in the Ghostscript
- % General Public License. A copy of this license is supposed to have been
- % given to you along with Ghostscript so you can know your rights and
- % responsibilities. It should be in a file named COPYING. Among other
- % things, the copyright notice and this notice must be preserved on all
- % copies.
-
- % waterfal.ps
- % This file produces a 'waterfall' printout of fonts at various sizes.
-
-
- % Specify any desired set of up to 3 fonts here.
- /Fonts [/Palatino-Roman /Palatino-Italic /Palatino-Bold] def
-
- % Specify any desired set of point sizes here.
- % The sum of the sizes should not exceed (roughly) 100.
- % For sizes larger than about 16, some characters may fall off the page.
- /Sizes [7 8 9 10 11 12 14 16] def
-
- /eol
- { currentfont /FontBBox get aload pop
- exch pop sub exch pop 0 exch
- currentfont /FontMatrix get dtransform
- translate
- 0 0 moveto
- } def
-
- (landscap.ps) run
- clippath pathbbox newpath
- /ury exch def /urx exch def /lly exch def /llx exch def
- llx 18 add ury 18 sub translate
- % Read the current Y resolution without using Ghostscript-specific operators.
- gsave initmatrix 0 72 dtransform abs exch abs exch max grestore
- round cvi /dpi exch def
- QUIET not
- { (Creating waterfall printout at ) print dpi =only ( DPI.\n) print flush
- }
- if
-
- newpath 0 setgray
- /Courier findfont 20 scalefont setfont
-
- Fonts
- { save exch
- findfont /basefont exch def
- basefont 20 scalefont setfont eol
- basefont /FontName get =string cvs show
- ( ) show dpi =string cvs show ( DPI) show
- Sizes
- { dup /size exch def basefont exch scalefont setfont eol
- size =string cvs show ( ) show
- (qwertyuiop-asdfghjkl_zxcvbnm ) show
- (QWERTYUIOP+ASDFGHJKL/ZXCVBNM ) show
- (1470258369 .,:;?!) show
- } forall
- matrix currentmatrix aload pop
- 7 -1 roll restore
- 6 array astore setmatrix
- } forall
-
- showpage
- quit
-