Debian Codegraph @

texmf-dist/fonts/source/public/drm/drmdigs.mf

raw
1 % +AMDG This document was begun on 5 May 11EX, the feast of
2 % St. Pius V, and it is humbly dedicated to him and to the
3 % Immaculate Heart of Mary for their prayers, and to the
4 % Sacred Heart of Jesus for His mercy.
5
6 picture six;
7
8 beginchar("1",digwid#+2ss#,cap#,0); "The digit 1";
9 italcorr(ex#*slant);
10
11 z0 = (w/2-thickstroke/2,lserhl);
12 z1 = z0 shifted (thickstroke,0);
13 z10 = (w/2-thickstroke/2,h-2userh);
14 z11 = z10 shifted (thickstroke,0);
15 z12 = z11 shifted (0,2userh+o);
16 z13 = z12 shifted (-thickstroke,0);
17 z14 = z10 shifted (-lserwl-o,0);
18 z15 = z14 shifted (0,thinl);
19
20 llserif(0,2,3,4,5)(1);
21 lrserif(1,6,7,8,9)(1);
22
23 fill
24 z0..z2..z3--z4--z8--z7..z6..z1--z12--z13{down}..{left}z15--z14--z10--z0--cycle;
25
26 penlabels(0,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,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80);
27 endchar;
28
29 beginchar("2",digwid#+2ss#,cap#,0); "The digit 2";
30 italcorr(ex#*slant);
31
32 z0 = (w/2,h+o);
33 z1 = z0 shifted (0,-thinl);
34 z2 = (ss,3h/4);
35 z3 = z2 shifted (bulbsh,-bulbsh);
36 z4 = z3 shifted (bulbsh,bulbsh);
37 z5 = z4 shifted (-bulbsh,bulbsh);
38 z6 = (w-ss,3h/4);
39 z7 = z6 shifted (-curvl,0);
40 z8 = (ss,thickl);
41 z9 = z8 shifted (1.5thinl,0);
42 z10 = (ss,0);
43 z11 = (w-ss,0);
44 z12 = z11 shifted (0,thickl);
45 z13 = z12 shifted (0,thinl);
46 z14 = z13 shifted (-thinl/2,0);
47 z15 = z12 shifted (-thinl/2,0);
48
49 path twopath; twopath =
50 z5{right}..{down}z4{down}..{left}z3{left}..{up}z2{up}..{right}z0{right}..{down}z6{down}..{down}z9--z15--z14--z13--z11--z10--z8{up}..{up}z7{up}..{left}z1{left}..{dir
51 -120}cycle;
52 fill twopath;
53
54 picture two; two := currentpicture;
55
56 penlabels(0,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,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80);
57 endchar;
58
59 beginchar("3",digwid#+2ss#,cap#,0); "The digit 3";
60 italcorr(ex#*slant);
61
62 z0 = (w/2,h+o);
63 z1 = (w/2,0-o);
64 z2 = (ss,.75h);
65 z3 = (ss,.25h);
66 z4 = z0 shifted (0,-thinstroke);
67 z5 = z1 shifted (0,thinstroke);
68 z6 = z8 shifted (-curvwid,0);
69 z7 = z9 shifted (-curvwid,0);
70 z8 = (w-ss,3h/4);
71 z9 = (w-ss,h/4);
72 z10 = (w/2-2thinstroke,h/2+thinstroke);
73 z11 = z10 shifted (0,-thinstroke);
74 z20 = z10 shifted (1.5thickstroke,-thinstroke/2);
75 z21 = z9 shifted (-o/4,0);
76 z22 = z10 shifted (1.5thickl,0);
77 z23 = z11 shifted (1.5thickl,0);
78
79 ulftbulb(2,12,13,14,15);
80 ulftbulb(3,16,17,18,19);
81
82 fill
83 z2{up}..{right}z0{right}..{down}z8{down}..z20..{left}z11--z10{right}..z20..{down}z9{down}..{left}z1{left}..{up}z3{up}..{right}z16{right}..{down}z17{down}..{left}z18{dir
84 -60}..{right}z5{right}..{up}z7{up}..{left}z11--z10{right}..{up}z6{up}..{left}z4{left}..{dir
85 -120}z12{right}..{down}z13{down}..{left}z14{left}..{up}cycle;
86
87 penlabels(0,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,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80);
88 endchar;
89
90 beginchar("4",digwid#+2ss#,cap#,0); "The digit 4";
91 italcorr(ex#*slant);
92
93 z0 = (w-ss-lserwl,h+2o);
94 z1 = (x0,2h/5);
95 y2 = y1; x2 = ss;
96 z3 = z0 shifted (0,-thinstroke);
97 z4 = z2 shifted (thinstroke,0);
98 z6 = z1 shifted (-thickstroke,0);
99 z7 = z0 shifted (-thickstroke,0);
100 z5 = zca[z3,z4];
101 z5 = zcb[z6,z7];
102 z8 = z2 shifted (0,-thinstroke);
103 z9 = z4 shifted (0,-thinstroke);
104 z10 = z6 shifted (0,-thinstroke);
105 z11 = z1 shifted (0,-thinstroke);
106 z12 = z1 shifted (lserwl,0);
107 z13 = z11 shifted (lserwl,0);
108 x14 = x10; y14 = lserhl;
109 z15 = z14 shifted (thickstroke,0);
110
111 llserif(14,16,17,18,19)(1);
112 lrserif(15,20,21,22,23)(1);
113
114 fill
115 z14..z16..z17--z18--z22--z21..z20..z15--z11--z13--z12--z1--z0--z2--z8--z10--cycle;
116 unfill z4--z6--z5--z4--cycle;
117
118 penlabels(0,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,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80);
119 endchar;
120
121 beginchar("5",digwid#+2ss#,cap#,0); "The digit 5";
122 italcorr(ex#*slant);
123
124 z0 = (w-ss-bulbsh,h+o);
125 z1 = (ss+bulbsh,h+o);
126 z2 = z0 shifted (0,-thickstroke);
127 z3 = z1 shifted (0,-thickstroke);
128 z4 = (w/2,0);
129 z5 = z4 shifted (0,thickstroke);
130 z6 = z3 shifted (thinstroke,0);
131 z7 = (ss+0.6bulbsh,0.55h);
132 z19 = z7 shifted (thinstroke,0);
133 z8 = (w-ss,2h/3);
134 z9 = z7 shifted (thinstroke,thinstroke);
135 z10 = (w-ss-thickstroke,h/3);
136 z11 = (ss,h/3);
137 z16 = z10 shifted (thickstroke,0);
138 z17 = (w/2,2h/3);
139 z18 = z17 shifted (0,-thinstroke);
140 z29 = z2 shifted (0,-thinl);
141 z20 = z29 shifted (-thinl/2,0);
142 z21 = z20 shifted (0,thinl);
143
144 ulftbulb(11,12,13,14,15);
145
146 fill
147 z6--z21--z20--z29--z2--z0--z1--z7--z19..{right}z18{right}..{down}z10{down}..{left}z5{left}..{up}z14{right}..{up}z13..z12..z11{down}..{right}z4{right}..z16{up}..{left}z17{left}..z9--z6--cycle;
148
149 penlabels(0,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,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80);
150 endchar;
151
152 beginchar("7",digwid#+2ss#,cap#,0); "The digit 7";
153 italcorr(ex#*slant);
154
155 z0 = (ss,h+o);
156 z1 = z0 shifted (0,-thickstroke);
157 z2 = (w-ss,h+o);
158 z3 = z2 shifted (0,-thickstroke);
159 z4 = (w/4,0);
160 z5 = z4 shifted (thickstroke,0);
161 z6 = z3 shifted (-1.8thinstroke,0);
162 z7 = (w/3,0.6h);
163 z8 = z7 shifted (1.2thinstroke,0);
164 z9 = z1 shifted (0,-0.7userh);
165 z10 = z9 shifted (0.5thinstroke,0);
166 z11 = z10 shifted (0,0.7userh);
167
168 fill z11--z10--z9--z0--z2--z3..z8..z5--z4..z7..z6--cycle;
169
170 penlabels(0,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,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80);
171 endchar;
172
173 beginchar("8",digwid#+2ss#,cap#,0); "The digit 8";
174 italcorr(ex#*slant);
175
176 z0 = (w/2,h+o);
177 z1 = (w/2,0-o);
178 z2 = (ss+bulbsh/2,3h/4);
179 z3 = (ss,h/4);
180 z4 = (w-ss-bulbsh/2,3h/4);
181 z5 = (w-ss,h/4);
182 z6 = z0 shifted (0,-thinstroke);
183 z7 = z1 shifted (0,thinstroke);
184 z8 = z2 shifted (0.8curvwid,0);
185 z9 = z3 shifted (curvwid,0);
186 z10 = z5 shifted (-curvwid,0);
187 z11 = z4 shifted (-0.8curvwid,0);
188 z12 = (w/2,h/2+thinstroke);
189 z13 = z12 shifted (0,-thinstroke);
190
191 pickup pencircle scaled 1;
192
193 fill z0..z4..z13--z12..z5..z1..z3..z12--z13..z2..cycle;
194 unfill z8..z6..z11..z12..cycle;
195 unfill z7..z10..z13..z9..cycle;
196
197 penlabels(0,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,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80);
198 endchar;
199
200 beginchar("0",digwid#+2ss#,cap#,0); "The digit 0";
201 italcorr(ex#*slant);
202
203 z0 = (w/2,h+o);
204 z1 = (w/2,-o);
205 z2 = (w-ss,h/2);
206 z3 = (ss,h/2);
207 z4 = z0 shifted (0,-thinstroke);
208 z5 = z1 shifted (0,thinstroke);
209 z6 = z2 shifted (-curvwid,0);
210 z7 = z3 shifted (curvwid,0);
211
212 path outzero; outzero = z0{right}..{down}z2{down}..
213 {left}z1{left}..{up}z3{up}..{right}cycle;
214 path inzero; inzero = z4..z6..z5..z7..cycle;
215 fill outzero; unfill inzero;
216
217 penlabels(0,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,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80);
218 endchar;
219
220 beginchar("6",digwid#+2ss#,cap#,0); "The digit 6";
221 italcorr(ex#*slant);
222
223 penpos0(thinl,90);
224 z0r = (2w/3,h+o);
225 penpos1(2thinl,180);
226 z1r = (ss+thinl,2h/3);
227 penpos2(thickl,180);
228 z2r = (ss,ex/2);
229 penpos3(thinl,-90);
230 z3r = (w/2,0-o);
231 penpos4(thickl,0);
232 z4r = (w-ss,ex/2);
233 penpos5(thinl,90);
234 z5r = (w/2,ex+o);
235 penpos6(thinl,0);
236 z6l = z0l;
237 penpos7(thinl,-90);
238 z7l = z6l;
239 penpos8(thinl,180);
240 z8l = z7l;
241
242 penstroke z5e..z2e..z3e..z4e..cycle;
243 penstroke z0e..z1e..z2e;
244
245 penlabels(0,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,42,43,44,45,46,47,48,49,50,51);
246 endchar;
247
248 beginchar("9",digwid#+2ss#,cap#,0); "The digit 9";
249 italcorr(ex#*slant);
250
251 penpos0(thinl,90);
252 z0l = (w/3,0-o);
253 penpos1(2thinl,180);
254 z1l = (w-ss-thinl,h/3);
255 penpos2(thickl,180);
256 z2l = (w-ss,h-ex/2);
257 penpos3(thinl,90);
258 z3l = (w/2,h-ex-o);
259 penpos4(thickl,0);
260 z4l = (ss,h-ex/2);
261 penpos5(thinl,-90);
262 z5l = (w/2,h+o);
263
264 penstroke z5e..z2e..z3e..z4e..cycle;
265 penstroke z0e..z1e..z2e;
266
267 penlabels(0,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,42,43,44,45,46,47,48,49,50,51);
268 endchar;