Debian Codegraph @

texmf-dist/fonts/source/public/bbold/bbnum.mf

raw
1 % Blackboard bold numerals, Alan Jeffrey, 12--18 Dec 1989.
2
3 % -------------------------------------------------------------------
4
5 bbnum ("0");
6 "The number 0";
7
8 % The curve.
9 var (path) zeropath;
10
11 zeropath
12 = oabove Top~Middle {left}
13 .. Horizon~Left {down}
14 .. obelow Bottom~Middle {right}
15 .. Horizon~Right {up}
16 .. cycle;
17
18 % The emphasis.
19 draw
20 fatcliptwice
21 (obelow rightof Bottom~Left -- oabove rightof Top~Left)
22 (zeropath);
23
24 % The curve.
25 draw zeropath;
26
27 endchar;
28
29 % -------------------------------------------------------------------
30
31 bbnum ("1");
32
33 fatsymmetric;
34
35 "The number 1";
36
37 % The top serif.
38 draw
39 rightof Top~Middle
40 -- (Top - CCurl)~Left;
41
42 % The vertical, clipped by the top serif.
43 draw
44 fatcliponce
45 (Bottom~Middle -- Top~Middle)
46 (rightof Top~Middle -- (Top - CCurl)~Left);
47
48 % The bottom serif.
49 draw
50 Bottom~Left
51 -- Bottom~Right
52
53 endchar;
54
55 % -------------------------------------------------------------------
56
57 bbnum ("2");
58 "The number 2";
59
60 % The outline.
61 var (path) twopath;
62
63 twopath
64 = (Top-CCurl)~Left
65 .. oabove Top~Middle {right}
66 .. (Top -+- threeBar)~Right {down}
67 .. Bottom~Left {down};
68
69 % The emphasis.
70 draw
71 fatcliptwice
72 (leftof Bottom~Right -- oabove leftof Top~Right)
73 (twopath);
74
75 % The curve.
76 draw twopath;
77
78 % The base line.
79 draw
80 Bottom~Left
81 -- Bottom~Right
82
83 endchar;
84
85 % -------------------------------------------------------------------
86
87 bbnum ("3");
88 "The number 3";
89
90 % The curve.
91 var (path) threepath;
92
93 threepath
94 = (Top - CCurl)~Left
95 .. oabove Top~Middle {right}
96 .. (Top -+- threeBar)~Right {down}
97 .. threeBar~Middle {left}
98 & threeBar~Middle {right}
99 .. (threeBar -+- Bottom)~Right {down}
100 .. obelow Bottom~Middle {left}
101 .. (Bottom + CCurl)~Left;
102
103 % The top emphasis.
104 draw
105 fatcliptwice
106 (leftof threeBar~Right -- oabove leftof Top~Right)
107 (threepath);
108
109 % The bottom emphasis.
110 draw
111 fatcliptwice
112 (obelow leftof Bottom~Right -- leftof threeBar~Right)
113 (threepath);
114
115 % The curve.
116 draw threepath
117
118 endchar;
119
120 % -------------------------------------------------------------------
121
122 bbnum ("4");
123 "The number 4";
124
125 % The right of the vertical is jut away from the right of the character.
126 var (numeric) verticalRight;
127
128 verticalRight + jut = Right;
129
130 % The bar.
131 draw
132 ABar~Left
133 -- ABar~Right;
134
135 % The vertical, fattened and clipped by the diagonal.
136 outline
137 fatcliponce
138 (leftof Bottom~verticalRight -- leftof Top~verticalRight)
139 (Top~verticalRight -- ABar~Left);
140
141 % The diagonal.
142 draw
143 Top~verticalRight
144 -- ABar~Left
145
146 endchar;
147
148 % -------------------------------------------------------------------
149
150 bbnum ("5");
151 "The number 5";
152
153 % The top horizontal.
154 draw
155 Top~Left
156 -- Top~Right;
157
158 % The vertical, fattened.
159 draw
160 fatten
161 rightof (Bottom + sixBowl)~Left
162 -- rightof Top~Left;
163
164 % The curve.
165 draw
166 (Bottom + sixBowl)~Left
167 --- (Bottom + sixBowl)~Middle
168 .. (Bottom + 1/2sixBowl)~Right {down}
169 .. obelow Bottom~Middle {left}
170 .. (Bottom + CCurl)~Left
171
172 endchar;
173
174 % -------------------------------------------------------------------
175
176 bbnum ("6");
177 "The number 6";
178
179 % The bowl.
180 var (path) sixpath;
181
182 sixpath
183 = (Bottom + 1/2sixBowl)~Right {up}
184 .. (Bottom + sixBowl)~Middle {left}
185 .. (Bottom + 1/2sixBowl)~Left {down}
186 .. obelow Bottom~Middle {right}
187 .. cycle;
188
189 % The tail.
190 draw
191 (Bottom + 1/2sixBowl)~Left
192 --- (Bottom + sixBowl)~Left
193 .. oabove Top~Middle {right}
194 .. (Top - CCurl)~Right;
195
196 % The emphasis.
197 draw
198 fatcliptwice
199 (obelow rightof Bottom~Left -- rightof (Bottom + sixBowl)~Left)
200 (sixpath);
201
202 % The bowl.
203 draw sixpath
204
205 endchar;
206
207 % -------------------------------------------------------------------
208
209 bbnum ("7");
210 "The number 7";
211
212 % The vertical.
213 draw
214 Top~Left
215 -- Top~Right;
216
217 % The diagonal.
218 draw
219 fatten
220 rightof Bottom~Left
221 -- leftof Top~Right
222
223 endchar;
224
225 % -------------------------------------------------------------------
226
227 bbnum ("8");
228 "The number 8";
229
230 % The bowls.
231 var (path) eighttop, eightbottom;
232
233 eighttop
234 = oabove Top~Middle {left}
235 .. (Top -+- threeBar)~Left {down}
236 .. threeBar~Middle {right}
237 .. (threeBar -+- Top)~Right {up}
238 .. cycle;
239
240 eightbottom
241 = threeBar~Middle {left}
242 .. (threeBar -+- Bottom)~Left {down}
243 .. obelow Bottom~Middle {right}
244 .. (Bottom -+- threeBar)~Right {up}
245 .. cycle;
246
247 % The top emphasis.
248 draw
249 fatcliptwice
250 (obelow rightof Bottom~Left -- oabove rightof Top~Left)
251 (eighttop);
252
253 % The bottom emphasis.
254 draw
255 fatcliptwice
256 (obelow rightof Bottom~Left -- oabove rightof Top~Left)
257 (eightbottom);
258
259 % The top bowl.
260 draw eighttop;
261
262 % The bottom bowl.
263 draw eightbottom
264
265 endchar;
266
267 % -------------------------------------------------------------------
268
269 bbnum ("9");
270 "The number 9";
271
272 % The bowl.
273 var (path) ninepath;
274
275 ninepath
276 = (Top - sixBowl)~Middle {left}
277 .. (Top - 1/2sixBowl)~Left {up}
278 .. oabove Top~Middle {right}
279 .. (Top - 1/2sixBowl)~Right {down}
280 .. cycle;
281
282 % The tail.
283 draw
284 (Top - 1/2sixBowl)~Right
285 --- (Top - sixBowl)~Right
286 .. obelow Bottom~Middle {left}
287 .. (Bottom + CCurl)~Left;
288
289 % The emphasis.
290 draw
291 fatcliptwice
292 (oabove rightof Top~Left -- rightof (Top - sixBowl)~Left)
293 (ninepath);
294
295 % The bowl.
296 draw ninepath
297
298 endchar;
299
300 % -------------------------------------------------------------------