3 # make-zapfdr -- script for creating the file zapfdr.ps
5 # Copyright (C) 2006, 2009
6 # Free Software Foundation, Inc.
7 # Written by Werner Lemberg <wl@gnu.org>
9 # This file is part of groff.
11 # groff is free software; you can redistribute it and/or modify it under
12 # the terms of the GNU General Public License as published by the Free
13 # Software Foundation, either version 3 of the License, or
14 # (at your option) any later version.
16 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
17 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 # You should have received a copy of the GNU General Public License
22 # along with this program. If not, see <http://www.gnu.org/licenses/>.
27 # make-zapfdr < ZapfDingbats.afm > zapfdr.ps
33 %!PS-Adobe-3.0 Resource-Font
34 %%DocumentNeededResources: font ZapfDingbats
36 %%IncludeResource: font ZapfDingbats
38 /ZapfDingbats findfont [-1 0 0 1 0 0] makefont
40 dup length 1 add dict begin
42 exch dup dup /FID ne exch /UniqueID ne and {
49 /FontName /ZapfDingbats-Reverse def
53 # Emit reverse metrics.
56 s|StartCharMetrics \([0-9]*\)|/Metrics \1 dict dup begin|
63 s|^.* N \([^ ]*\) ;.*$|&/\1 [|
64 s|^.* B [0-9-]* [0-9-]* \([0-9]*\) [0-9-]* ;.*$|&-\1 |
65 s|^.* B [0-9-]* [0-9-]* -\([0-9]*\) [0-9-]* ;.*$|&\1 |
66 s|^.* WX \([0-9]*\) ;.*$|&-\1] def|
67 s|^.* WX -\([0-9]*\) ;.*$|&\1] def|
87 /ZapfDingbats-Reverse currentdict end definefont pop