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