Debian Codegraph @

texmf-dist/fonts/source/public/obnov/obnsc12.mf

raw
1 %written by Basil Solomykov, Russia
2 %(C) Copyright 2011 LPPL (LaTeX Project Public License)
3 %Font Ordinary New (Obyknovennaya novaya), Small Capitals
4
5 design_size := 12pt#;
6 o# := .54pt#;
7 u# := 22/35pt#;
8 bar# := 12/36pt#;
9 slab# := 12/36pt#;
10 cap_bar# := 12/36pt#;
11 vair# := 12/36pt#;
12 hair# := 12/36pt#;
13 jut# := 24/36pt#;
14 cap_jut# := 31.2/36pt#;
15 stem# := 36/36pt#;
16 curve# := 37.2/36pt#;
17 cap_stem# := 43.2/36pt#;
18 cap_curve# := 44.64/36pt#;
19 s# := 0.5pt#;
20 c# := .25pt#;
21
22 input obn_lcyw_code.mf;
23 font_identifier "OBNSC";
24 mode_setup;
25 clear_pen_memory;
26
27 font_size design_size*pt#;
28 asc_height# := 24/36*design_size*pt#;
29 cap_height# := 24/36*design_size*pt#;
30 body_height# := 27/36*design_size*pt#;
31 x_height# := 15.4/36*design_size*pt#;
32 desc_depth# := 8/36*design_size*pt#;
33 body_depth# := 9/36*design_size*pt#;
34 comma_depth# := 5/36*design_size*pt#;
35 x_depth# := 4/5comma_depth#;
36 bar_height# := .52x_height#;
37 cap_bar_height# := .52cap_height#;
38 cap_bar2_height# := .45cap_height#;
39 border_height# := comma_depth#;
40 cap_drop_round# := 3.8*slab#;
41 drop_round# := 6/8cap_drop_round#;
42 A_bracket# := 1.4pt#;
43 bracket# := pt#;
44
45 font_x_height x_height#;
46 font_normal_space 6u#;
47 font_normal_stretch 4u#;
48 font_normal_shrink 2u#;
49 font_quad 16u#;
50 font_extra_space 6u#;
51
52 k# := .8u#;
53 kk# := 1.5u#;
54 kkk# := 3u#;
55
56 serif_darkness := 1/30;
57 define_pixels(bracket,cap_o_width,sss_width,css_width);
58 define_pixels(c,s,cap_bar_height,cap_bar2_height);
59 define_pixels(border_height,A_bracket,cap_drop_round,x_depth,drop_round);
60 define_whole_blacker_pixels(stem,cap_stem,curve,cap_curve,bar,slab,cap_bar,vair,hair);
61 define_whole_pixels(asc_height,cap_height,x_height,u,desc_depth,comma_depth,bar_height,body_height,body_depth,u,o,cap_jut,jut);
62 %define_corrected_pixels();
63 lowres_fix(stem,curve) 1.2;
64 lowres_fix(cap_stem,cap_curve) 1.2;
65 if jut=cap_jut: jut:=jut-1; fi
66
67 def serif(suffix $)(expr breadth, theta, left_jut, right_jut)=
68 penpos$(breadth/abs sind theta, 0);
69 z$a-z$l=z$f-z$r=(bracket/abs sind theta)*dir theta;
70 y$c=y$d; y$b=y$e=y$; y$b-y$c=if theta < 0: -fi slab;
71 x$b=x$c=x$g if left_jut=0: -1/2slab fi +1/2slab; x$d=x$e=x$h if right_jut=0: +1/2slab fi-1/2slab;
72 x$g=x$l-left_jut; x$h=x$r+right_jut;
73 y$g=y$h; y$-y$g=y$g-y$c;
74 labels($a,$b,$c,$d,$e,$f,$g,$h) enddef;
75
76 def serif_edge suffix $ =
77 (serif_bracket($a,$l,$b)..z$g..z$c--z$d..z$h..reverse serif_bracket($f,$r,$e)) enddef;
78
79 def serif_bracket (suffix i,j,k) =
80 (z.i{z.j-z.i}...serif_darkness[z.j, .5[z.i, z.k]]{z.k-z.i}...z.k{z.k-z.j}) enddef;
81
82 def T_serif(suffix $)(expr slab, bord_height, direction)= %Direction: 0-left, 1-right;
83 penpos$(slab,if direction=1: - fi 90);
84 x$=x$a=x$g; y$g-y$=y$-y$a=1/2slab;
85 x$b=x$a + if direction=0: - fi .882bord_height; y$b=y$d=y$c+1/2slab;
86 x$c=x$b + if direction=0: - fi 1/2slab; y$c=y$a-bord_height;
87 x$d=x$e=x$b + if direction=0: - fi slab;
88 y$e=y$g-1/2slab; y$f=y$g; x$f=x$c;
89 labels($a,$b,$c,$d,$e,$f,$g) enddef;
90
91 def T_edge suffix $ =
92 (z$a..{down}z$b..z$c..z$d--z$e{up}..z$f--z$g--cycle) enddef;
93
94 def A_serif(suffix $)(expr breadth, theta, left_jut, right_jut)=
95 penpos$(breadth/abs sind theta, 0);
96 z$a-z$l=z$f-z$r=(A_bracket/abs sind theta)*dir theta;
97 y$c=y$d; y$b=y$e=y$; y$b-y$c=if theta < 0: -fi slab;
98 x$b=x$c=x$g+1/2slab; x$d=x$e=x$h-1/2slab;
99 x$g=x$l-left_jut; x$h=x$r+right_jut;
100 y$g=y$h; y$-y$g=y$g-y$c;
101 labels($a,$b,$c,$d,$e,$f,$g,$h) enddef;
102
103 def A_serif_edge suffix $ =
104 (A_serif_bracket($a,$l,$b)..z$g..z$c--z$d..z$h..reverse A_serif_bracket($f,$r,$e)) enddef;
105
106 def A_serif_bracket (suffix i,j,k) =
107 (z.i{z.j-z.i}...0.6[z.j, .5[z.i, z.k]]{z.k-z.i}...z.k{z.k-z.j}) enddef;
108
109 def ur_drop(suffix $)(expr drop_round, drop_length, drop_height, slab)=
110 penpos$(round slab, 90);
111 x$=x$a=x$f; y$f-y$=y$-y$a= 1/2slab;
112 x$e=x$a + drop_length; y$e=y$f- drop_height;
113 x$d=x$e - 1/2drop_round; y$d=y$e - 1/2drop_round;
114 x$c=x$e - drop_round; y$c=y$e;
115 y$b=round (y$d + drop_round); x$b=round (x$d - 1/5drop_round);
116 labels($a,$b,$c,$d,$e,$f) enddef;
117
118 def ur_drop_edge suffix $ =
119 (z$f{right}..tension.9..{down}z$e{down}..{left}z$d{left}..{up}z$c{up}..z$b...{left}z$a--cycle) enddef;
120
121 def ul_drop(suffix $)(expr drop_round, drop_length, drop_height, slab)=
122 penpos$(round slab, 90);
123 x$=x$a=x$f; y$f-y$=y$-y$a=1/2slab;
124 x$e=x$a - drop_length; y$e=y$f- drop_height;
125 x$d=x$e + 1/2drop_round; y$d=y$e - 1/2drop_round;
126 x$c=x$e + drop_round; y$c=y$e;
127 y$b=round (y$d + drop_round); x$b=round (x$d + 1/5drop_round);
128 labels($a,$b,$c,$d,$e,$f) enddef;
129
130 def ul_drop_edge suffix $ =
131 (z$f{left}..tension.9..{down}z$e{down}..{right}z$d{right}..{up}z$c{up}..z$b...{right}z$a--cycle) enddef;
132
133 def dl_drop(suffix $)(expr drop_round, drop_length, drop_height, slab)=
134 penpos$(round slab, -90);
135 x$=x$a=x$f; y$f-y$=y$-y$a=1/2slab;
136 x$e=x$a - drop_length; y$e=y$a + drop_height;
137 x$d=x$e + 1/2drop_round; y$d=y$e + 1/2drop_round;
138 x$c=x$e + drop_round; y$c=y$e;
139 y$b=round (y$d - drop_round); x$b=x$d + 1/90drop_round;
140 labels($a,$b,$c,$d,$e,$f) enddef;
141
142 def dl_drop_edge suffix $ =
143 (z$a{left}..tension.9..{up}z$e{up}..{right}z$d{right}..{down}z$c..{dir 250}z$b{dir -80}..{right}z$f--cycle) enddef;
144
145 def S_serif (suffix $)(expr serif_slab, serif_length, serif_height)=
146 %penpos$(serif_slab,90);
147 x$a=x$i=x$; y$i=y$+1/2serif_slab; y$a=y$-1/2serif_slab;
148 x$f=x$e=x$a+serif_length; y$f=y$g-1/2serif_slab; y$e=y$c=y$d+1/2serif_slab;
149 x$g=x$f-1/2serif_slab; y$g=y$i-1/2serif_slab;
150 y$h=y$f-1/4serif_slab; x$h=x$g-serif_slab;
151 x$c=x$e-serif_slab; x$d=x$e-1/2serif_slab; y$d=y$g-serif_height;
152 x$b=x$h-6/18serif_length; y$b=y$h-1/2slab;
153 labels ($a,$b,$c,$d,$e,$f,$g,$h,$i) enddef;
154
155 def S_serif_edge suffix $ =
156 (z$a{right}...z$b..{dir -80}z$c..z$d..z$e--z$f{up}..z$g{left}..z$h{dir 150}..{left}z$i--cycle) enddef;
157
158 beginchar(CYR_A,13u#+s#,cap_height#,0);
159 z1=(.5w,h+1/13h);
160 x4l=w-x5r=s+cap_jut; y4l=y5r=slab;
161 numeric theta[];
162 theta4=angle(z1-z4l);
163 theta5=angle(z1-z5r);
164 A_serif(4,1.3cap_bar,theta4,cap_jut,1.2cap_jut);
165 serif(5,cap_stem,theta5,cap_jut,cap_jut);
166 z0=z4r+whatever*dir theta4=z5l+whatever*dir theta5;
167 fill z1--A_serif_edge4--z0&z0--serif_edge5--z1&cycle;
168 penpos2(whatever,theta4);
169 penpos3(whatever,theta5);
170 y2r=y3r=20/52h;
171 y2l=y3l=y2r-cap_bar;
172 z2=whatever[z1,z4r];
173 z3=whatever[z1,z5l];
174 penstroke z2e--z3e;
175 y6=y7=h; z6=whatever[z1,z4l]; z7=whatever[z1,z5r];
176 unfill z1..z6--z7..z1&cycle;
177 unfill z1..z6--z7..z1&cycle;
178 penlabels(range 0 thru 7);
179 endchar;
180
181 beginchar(CYR_BE,11u#+s#,cap_height#,0);
182 x1=x2=cap_jut+1/2cap_stem+s;
183 x3=x10=x1d; y3=y4=y5=h-1/2slab;
184 y1c=h; y2c=0; x5e=w-s-1/2cap_stem;
185 y6=y7=cap_bar_height; x6=x2r; x7=x9=x6+5u-cap_stem;
186 y7-y8=y8-y9; x8=w-1/2cap_curve-s;
187 y9=y10=y2h; x4=w-s-1/2cap_stem-border_height;
188 serif(1,cap_stem,-90,cap_jut,cap_jut);
189 serif(2,cap_stem,90,cap_jut,cap_jut);
190 penpos3(slab,90);
191 penpos4(slab,90);
192 penstroke z3e--z4e;
193 T_serif(5,slab,border_height,1);
194 fill T_edge5;
195 fill serif_edge2--reverse serif_edge1--cycle;
196 penpos6(cap_bar,90);
197 penpos7(cap_bar,90);
198 penpos8(cap_curve,0);
199 penpos9(cap_bar,-90);
200 penpos10(cap_bar,-90);
201 penstroke z6e--z7e{right}..tension.8..z8e..tension.8..{left}z9e--z10e;
202 penlabels(range 1 thru 10);
203 endchar;
204
205 beginchar(CYR_VE,11u#+s#,cap_height#,0);
206 x1=x2=cap_jut+1/2cap_stem+s;
207 x3=x10=x1d; y3=y4=h-1/2slab; x4=x3+u;
208 y1c=h; y2c=0;
209 y6=y7=cap_bar_height; x6=x2r; x7=x9=x6+4.5u-cap_stem;
210 y7-y8=y8-y9; x8=w-1/2cap_curve-s;
211 y9=y10=y2h;
212 y4-y5=y5-y7; x5=x8-2/5cap_curve; y77=y7; x77=x4;
213 serif(1,cap_stem,-90,cap_jut,cap_jut);
214 serif(2,cap_stem,90,cap_jut,cap_jut);
215 penpos3(slab,90);
216 penpos4(slab,90);
217 penpos5(cap_curve,0);
218 penpos77(slab,-90);
219 fill serif_edge2--reverse serif_edge1--cycle;
220 penpos6(cap_bar,90);
221 penpos7(cap_bar,90);
222 penpos8(cap_curve,0);
223 penpos9(cap_bar,-90);
224 penpos10(cap_bar,-90);
225 penstroke z3e--z4e{right}..tension.8..z5e..tension.8..{left}z77e;
226 penstroke z6e--z7e{right}..tension.8..z8e..tension.8..{left}z9e--z10e;
227 css_width := x8 - x2r; save css_width;
228 penlabels(range 1 thru 10,77);
229 endchar;
230
231 beginchar(CYR_GHE,9u#+s#,cap_height#,0);
232 x1=x2=cap_jut+1/2cap_stem+s;
233 y4=y3=h-1/2slab; x4=x1d;
234 y1c=h; y2c=0; x3=x4+2u;
235 y5=y3; x5e=w-s;
236 serif(1,cap_stem,-90,cap_jut,cap_jut);
237 serif(2,cap_stem,90,cap_jut,cap_jut);
238 fill serif_edge2--reverse serif_edge1--cycle;
239 penpos3(cap_bar,-90);
240 penpos4(cap_bar,-90);
241 penstroke z3e--z4e;
242 T_serif(5,slab,border_height,1);
243 fill T_edge5;
244 penlabels(1,2,3,4,5);
245 endchar;
246
247 beginchar(CYR_DE,12u#,cap_height#,comma_depth#);
248 x10e=w-s; y10c=-d;
249 y4c=h; x4h=w-s-1/2slab;
250 x9=x4; y9c=0;
251 x3=x8=x9d; y8=y7=1/2cap_bar; y3=y2=h-y8;
252 x6e=s; y6=y10; x7=border_height+s;
253 y5=y9; x5g=s+.5u; y1=y4; x1=x5+1.5u;
254 x2=x1c;
255 A_serif(1,1.2cap_bar,-96,10/7cap_jut,cap_jut);
256 A_serif(5,1.2cap_bar,81,6/7cap_jut,cap_jut);
257 serif(4,cap_stem,-90,cap_jut,cap_jut);
258 serif(9,cap_stem,90,cap_jut,cap_jut);
259 penpos2(cap_bar,90);
260 penpos3(cap_bar,90);
261 penpos7(cap_bar,90);
262 penpos8(cap_bar,90);
263 penstroke z7e--z8e; penstroke z2e--z3e;
264 fill A_serif_edge5...reverse A_serif_edge1...cycle;
265 fill serif_edge9--reverse serif_edge4--cycle;
266 T_serif(6,slab,border_height,0);
267 T_serif(10,slab,border_height,1);
268 fill T_edge6;
269 fill T_edge10;
270 penlabels(range 1 thru 10);
271 endchar;
272
273 beginchar(CYR_IE,10u#+s#,cap_height#,0);
274 x1=x2=cap_jut+1/2cap_stem+s;
275 y4=y3=h-1/2slab; x4=x1d;
276 y1c=h; y2c=0;
277 y5=y3; x5e=w-s-c;
278 y6=y7=y8=cap_bar_height;x6=x1r; x7=x8=x6+u;
279 T_serif(5,slab,border_height,1);
280 serif(1,cap_stem,-90,cap_jut,cap_jut);
281 serif(2,cap_stem,90,cap_jut,cap_jut);
282 fill serif_edge2--reverse serif_edge1--cycle;
283 x3=x5a;
284 penpos3(cap_bar,-90);
285 penpos4(cap_bar,-90);
286 penstroke z3e--z4e;
287 fill T_edge5;
288 penpos6(cap_bar,90);
289 penpos7(cap_bar,90);
290 penstroke z6e--z7e;
291 T_serif(8,cap_bar,.8border_height,1);
292 fill T_edge8;
293 fill T_edge8 reflectedabout(z6,z7);
294 y9=y10=y11=y2h; x9=x2d; x11e=w-s;
295 T_serif(11,cap_bar,border_height,1); x10=x11;
296 penpos9(cap_bar,90);
297 penpos10(cap_bar,90);
298 penstroke z9e--z10e;
299 fill T_edge11 reflectedabout(z9,z10);
300 penlabels(range 1 thru 11);
301 endchar;
302
303 beginchar(CYR_YE,10u#+s#,cap_height#,0);
304 x1=x2=cap_jut+1/2cap_stem+s;
305 y4=y3=h-1/2slab; x4=x1d;
306 y1c=h; y2c=0;
307 y5=y3; x5e=w-s-c;
308 y6=y7=y8=cap_bar_height;x6=x1r; x7=x8=x6+u;
309 T_serif(5,slab,border_height,1);
310 serif(1,cap_stem,-90,cap_jut,cap_jut);
311 serif(2,cap_stem,90,cap_jut,cap_jut);
312 fill serif_edge2--reverse serif_edge1--cycle;
313 x3=x5a;
314 penpos3(cap_bar,-90);
315 penpos4(cap_bar,-90);
316 penstroke z3e--z4e;
317 fill T_edge5;
318 penpos6(cap_bar,90);
319 penpos7(cap_bar,90);
320 penstroke z6e--z7e;
321 T_serif(8,cap_bar,.8border_height,1);
322 fill T_edge8;
323 fill T_edge8 reflectedabout(z6,z7);
324 y9=y10=y11=y2h; x9=x2d; x11e=w-s;
325 T_serif(11,cap_bar,border_height,1); x10=x11;
326 penpos9(cap_bar,90);
327 penpos10(cap_bar,90);
328 penstroke z9e--z10e;
329 fill T_edge11 reflectedabout(z9,z10);
330 x12=x13=x2r; y12=h+1/4cap_stem; y13=y12+cap_stem;
331 x14=x15=x12+2cap_stem; y14=y12; y15=y13;
332 fill z12..z13..cycle; fill z14..z15..cycle;
333 penlabels(range 1 thru 15);
334 endchar;
335
336 beginchar(CYR_ZHE,round (16u#+s#),cap_height#,0);
337 if .5w = good.x .5w: change_width; fi
338 x8=x9=.5w; y8c=h; y9c=0;
339 serif(8,cap_stem,-90,cap_jut,cap_jut);
340 serif(9,cap_stem,90,cap_jut,cap_jut);
341 fill serif_edge9--reverse serif_edge8--cycle;
342 x7=x8l; y7=y4=y10=y11=cap_bar_height; x4=x7-1.5u;
343 x10=x8r; x11=x10+1.5u; x16=w-s; y16=0; x16-x15=x15-x11; y11-y15=y15-y16;
344 x6=s; y6=0; y4-y5=y5-y6; x4-x5=x5-x6;
345 penpos7(cap_bar,90);
346 penpos4(cap_bar,90);
347 penpos5(cap_curve,180);
348 penpos6(cap_bar,90);
349 penpos10(cap_bar,90);
350 penpos11(cap_bar,90);
351 penpos15(cap_curve,0);
352 penpos16(cap_bar,90);
353 penstroke z6e{right}..tension.8..{up}z5e{up}..tension.8..{right}z4e--z7e;
354 penstroke z16e{left}..tension.8..{up}z15e{up}..tension.8..{left}z11e--z10e;
355 x12=x15-1/2cap_stem; y13=h; x13-x12=x12-x11; y13-y12=y12-y11;
356 penpos12(hair,180);
357 penpos13(cap_bar,90);
358 penstroke z11e{right}..tension.8..{up}z12e{up}..tension.8..{right}z13e;
359 y14=h; x14a=x13;
360 ur_drop(14,cap_drop_round,.9cap_drop_round,cap_drop_round,cap_bar);
361 fill ur_drop_edge14;
362 x3=x5+1/2cap_stem; y2=h; x4-x3=x3-x2; y2-y3=y3-y4;
363 penpos3(hair,0);
364 penpos2(cap_bar,90);
365 penstroke z4e{left}..tension.8..{up}z3e{up}..tension.8..{left}z2e;
366 y1=h; x1a=x2; fill z6l..z6r..cycle;
367 ul_drop(1,cap_drop_round,.9cap_drop_round,cap_drop_round,cap_bar);
368 fill ul_drop_edge1; fill z16l..z16r..cycle;
369 penlabels(range 1 thru 16);
370 endchar;
371
372 beginchar(CYR_ZE,10u#+.5s#,cap_height#,0);
373 x7=18/39w; y7=0; y4=y5=y44=cap_bar_height;
374 x4=x6-3/2cap_stem; x5=x4-3u;
375 x6=w-s-1/2cap_curve; y4-y6=y6-y7;
376 x2=.5w; y2=h; x3=x6-1/3cap_curve; y2-y3=y3-y4;
377 x44=x2; z1=z2;
378 penpos2(cap_bar,90);
379 penpos3(cap_curve,0);
380 penpos44(cap_bar,-90);
381 penpos4(cap_bar,90);
382 penpos5(cap_bar,90);
383 penpos6(cap_curve,0);
384 penpos7(cap_bar,-90);
385 penstroke z2e{right}..tension.9..{down}z3e{down}..tension.9..{left}z44e;
386 penstroke z5e--z4e{right}..tension.8..{down}z6e{down}..tension.8..{left}z7e;
387 fill z5r..z5l..cycle;
388 S_serif(1,slab,.5w-3c,1.4border_height);
389 fill S_serif_edge1 reflectedabout(z2r,z2l);
390 x8e=s; y8=0;
391 dl_drop(8,cap_drop_round,18/39w-s,1.5cap_drop_round,slab);
392 fill dl_drop_edge8;
393 penlabels(range 1 thru 8,44);
394 endchar;
395
396 beginchar(CYR_I,12u#+s#,cap_height#,0);
397 x1=x2=cap_jut+1/2cap_stem+s;
398 x5=x1+1/3cap_stem; x6=x4-1/3cap_stem;
399 x3=x4=w-x1;
400 y1c=y3c=h; y2c=y4c=0;
401 serif(1,cap_stem,-90,cap_jut,cap_jut);
402 serif(2,cap_stem,90,cap_jut,cap_jut);
403 serif(3,cap_stem,-90,cap_jut,cap_jut);
404 serif(4,cap_stem,90,cap_jut,cap_jut);
405 fill serif_edge2--reverse serif_edge1--cycle;
406 fill serif_edge4--reverse serif_edge3--cycle;
407 penpos5(cap_bar,-20); penpos6(cap_bar,-20);
408 y5=.05h; y6=.95h; penstroke z5e--z6e;
409 penlabels(range 1 thru 6);
410 endchar;
411
412 beginchar(CYR_SHORT_I,12u#+s#,cap_height#,0);
413 x1=x2=cap_jut+1/2cap_stem+s;
414 x5=x1+1/3cap_stem; x6=x4-1/3cap_stem;
415 x3=x4=w-x1;
416 y1c=y3c=h; y2c=y4c=0;
417 serif(1,cap_stem,-90,cap_jut,cap_jut);
418 serif(2,cap_stem,90,cap_jut,cap_jut);
419 serif(3,cap_stem,-90,cap_jut,cap_jut);
420 serif(4,cap_stem,90,cap_jut,cap_jut);
421 fill serif_edge2--reverse serif_edge1--cycle;
422 fill serif_edge4--reverse serif_edge3--cycle;
423 penpos5(cap_bar,-20); penpos6(cap_bar,-20);
424 y5=.05h; y6=.95h; penstroke z5e--z6e;
425 x7=.5w; y7=h+cap_bar;
426 ur_drop(7,.8cap_drop_round,1/2(x3l-x1r),.8cap_drop_round,1.2cap_bar);
427 fill ur_drop_edge7 rotatedaround(z7,180);
428 fill ur_drop_edge7 reflectedabout(z7a,z7f) rotatedaround(z7,180);
429 penlabels(1,2,3,4,5,6,7);
430 endchar;
431
432 beginchar(CYR_KA,12u#+s#,cap_height#,0);
433 x8g=x9g=s; y8c=h; y9c=0;
434 serif(8,cap_stem,-90,cap_jut,cap_jut);
435 serif(9,cap_stem,90,cap_jut,cap_jut);
436 fill serif_edge9--reverse serif_edge8--cycle;
437 y10=y11=cap_bar_height;
438 x10=x8r; x11=x10+2.5u; x16=w-s; y16=0; x16-x15=x15-x11; y11-y15=y15-y16;
439 penpos10(cap_bar,90);
440 penpos11(cap_bar,90);
441 penpos15(cap_curve,0);
442 penpos16(cap_bar,90);
443 penstroke z16e{left}..tension.8..{up}z15e{up}..tension.8..{left}z11e--z10e;
444 x12=x15-1/2cap_stem; y13=h; x13-x12=x12-x11; y13-y12=y12-y11;
445 penpos12(hair,180);
446 penpos13(cap_bar,90);
447 penstroke z11e{right}..tension.8..{up}z12e{up}..tension.8..{right}z13e;
448 y14=h; x14a=x13;
449 ur_drop(14,cap_drop_round,.9cap_drop_round,cap_drop_round,cap_bar);
450 fill ur_drop_edge14; fill z16l..z16r..cycle;
451 penlabels(range 1 thru 16);
452 endchar;
453
454 beginchar(CYR_EL,13u#+1/2s#,cap_height#,0);
455 x7h=x8h=w-s;
456 y7c=h; y8c=0;
457 y1=0; x1e=s; z2=z1; x3=x2+.9cap_drop_round; y3=1.1cap_drop_round;
458 dl_drop(1,1.1cap_drop_round,1.1cap_drop_round,1.2cap_drop_round,slab);
459 fill dl_drop_edge1;
460 penpos2(cap_bar,-90);
461 penpos3(cap_bar,0);
462 penstroke z2e{right}..{up}z3e;
463 x4=x3r; y4=h-slab;
464 numeric theta[];
465 theta1=angle(z3-z4);
466 A_serif(4,cap_bar,theta1,1.3cap_jut,1.3cap_jut);
467 fill A_serif_edge4..z3r--z3l..cycle;
468 serif(7,cap_stem,-90,cap_jut,cap_jut);
469 serif(8,cap_stem,90,cap_jut,cap_jut);
470 fill serif_edge8--reverse serif_edge7--cycle;
471 x5=x4d; y5=y6=y7h; x6=x7c;
472 penpos5(cap_bar,90);
473 penpos6(cap_bar,90);
474 penstroke z5e--z6e;
475 penlabels(1,2,3,4,5,6,7,8);
476 endchar;
477
478 beginchar(CYR_EM,13u#+1.5s#,cap_height#,0);
479 x1g=s; y1c=0; y2=h-cap_bar;
480 A_serif(1,cap_bar,90,jut,jut);
481 x2=x1; serif(2,cap_bar,-90,jut,jut);
482 fill A_serif_edge1--reverse serif_edge2--cycle;
483 x3h=x4h=w-s; y3g=h-1/2cap_bar; y4c=0;
484 serif(3,cap_stem,-90,.51cap_bar, jut);
485 serif(4,cap_stem,90,jut,jut);
486 fill serif_edge4--reverse serif_edge3--cycle;
487 z5l=z3g; penpos5(bar,0); penpos6(bar,0);
488 z6=z5+whatever*dir -108; y6=0;
489 penstroke z5e--z6e;
490 z7l=z6l+whatever*dir 109; y7l=10/54h;
491 z8l=whatever[z6l,z7l]; y8l=h;
492 penpos7(cap_stem,0); penpos8(cap_stem,0);
493 penstroke z7e--z8e; fill z6l--z7l--z7r--cycle;
494 fill z6l..tension1.3..z6r..tension1.3..cycle;
495 penlabels(range 1 thru 8);
496 endchar;
497
498 beginchar(CYR_EN,12u#+s#,cap_height#,0);
499 x1=x2=cap_jut+1/2cap_stem+s;
500 x3=x4=w-x1; x5=x1r; x6=x3l;
501 y1c=y3c=h; y2c=y4c=0;
502 serif(1,cap_stem,-90,cap_jut,cap_jut);
503 serif(2,cap_stem,90,cap_jut,cap_jut);
504 serif(3,cap_stem,-90,cap_jut,cap_jut);
505 serif(4,cap_stem,90,cap_jut,cap_jut);
506 fill serif_edge2--reverse serif_edge1--cycle;
507 fill serif_edge4--reverse serif_edge3--cycle;
508 penpos5(cap_bar,90); penpos6(cap_bar,90);
509 y5=y6=cap_bar_height; penstroke z5e--z6e;
510 penlabels(1,2,3,4,5,6);
511 endchar;
512
513 beginchar(CYR_O,11u#+s#,cap_height#,0);
514 penpos1(vair,90);
515 penpos2(o,30);
516 penpos3(cap_curve,0);
517 penpos4(o,-30);
518 penpos5(vair,-90);
519 penpos6(o,-150);
520 penpos7(cap_curve,-180);
521 penpos8(o,-210);
522 x1=x5=.5w; y1=0; y5=h;
523 y3=y7=.5h; x3=1/2cap_curve+s; x7=w-1/2cap_curve-s;
524 y2=y8=0.1h-c; y4=y6=0.9h+c; x2=x4=x3+7/16(x5-x3); x6=x8=x5+9/16(x7-x5);
525 penstroke z1e..z2e..z3e..z4e..z5e..z6e..z7e..z8e..cycle;
526 cap_o_width := x7-x3; save cap_o_width;
527 penlabels(1,2,3,4,5,6,7,8);
528 endchar;
529
530 beginchar(CYR_PE,12u#+s#,cap_height#,0);
531 x1=x2=cap_jut+1/2cap_stem+s;
532 x3=x4=w-x1; x5=x1d; x6=x3c;
533 y1c=y3c=h; y2c=y4c=0;
534 serif(1,cap_stem,-90,cap_jut,cap_jut);
535 serif(2,cap_stem,90,cap_jut,cap_jut);
536 serif(3,cap_stem,-90,cap_jut,cap_jut);
537 serif(4,cap_stem,90,cap_jut,cap_jut);
538 fill serif_edge2--reverse serif_edge1--cycle;
539 fill serif_edge4--reverse serif_edge3--cycle;
540 penpos5(cap_bar,90); penpos6(cap_bar,90);
541 y5=y6=y1h; penstroke z5e--z6e;
542 penlabels(1,2,3,4,5,6);
543 endchar;
544
545 beginchar(CYR_ER,10u#+s#,cap_height#,0);
546 x1=x2=x3=cap_jut+1/2cap_stem+s;
547 y3=y4=cap_bar2_height; y7=y6=h-1/2slab; x7=x3+c;
548 y1c=h; y2c=0; x6=x4=x3+3u;
549 y5-y4=y6-y5; x5=w-1/2cap_curve-s;
550 serif(1,cap_stem,-90,cap_jut,cap_jut);
551 serif(2,cap_stem,90,cap_jut,cap_jut);
552 fill serif_edge2--reverse serif_edge1--cycle;
553 penpos3(cap_bar,-90);
554 penpos4(cap_bar,-90);
555 penpos5(cap_curve,0);
556 penpos7(cap_bar,90);
557 penpos6(cap_bar,90);
558 penstroke z3e--z4e{right}..tension.8..z5e..tension.8..{left}z6e--z7e;
559 penlabels(1,2,3,4,5,6,7);
560 endchar;
561
562 beginchar(CYR_ES,10u#+s#,cap_height#,0);
563 x1=x5=23/42w; y1=0; y5=h;
564 y3=.5h; x3=1/2cap_curve+s;
565 y2=0.1h-c; y4=0.9h+c; x2=x4=x3+7/16(x1-x3);
566 penpos1(cap_bar,90);
567 penpos2(o,30);
568 penpos3(cap_curve,0);
569 penpos4(o,-30);
570 penpos5(cap_bar,-90);
571 penstroke z1e{left}..z2e..z3e..z4e..{right}z5e;
572 z6=z5; y7=y1; x7e=w-s; y8=y1; x8=x1-.1w;
573 S_serif(6,slab,w-s-c-x1,1.5border_height);
574 S_serif(7,slab,w-s-x1,1.5border_height);
575 fill S_serif_edge6; fill S_serif_edge7 reflectedabout(z1,z8);
576 penlabels(1,2,3,4,5,6,7,8);
577 endchar;
578
579 beginchar(CYR_TE,round (11u#+s#),cap_height#,0);
580 x1=x2=.5w;
581 y1c=h; y2c=0;
582 y3=y4=h-1/2slab; x3e=s; x1-x3e=x4e-x1;
583 serif(1,cap_stem,-90,1.2cap_jut,1.2cap_jut);
584 serif(2,cap_stem,90,cap_jut,cap_jut);
585 fill serif_edge2--reverse serif_edge1--cycle;
586 T_serif(3,cap_bar,round border_height,0);
587 T_serif(4,cap_bar,round border_height,1);
588 fill T_edge3;
589 fill T_edge4;
590 if x1c>x3: y5=y6=y7=y8=h-1/2cap_bar; x5=x3a; x6=x1c; x7=x1e; x8=x4a;
591 penpos5(cap_bar,90); penpos6(cap_bar,90);
592 penpos7(cap_bar,90); penpos8(cap_bar,90);
593 penstroke z5e--z6e;
594 penstroke z7e--z8e; fi
595 penlabels(range 1 thru 8);
596 endchar;
597
598 beginchar(CYR_U,13u#+s#,cap_height#,0);
599 x1l=s+cap_jut; y1l=.98h-cap_bar;
600 x3r=w-s-.8cap_jut; y3r=.98h-cap_bar;
601 x4=33/60w; y4=6/53h;
602 numeric theta[];
603 theta1 = angle(z4-z1l);
604 theta2 = angle(z4-z3r);
605 serif(1,cap_stem,theta1,cap_jut,cap_jut);
606 A_serif(3,cap_bar,theta2,1.2cap_jut,.8cap_jut);
607 z2 = z1r+whatever*dir theta1=z3l+whatever*dir theta2;
608 fill z4--serif_edge1--z2&z2--A_serif_edge3--z4&cycle;
609 z5r=z4; y6=0; x6=x4-1.2cap_stem; z7l=z2;
610 penpos7(cap_bar,theta2+90);
611 penpos5(cap_bar,theta2+90);
612 penpos6(cap_bar,-90);
613 penstroke z7e--z5e{dir theta2}...{left}z6e;
614 z8=z6;
615 dl_drop(8,cap_drop_round,2u, 10/53h,cap_bar);
616 fill dl_drop_edge8;
617 penlabels(range 1 thru 8);
618 endchar;
619
620 beginchar(CYR_EF,round (14u#+s#),cap_height#,0);
621 if .5w = good.x .5w: change_width; fi
622 x1=x2=.5w; y2c=0; y1h=h;
623 y6=y7=y8=y9=1.3cap_jut; y4=y3=y11=y12=h-1.3cap_jut+1/2slab;
624 x3=x7=x2l; x8=x12=x2r; x4=x6=x3-u; x11=x9=x12+u;
625 x5=s+1/2cap_curve; x10-x1=x1-x5; y4-y5=y5-y6; y10=y5;
626 serif(1,cap_stem,-90,cap_jut,cap_jut);
627 serif(2,cap_stem,90,cap_jut,cap_jut);
628 fill serif_edge2--reverse serif_edge1--cycle;
629 penpos3(cap_bar,90);
630 penpos4(cap_bar,90);
631 penpos5(cap_curve,180);
632 penpos6(cap_bar,270);
633 penpos7(cap_bar,270);
634 penpos8(cap_bar,-90);
635 penpos9(cap_bar,-90);
636 penpos10(cap_curve,0);
637 penpos11(cap_bar,90);
638 penpos12(cap_bar,90);
639 penstroke z3e--z4e{left}..tension.8..{down}z5e{down}..tension.8..{right}z6e--z7e;
640 penstroke z8e--z9e{right}..tension.8..{up}z10e{up}..tension.8..{left}z11e--z12e;
641 penlabels (range 1 thru 12);
642 endchar;
643
644 beginchar(CYR_HA,12u#+s#,cap_height#,0);
645 y3=y4=slab; x3=w-s-cap_jut-1/2cap_stem; x4=s+cap_jut+1/2slab;
646 y1=y2=h-slab; x1=s+cap_jut+1/2cap_stem+c; x2=w-s-1.5c-cap_jut-1/2slab;
647 numeric theta[];
648 theta1 = angle(z1-z3);
649 theta2 = angle(z2-z4);
650 serif(1,cap_stem,theta1-180,cap_jut,cap_jut);
651 A_serif(2,1.2cap_bar,theta2-180,cap_jut,cap_jut);
652 serif(3,cap_stem,theta1,cap_jut,cap_jut);
653 A_serif(4,1.2cap_bar,theta2,cap_jut,cap_jut);
654 fill serif_edge3--reverse serif_edge1--cycle;
655 fill A_serif_edge4--reverse A_serif_edge2--cycle;
656 penlabels(1,2,3,4);
657 endchar;
658
659 beginchar(CYR_TSE,12.5u#+s#,cap_height#,comma_depth#);
660 x1=x2=x5=cap_jut+1/2cap_stem+s;
661 x3=x4=x6=w-x1-.5u; y5=y6=y2h;
662 y1c=y3c=h; y2c=y4c=0; x7e=w-s; y7=y2h;
663 serif(1,cap_stem,-90,cap_jut,cap_jut);
664 serif(2,cap_stem,90,cap_jut,cap_jut);
665 serif(3,cap_stem,-90,cap_jut,cap_jut);
666 serif(4,cap_stem,90,cap_jut,cap_jut);
667 fill serif_edge2--reverse serif_edge1--cycle;
668 fill serif_edge4--reverse serif_edge3--cycle;
669 penpos5(cap_bar,90); penpos6(cap_bar,90);
670 penstroke z5e--z6e;
671 T_serif(7,cap_bar,border_height,1);
672 fill T_edge7;
673 penlabels(1,2,3,4,5,6,7);
674 endchar;
675
676 beginchar(CYR_CHE,12u#+s#,cap_height#,0);
677 x1=cap_jut+1/2cap_stem+s;
678 x2=x3=w-x1;
679 y1c=y2c=h; y3c=0; y4=y4r=y4l=30/52h; x4=x1; x4r=x1r; x4l=x1l;
680 serif(1,cap_stem,-90,cap_jut,cap_jut);
681 serif(2,cap_stem,-90,cap_jut,cap_jut);
682 serif(3,cap_stem,90,cap_jut,cap_jut);
683 fill z4r--reverse serif_edge1--z4l--cycle;
684 fill serif_edge3--reverse serif_edge2--cycle;
685 x5=x2l; y5=cap_bar_height-1/2cap_bar; z6=z4;
686 x5-x7=x7-x4r; y7=y5-2cap_bar;
687 penpos6(cap_stem,180);
688 penpos5(1.2vair,270);
689 penpos7(1.2vair,270);
690 penstroke z6e{down}...z7e..z5e;
691 penlabels(1,2,3,4,5,6,7);
692 endchar;
693
694 beginchar(CYR_SHA,16u#+s#,cap_height#,0);
695 if .5w <> good.x .5w: change_width; fi
696 x1=x2=good.x (cap_jut+1/2cap_stem+s);
697 y1c=h; y2c=0; x3=x2e; y3=y4=y7=y8=y2h;
698 x4=x6c; x7=x6d; x8=x9c;
699 x5=x6=good.x .5w; y5=y1; y6=y2;
700 y9b=slab; x9=good.x w-x1;
701 x10=x9; y10b=h-slab;
702 serif(1,cap_stem,-90,cap_jut,cap_jut);
703 serif(2,cap_stem,90,cap_jut,cap_jut);
704 fill serif_edge2--reverse serif_edge1--cycle;
705 serif(5,cap_stem,-90,cap_jut,cap_jut);
706 serif(6,cap_stem,90,cap_jut,cap_jut);
707 fill serif_edge6--reverse serif_edge5--cycle;
708 serif(9,cap_stem,90,cap_jut,cap_jut);
709 serif(10,cap_stem,-90,cap_jut,cap_jut);
710 fill serif_edge9--reverse serif_edge10--cycle;
711 penpos3(slab,90);
712 penpos4(slab,90);
713 penpos7(slab,90);
714 penpos8(slab,90);
715 penstroke z3e--z4e;
716 penstroke z7e--z8e;
717 penlabels(range 1 thru 10);
718 endchar;
719
720 beginchar(CYR_SHCHA,16.5u#+s#,cap_height#,comma_depth#);
721 x1=x2=cap_jut+1/2cap_stem+s;
722 y1c=h; y2c=0; x3=x2e; y3=y4=y7=y8=y2h;
723 x4=x6c; x7=x6d; x8=x9c;
724 y9b=slab; x9h=w-s-.5u;
725 x10=x9; y10b=h-slab;
726 x11e=w-s; y11=y9h;
727 serif(9,cap_stem,90,cap_jut,cap_jut);
728 serif(10,cap_stem,-90,cap_jut,cap_jut);
729 fill serif_edge9--reverse serif_edge10--cycle;
730 serif(1,cap_stem,-90,cap_jut,cap_jut);
731 serif(2,cap_stem,90,cap_jut,cap_jut);
732 fill serif_edge2--reverse serif_edge1--cycle;
733 x5=x6=x1+(x10-x1)/2; y5=y1; y6=y2;
734 serif(5,cap_stem,-90,cap_jut,cap_jut);
735 serif(6,cap_stem,90,cap_jut,cap_jut);
736 fill serif_edge6--reverse serif_edge5--cycle;
737 penpos3(slab,90);
738 penpos4(slab,90);
739 penpos7(slab,90);
740 penpos8(slab,90);
741 penstroke z3e--z4e;
742 penstroke z7e--z8e;
743 T_serif(11,slab,border_height,1);
744 fill T_edge11;
745 penlabels(range 1 thru 11);
746 endchar;
747
748 beginchar(CYR_HARD_SIGN,13.5u#+c#,cap_height#,0);
749 x2r=x5-css_width; x1=x2; x8e=s; y8g=h;
750 serif(1,cap_stem,-90,cap_jut,cap_jut);
751 serif(2,cap_stem,90,cap_jut,cap_jut);
752 x7=x1d; y1c=h; y2c=0;
753 y4-y5=y5-y6; x5=w-1/2cap_curve-s;
754 y3=y4=cap_bar_height; x3=x2r; x4=x6=round(x3+5u-cap_stem);
755 y6=y7=y2h;
756 fill serif_edge2--reverse serif_edge1--cycle;
757 T_serif(8,cap_bar,border_height,0);
758 fill T_edge8;
759 penpos3(cap_bar,90);
760 penpos4(cap_bar,90);
761 penpos5(cap_curve,0);
762 penpos6(cap_bar,-90);
763 penpos7(cap_bar,-90);
764 penstroke z3e--z4e{right}..tension.8..z5e..tension.8..{left}z6e--z7e;
765 penlabels(1,2,3,4,5,6,7,8);
766 endchar;
767
768 beginchar(CYR_YERU,16u#+c#,cap_height#,0);
769 x1=x2=cap_jut+1/2cap_stem+s;
770 x7=x1d;
771 y1c=h; y2c=0;
772 serif(1,cap_stem,-90,cap_jut,cap_jut);
773 serif(2,cap_stem,90,cap_jut,cap_jut);
774 y3=y4=cap_bar_height; x3=round x2r; x4=x6=round (x3+5u-cap_stem) - 1;
775 y4-y5=y5-y6; x5=x2r+css_width; y8b=slab; x8h=w-s;
776 y6=y7=y2h; x9=x8; y9b=h-slab;
777 fill serif_edge2--reverse serif_edge1--cycle;
778 serif(8,cap_stem,90,cap_jut,cap_jut);
779 serif(9,cap_stem,-90,cap_jut,cap_jut);
780 fill serif_edge8--reverse serif_edge9--cycle;
781 penpos3(cap_bar,90);
782 penpos4(cap_bar,90);
783 penpos5(cap_curve,0);
784 penpos6(cap_bar,-90);
785 penpos7(cap_bar,-90);
786 penstroke z3e--z4e{right}..tension.8..z5e..tension.8..{left}z6e--z7e;
787 penlabels(1,2,3,4,5,6,7);
788 endchar;
789
790 beginchar(CYR_SOFT_SIGN,11u#+s#,cap_height#,0);
791 x1=x2=cap_jut+1/2cap_stem+s;
792 x7=x1d;
793 y1c=h; y2c=0;
794 y3=y4=cap_bar_height; x3=x2r; x4=x6=x3+5u-cap_stem;
795 y4-y5=y5-y6; x5=w-1/2cap_curve-s;
796 y6=y7=y2h;
797 serif(1,cap_stem,-90,cap_jut,cap_jut);
798 serif(2,cap_stem,90,cap_jut,cap_jut);
799 fill serif_edge2--reverse serif_edge1--cycle;
800 penpos3(cap_bar,90);
801 penpos4(cap_bar,90);
802 penpos5(cap_curve,0);
803 penpos6(cap_bar,-90);
804 penpos7(cap_bar,-90);
805 penstroke z3e--z4e{right}..tension.8..z5e..tension.8..{left}z6e--z7e;
806 penlabels(1,2,3,4,5,6,7);
807 endchar;
808
809 beginchar(CYR_E,10u#+.5s#,cap_height#,0);
810 x1=16/39w; x5=.5w; y1=0; y5=h;
811 y7=.5h; x7=w-1/2cap_curve-s;
812 x9e=s; y9=0;
813 dl_drop(9,cap_drop_round,16/39w-s,1.7cap_drop_round,slab);
814 y8=0.1h-c; y6=0.9h+c; x8=x9+9/16(x7-x9); x6=x5+9/16(x7-x5);
815 penpos5(cap_bar,-90);
816 penpos6(o,-150);
817 penpos7(cap_curve,-180);
818 penpos8(o,-210);
819 penpos1(cap_bar,-270);
820 penstroke z5e{right}..z6e..{down}z7e{down}..z8e..{left}z1e;
821 y2=y5; x2=x5-c;
822 S_serif(2,slab,x1+c,1.5border_height);
823 x3=x7-1/2cap_stem; y3=y4=cap_bar_height; x4=x2b-x1;
824 penpos3(cap_bar,90); penpos4(cap_bar,90);
825 penstroke z3e--z4e; fill z4r..z4l..cycle;
826 fill S_serif_edge2 reflectedabout(z5r,z5l);
827 fill dl_drop_edge9;
828 penlabels(1,2,3,4,5,6,7,8);
829 endchar;
830
831 beginchar(CYR_YU,16u#+s#,cap_height#,0);
832 x1=x2=cap_jut+1/2cap_stem+s;
833 y1c=h; y2c=0;
834 serif(1,cap_stem,-90,cap_jut,cap_jut);
835 serif(2,cap_stem,90,cap_jut,cap_jut);
836 fill serif_edge2--reverse serif_edge1--cycle;
837 penpos9(vair,90);
838 penpos10(o,30);
839 penpos3(cap_curve,0);
840 penpos4(o,-30);
841 penpos5(vair,-90);
842 penpos6(o,-150);
843 penpos7(cap_curve,-180);
844 penpos8(o,-210);
845 y3=y7=.5h; x7=w-1/2cap_curve-s; x3=x7-cap_o_width; y9=0; y5=h; x7-x5=x5-x3; x9=x5;
846 y10=y8=0.1h-c; y4=y6=0.9h+c; x10=x4=x3+7/16(x5-x3); x6=x8=x5+9/16(x7-x5);
847 penstroke z9e..z10e..z3e..z4e..z5e..z6e..z7e..z8e..cycle;
848 x11=x1r; x12=x3-1/3cap_stem; y11=y12=cap_bar_height;
849 penpos11(cap_bar,90); penpos12(cap_bar,90);
850 penstroke z11e--z12e;
851 penlabels(range 1 thru 12);
852 endchar;
853
854 beginchar(CYR_YA,11u#+s#,cap_height#,0);
855 x1=x2=w-cap_jut-1/2cap_stem-s;
856 y6=y10=y7=cap_bar_height; y3=y4=h-1/2slab; x7=x2l;
857 y1c=h; y2c=0; x6=x4=x7-2.5u; x3=x1c;
858 y4-y5=y5-y6; x5=x8-1.5c; x9=s; y9=0; y6-y8=y8-y9; x7-x10=3(x10-x6); x10-x8=x8-x9;
859 serif(1,cap_stem,-90,cap_jut,cap_jut);
860 serif(2,cap_stem,90,cap_jut,cap_jut);
861 fill serif_edge2--reverse serif_edge1--cycle;
862 penpos3(cap_bar,90);
863 penpos4(cap_bar,90);
864 penpos5(cap_curve,180);
865 penpos7(cap_bar,270);
866 penpos6(cap_bar,270);
867 penpos8(cap_curve,0);
868 penpos9(cap_bar,-90);
869 penpos10(cap_bar,-90); fill z9l..z9r..cycle;
870 penstroke z3e--z4e{left}..tension.9..z5e..tension.9..{right}z6e--z7e;
871 penstroke z9e{right}..tension1..{up}z8e{up}..tension1..{right}z10e;
872 penlabels(range 1 thru 10);
873 endchar;
874
875 beginchar(CYR_a,.8(13u#+s#),.8cap_height#,0);
876 z1=(.5w,h+1/13h);
877 x4l=w-x5r=s+.8cap_jut; y4l=y5r=slab;
878 numeric theta[];
879 theta4=angle(z1-z4l);
880 theta5=angle(z1-z5r);
881 A_serif(4,.8*1.3cap_bar,theta4,.8cap_jut,.8*1.2cap_jut);
882 serif(5,.8cap_stem,theta5,.8cap_jut,.8cap_jut);
883 z0=z4r+whatever*dir theta4=z5l+whatever*dir theta5;
884 fill z1--A_serif_edge4--z0&z0--serif_edge5--z1&cycle;
885 penpos2(whatever,theta4);
886 penpos3(whatever,theta5);
887 y2r=y3r=20/52h;
888 y2l=y3l=y2r-cap_bar;
889 z2=whatever[z1,z4r];
890 z3=whatever[z1,z5l];
891 penstroke z2e--z3e;
892 y6=y7=h; z6=whatever[z1,z4l]; z7=whatever[z1,z5r];
893 unfill z1..z6--z7..z1&cycle;
894 unfill z1..z6--z7..z1&cycle;
895 penlabels(range 0 thru 7);
896 endchar;
897
898 beginchar(CYR_be,.8(11u#+s#),.8cap_height#,0);
899 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
900 x3=x10=x1d; y3=y4=y5=h-1/2slab;
901 y1c=h; y2c=0; x5e=w-s-.8*1/2cap_stem;
902 y6=y7=.8cap_bar_height; x6=x2r; x7=x9=x6+3.6u-.8cap_stem;
903 y7-y8=y8-y9; x8=w-.8*1/2cap_curve-s;
904 y9=y10=y2h; x4=w-s-.8*1/2cap_stem-.8border_height;
905 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
906 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
907 penpos3(slab,90);
908 penpos4(slab,90);
909 penstroke z3e--z4e;
910 T_serif(5,slab,.8border_height,1);
911 fill T_edge5;
912 fill serif_edge2--reverse serif_edge1--cycle;
913 penpos6(cap_bar,90);
914 penpos7(cap_bar,90);
915 penpos8(.8cap_curve,0);
916 penpos9(cap_bar,-90);
917 penpos10(cap_bar,-90);
918 penstroke z6e--z7e{right}..tension.8..z8e..tension.8..{left}z9e--z10e;
919 penlabels(range 1 thru 10);
920 endchar;
921
922 beginchar(CYR_ve,.8(11u#+s#),.8cap_height#,0);
923 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
924 x3=x10=x1d; y3=y4=h-1/2slab; x4=x3+u;
925 y1c=h; y2c=0;
926 y6=y7=.8cap_bar_height; x6=x2r; x7=x9=x6+.8*4.5u-.8cap_stem;
927 y7-y8=y8-y9; x8=w-.8*1/2cap_curve-s; y9=y10=y2h;
928 y4-y5=y5-y7; x5=x8-.8*2/5cap_curve; y77=y7; x77=x4;
929 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
930 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
931 penpos3(slab,90);
932 penpos4(slab,90);
933 penpos5(.8cap_curve,0);
934 penpos77(slab,-90);
935 fill serif_edge2--reverse serif_edge1--cycle;
936 penpos6(cap_bar,90);
937 penpos7(cap_bar,90);
938 penpos8(.8cap_curve,0);
939 penpos9(cap_bar,-90);
940 penpos10(cap_bar,-90);
941 penstroke z3e--z4e{right}..tension.9..z5e..tension.9..{left}z77e;
942 penstroke z6e--z7e{right}..tension.8..z8e..tension.8..{left}z9e--z10e;
943 sss_width := x8 - x2r; save sss_width;
944 penlabels(range 1 thru 10,77);
945 endchar;
946
947 beginchar(CYR_ghe,.8(9u#+s#),.8cap_height#,0);
948 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
949 y4=y3=h-1/2slab; x4=x1d;
950 y1c=h; y2c=0; x3=x4+2u;
951 y5=y3; x5e=w-s;
952 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
953 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
954 fill serif_edge2--reverse serif_edge1--cycle;
955 penpos3(cap_bar,-90);
956 penpos4(cap_bar,-90);
957 penstroke z3e--z4e;
958 T_serif(5,slab,.8border_height,1);
959 fill T_edge5;
960 penlabels(1,2,3,4,5);
961 endchar;
962
963 beginchar(CYR_de,.8*13u#,.8cap_height#,.8comma_depth#);
964 x10e=w-s; y10c=-d; y4c=h; x4h=w-s-1/2slab; x9=x4; y9c=0;
965 x3=x8=x9d; y8=y7=1/2cap_bar; y3=y2=h-y8;
966 x6e=s; y6=y10; x7=.8border_height+s;
967 y5=y9; x5g=s+.5u; y1=y4; x1=x5+u; x2=x1c;
968 A_serif(1,cap_bar,-96,.8*10/7cap_jut,.8cap_jut);
969 A_serif(5,cap_bar,81,.8*6/7cap_jut,.8cap_jut);
970 serif(4,.8cap_stem,-90,.8cap_jut,.8cap_jut);
971 serif(9,.8cap_stem,90,.8cap_jut,.8cap_jut);
972 penpos2(cap_bar,90);
973 penpos3(cap_bar,90);
974 penpos7(cap_bar,90);
975 penpos8(cap_bar,90);
976 penstroke z7e--z8e; penstroke z2e--z3e;
977 fill A_serif_edge5...reverse A_serif_edge1...cycle;
978 fill serif_edge9--reverse serif_edge4--cycle;
979 T_serif(6,slab,.8border_height,0);
980 T_serif(10,slab,.8border_height,1);
981 fill T_edge6;
982 fill T_edge10;
983 penlabels(range 1 thru 10);
984 endchar;
985
986 beginchar(CYR_ie,.8(10u#+s#),.8cap_height#,0);
987 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
988 y4=y3=h-1/2slab; x4=x1d;
989 y1c=h; y2c=0;
990 y5=y3; x5e=w-s-.7c;
991 y6=y7=y8=.8cap_bar_height;x6=x1r; x7=x8=x6+.8u;
992 T_serif(5,slab,.8border_height,1);
993 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
994 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
995 fill serif_edge2--reverse serif_edge1--cycle;
996 x3=x5a; penpos3(cap_bar,-90);
997 penpos4(cap_bar,-90);
998 penstroke z3e--z4e;
999 fill T_edge5;
1000 penpos6(cap_bar,90);
1001 penpos7(cap_bar,90);
1002 penstroke z6e--z7e;
1003 T_serif(8,cap_bar,.8*.8border_height,1);
1004 fill T_edge8;
1005 fill T_edge8 reflectedabout(z6,z7);
1006 y9=y10=y11=y2h; x9=x2d; x11e=w-s;
1007 T_serif(11,cap_bar,.8border_height,1); x10=x11;
1008 penpos9(cap_bar,90);
1009 penpos10(cap_bar,90);
1010 penstroke z9e--z10e;
1011 fill T_edge11 reflectedabout(z9,z10);
1012 penlabels(range 1 thru 11);
1013 endchar;
1014
1015 beginchar(CYR_ye,.8(10u#+s#),.8cap_height#,0);
1016 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
1017 y4=y3=h-1/2slab; x4=x1d;
1018 y1c=h; y2c=0;
1019 y5=y3; x5e=w-s-.7c;
1020 y6=y7=y8=.8cap_bar_height;x6=x1r; x7=x8=x6+.8u;
1021 T_serif(5,slab,.8border_height,1);
1022 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1023 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1024 fill serif_edge2--reverse serif_edge1--cycle;
1025 x3=x5a; penpos3(cap_bar,-90);
1026 penpos4(cap_bar,-90);
1027 penstroke z3e--z4e;
1028 fill T_edge5;
1029 penpos6(cap_bar,90);
1030 penpos7(cap_bar,90);
1031 penstroke z6e--z7e;
1032 T_serif(8,cap_bar,.8*.8border_height,1);
1033 fill T_edge8;
1034 fill T_edge8 reflectedabout(z6,z7);
1035 y9=y10=y11=y2h; x9=x2d; x11e=w-s;
1036 T_serif(11,cap_bar,.8border_height,1); x10=x11;
1037 penpos9(cap_bar,90);
1038 penpos10(cap_bar,90);
1039 penstroke z9e--z10e;
1040 fill T_edge11 reflectedabout(z9,z10);
1041 x12=x13=x2r; y12=h+.8*(1/4cap_stem); y13=y12+.8cap_stem;
1042 x14=x15=x12+.8*2cap_stem; y14=y12; y15=y13;
1043 fill z12..z13..cycle; fill z14..z15..cycle;
1044 penlabels(range 1 thru 15);
1045 endchar;
1046
1047 beginchar(CYR_zhe,.8(16u#+s#),.8cap_height#,0);
1048 if .5w = good.x .5w: change_width; fi
1049 x8=x9=.5w; y8c=h; y9c=0;
1050 serif(8,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1051 serif(9,.8cap_stem,90,.8cap_jut,.8cap_jut);
1052 fill serif_edge9--reverse serif_edge8--cycle;
1053 x7=x8l; y7=y4=y10=y11=.8cap_bar_height; x4=x7-.8*1.5u;
1054 x10=x8r; x11=x10+.8*1.5u; x16=w-s; y16=0; x16-x15=x15-x11; y11-y15=y15-y16;
1055 x6=s; y6=0; y4-y5=y5-y6; x4-x5=x5-x6;
1056 penpos7(cap_bar,90);
1057 penpos4(cap_bar,90);
1058 penpos5(.8cap_curve,180);
1059 penpos6(cap_bar,90);
1060 penpos10(cap_bar,90);
1061 penpos11(cap_bar,90);
1062 penpos15(.8cap_curve,0);
1063 penpos16(cap_bar,90);
1064 penstroke z6e{right}..tension.8..{up}z5e{up}..tension.8..{right}z4e--z7e;
1065 penstroke z16e{left}..tension.8..{up}z15e{up}..tension.8..{left}z11e--z10e;
1066 x12=x15-.8*1/2cap_stem; y13=h; x13-x12=x12-x11; y13-y12=y12-y11;
1067 penpos12(hair,180);
1068 penpos13(cap_bar,90);
1069 penstroke z11e{right}..tension.8..{up}z12e{up}..tension.8..{right}z13e;
1070 y14=h; x14a=x13;
1071 ur_drop(14,.8cap_drop_round,.8*.9cap_drop_round,.8cap_drop_round,cap_bar);
1072 fill ur_drop_edge14;
1073 x3=x5+.8*1/2cap_stem; y2=h; x4-x3=x3-x2; y2-y3=y3-y4;
1074 penpos3(hair,0);
1075 penpos2(cap_bar,90);
1076 penstroke z4e{left}..tension.8..{up}z3e{up}..tension.8..{left}z2e;
1077 y1=h; x1a=x2; fill z6l..z6r..cycle;
1078 ul_drop(1,.8cap_drop_round,.8*.9cap_drop_round,.8cap_drop_round,cap_bar);
1079 fill ul_drop_edge1; fill z16l..z16r..cycle;
1080 penlabels(range 1 thru 16);
1081 endchar;
1082
1083 beginchar(CYR_ze,.8(10u#+.5s#),.8cap_height#,0);
1084 x7=18/39w; y7=0; y4=y5=y44=.8cap_bar_height;
1085 x4=x6-.8*3/2cap_stem; x5=x4-.8*3u;
1086 x6=w-s-.8*1/2cap_curve; y4-y6=y6-y7;
1087 x2=.5w; y2=h; x3=x6-.8*1/3cap_curve; y2-y3=y3-y4;
1088 x44=x2; z1=z2;
1089 penpos2(cap_bar,90);
1090 penpos3(.8cap_curve,0);
1091 penpos44(cap_bar,-90);
1092 penpos4(cap_bar,90);
1093 penpos5(cap_bar,90);
1094 penpos6(.8cap_curve,0);
1095 penpos7(cap_bar,-90);
1096 penstroke z2e{right}..tension.9..{down}z3e{down}..tension.9..{left}z44e;
1097 penstroke z5e--z4e{right}..tension.8..{down}z6e{down}..tension.8..{left}z7e;
1098 fill z5r..z5l..cycle;
1099 S_serif(1,slab,.5w-3c,.8*1.4border_height);
1100 fill S_serif_edge1 reflectedabout(z2r,z2l);
1101 x8e=s; y8=0;
1102 dl_drop(8,.8cap_drop_round,18/39w-s,.8*1.5cap_drop_round,slab);
1103 fill dl_drop_edge8;
1104 penlabels(range 1 thru 8,44);
1105 endchar;
1106
1107 beginchar(CYR_i,.8(12u#+s#),.8cap_height#,0);
1108 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
1109 x5=x1+.8*1/3cap_stem; x6=x4-.8*1/3cap_stem;
1110 x3=x4=w-x1;
1111 y1c=y3c=h; y2c=y4c=0;
1112 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1113 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1114 serif(3,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1115 serif(4,.8cap_stem,90,.8cap_jut,.8cap_jut);
1116 fill serif_edge2--reverse serif_edge1--cycle;
1117 fill serif_edge4--reverse serif_edge3--cycle;
1118 penpos5(cap_bar,-20); penpos6(cap_bar,-20);
1119 y5=.05h; y6=.95h; penstroke z5e--z6e;
1120 penlabels(range 1 thru 6);
1121 endchar;
1122
1123 beginchar(CYR_short_i,.8(12u#+s#),.8cap_height#,0);
1124 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
1125 x5=x1+.8*1/3cap_stem; x6=x4-.8*1/3cap_stem;
1126 x3=x4=w-x1;
1127 y1c=y3c=h; y2c=y4c=0;
1128 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1129 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1130 serif(3,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1131 serif(4,.8cap_stem,90,.8cap_jut,.8cap_jut);
1132 fill serif_edge2--reverse serif_edge1--cycle;
1133 fill serif_edge4--reverse serif_edge3--cycle;
1134 penpos5(cap_bar,-20); penpos6(cap_bar,-20);
1135 y5=.05h; y6=.95h; penstroke z5e--z6e;
1136 x7=.5w; y7=h+cap_bar;
1137 ur_drop(7,.8*.8cap_drop_round,1/2(x3l-x1r),.8*.8cap_drop_round,.9cap_bar);
1138 fill ur_drop_edge7 rotatedaround(z7,180);
1139 fill ur_drop_edge7 reflectedabout(z7a,z7f) rotatedaround(z7,180);
1140 penlabels(1,2,3,4,5,6,7);
1141 endchar;
1142
1143 beginchar(CYR_ka,.8(12u#+s#),.8cap_height#,0);
1144 x8g=x9g=s; y8c=h; y9c=0;
1145 serif(8,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1146 serif(9,.8cap_stem,90,.8cap_jut,.8cap_jut);
1147 fill serif_edge9--reverse serif_edge8--cycle;
1148 y10=y11=.8cap_bar_height;
1149 x10=x8r; x11=x10+.8*2.5u; x16=w-s; y16=0; x16-x15=x15-x11; y11-y15=y15-y16;
1150 penpos10(cap_bar,90);
1151 penpos11(cap_bar,90);
1152 penpos15(.8cap_curve,0);
1153 penpos16(cap_bar,90);
1154 penstroke z16e{left}..tension.8..{up}z15e{up}..tension.8..{left}z11e--z10e;
1155 x12=x15-.8*1/2cap_stem; y13=h; x13-x12=x12-x11; y13-y12=y12-y11;
1156 penpos12(hair,180);
1157 penpos13(cap_bar,90);
1158 penstroke z11e{right}..tension.8..{up}z12e{up}..tension.8..{right}z13e;
1159 y14=h; x14a=x13;
1160 ur_drop(14,.8cap_drop_round,.8*.9cap_drop_round,.8*cap_drop_round,cap_bar);
1161 fill ur_drop_edge14; fill z16l..z16r..cycle;
1162 penlabels(range 1 thru 16);
1163 endchar;
1164
1165 beginchar(CYR_el,.8*(13u#+1/2s#),.8cap_height#,0);
1166 x7h=x8h=w-s; y7c=h; y8c=0;
1167 y1=0; x1e=s; z2=z1; x3=x2+.8cap_drop_round; y3=.8*1.1cap_drop_round;
1168 dl_drop(1,.8*cap_drop_round,.8*cap_drop_round,.8*1.1cap_drop_round,slab);
1169 fill dl_drop_edge1;
1170 penpos2(cap_bar,-90);
1171 penpos3(cap_bar,0);
1172 penstroke z2e{right}..{up}z3e;
1173 x4=x3r; y4=h-slab;
1174 numeric theta[];
1175 theta1=angle(z3-z4);
1176 A_serif(4,cap_bar,theta1,.8*1.3cap_jut,.8*1.3cap_jut);
1177 fill A_serif_edge4..z3r--z3l..cycle;
1178 serif(7,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1179 serif(8,.8cap_stem,90,.8cap_jut,.8cap_jut);
1180 fill serif_edge8--reverse serif_edge7--cycle;
1181 x5=x4d; y5=y6=y7h; x6=x7c;
1182 penpos5(cap_bar,90);
1183 penpos6(cap_bar,90);
1184 penstroke z5e--z6e;
1185 penlabels(1,2,3,4,5,6,7,8);
1186 endchar;
1187
1188 beginchar(CYR_em,.8(13u#+s#),.8cap_height#,0);
1189 x1g=s; y1c=0; y2=h-cap_bar;
1190 A_serif(1,cap_bar,90,.8jut,.8jut);
1191 x2=x1; serif(2,cap_bar,-90,jut,jut);
1192 fill A_serif_edge1--reverse serif_edge2--cycle;
1193 x3h=x4h=w-s; y3g=h-1/2cap_bar; y4c=0;
1194 serif(3,.8cap_stem,-90,.51cap_bar,.8jut);
1195 serif(4,.8cap_stem,90,.8jut,.8jut);
1196 fill serif_edge4--reverse serif_edge3--cycle;
1197 z5l=z3g; penpos5(bar,0); penpos6(bar,0);
1198 z6=z5+whatever*dir -107; y6=0;
1199 penstroke z5e--z6e;
1200 z7l=z6l+whatever*dir 106; y7l=11/54h;
1201 z8l=whatever[z6l,z7l]; y8l=h;
1202 penpos7(.8cap_stem,0); penpos8(.8cap_stem,0);
1203 penstroke z7e--z8e; fill z6l--z7l--z7r--cycle;
1204 fill z6l..tension1.3..z6r..tension1.3..cycle;
1205 penlabels(range 1 thru 8);
1206 endchar;
1207
1208 beginchar(CYR_en,.8(12u#+s#),.8cap_height#,0);
1209 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
1210 x3=x4=w-x1; x5=x1r; x6=x3l;
1211 y1c=y3c=h; y2c=y4c=0;
1212 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1213 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1214 serif(3,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1215 serif(4,.8cap_stem,90,.8cap_jut,.8cap_jut);
1216 fill serif_edge2--reverse serif_edge1--cycle;
1217 fill serif_edge4--reverse serif_edge3--cycle;
1218 penpos5(cap_bar,90); penpos6(cap_bar,90);
1219 y5=y6=.8cap_bar_height; penstroke z5e--z6e;
1220 penlabels(1,2,3,4,5,6);
1221 endchar;
1222
1223 beginchar(CYR_o,.8(11u#+1.2s#),.8cap_height#,0);
1224 penpos1(vair,90);
1225 penpos2(.8o,30);
1226 penpos3(.8cap_curve,0);
1227 penpos4(.8o,-30);
1228 penpos5(vair,-90);
1229 penpos6(.8o,-150);
1230 penpos7(.8cap_curve,-180);
1231 penpos8(.8o,-210);
1232 x1=x5=.5w; y1=0; y5=h;
1233 y3=y7=.5h; x3=.8*1/2cap_curve+s; x7=w-.8*1/2cap_curve-s;
1234 y2=y8=0.1h-c; y4=y6=0.9h+c; x2=x4=x3+7.5/16(x5-x3); x6=x8=x5+8.5/16(x7-x5);
1235 penstroke z1e..z2e..z3e..z4e..z5e..z6e..z7e..z8e..cycle;
1236 penlabels(1,2,3,4,5,6,7,8);
1237 endchar;
1238
1239 beginchar(CYR_pe,.8(12u#+s#),.8cap_height#,0);
1240 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
1241 x3=x4=w-x1; x5=x1d; x6=x3c;
1242 y1c=y3c=h; y2c=y4c=0;
1243 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1244 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1245 serif(3,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1246 serif(4,.8cap_stem,90,.8cap_jut,.8cap_jut);
1247 fill serif_edge2--reverse serif_edge1--cycle;
1248 fill serif_edge4--reverse serif_edge3--cycle;
1249 penpos5(cap_bar,90); penpos6(cap_bar,90);
1250 y5=y6=y1h; penstroke z5e--z6e;
1251 penlabels(1,2,3,4,5,6);
1252 endchar;
1253
1254 beginchar(CYR_er,.8(10u#+s#),.8cap_height#,0);
1255 x1=x2=x3=.8cap_jut+.8*1/2cap_stem+s;
1256 y3=y4=.8cap_bar2_height; y7=y6=h-1/2slab; x7=x3+c;
1257 y1c=h; y2c=0; x6=x4=x3+.8*3u;
1258 y5-y4=y6-y5; x5=w-.8*1/2cap_curve-s;
1259 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1260 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1261 fill serif_edge2--reverse serif_edge1--cycle;
1262 penpos3(cap_bar,-90);
1263 penpos4(cap_bar,-90);
1264 penpos5(.8cap_curve,0);
1265 penpos7(cap_bar,90);
1266 penpos6(cap_bar,90);
1267 penstroke z3e--z4e{right}..tension.8..z5e..tension.8..{left}z6e--z7e;
1268 penlabels(1,2,3,4,5,6,7);
1269 endchar;
1270
1271 beginchar(CYR_es,.8(10u#+s#),.8cap_height#,0);
1272 x1=x5=23/42w; y1=0; y5=h;
1273 y3=.5h; x3=.8*1/2cap_curve+s;
1274 y2=0.1h-c; y4=0.9h+c; x2=x4=x3+7.5/16(x1-x3);
1275 penpos1(cap_bar,90);
1276 penpos2(.8o,30);
1277 penpos3(.8cap_curve,0);
1278 penpos4(.8o,-30);
1279 penpos5(cap_bar,-90);
1280 penstroke z1e{left}..z2e..z3e..z4e..{right}z5e;
1281 z6=z5; y7=y1; x7e=w-s; y8=y1; x8=x1-.1w;
1282 S_serif(6,slab,w-s-.7c-x1,.8*1.5border_height);
1283 S_serif(7,slab,w-s-x1,.8*1.5border_height);
1284 fill S_serif_edge6; fill S_serif_edge7 reflectedabout(z1,z8);
1285 penlabels(1,2,3,4,5,6,7,8);
1286 endchar;
1287
1288 beginchar(CYR_te,round .8(11u#+s#),.8cap_height#,0);
1289 x1=x2=.5w;
1290 y1c=h; y2c=0;
1291 y3=y4=h-1/2slab; x3e=s; x1-x3e=x4e-x1;
1292 serif(1,.8cap_stem,-90,.8*1.2cap_jut,.8*1.2cap_jut);
1293 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1294 fill serif_edge2--reverse serif_edge1--cycle;
1295 T_serif(3,cap_bar,round .8border_height,0);
1296 T_serif(4,cap_bar,round .8border_height,1);
1297 fill T_edge3;
1298 fill T_edge4;
1299 if x1c>x3: y5=y6=y7=y8=h-1/2cap_bar; x5=x3a; x6=x1c; x7=x1e; x8=x4a;
1300 penpos5(cap_bar,90); penpos6(cap_bar,90);
1301 penpos7(cap_bar,90); penpos8(cap_bar,90);
1302 penstroke z5e--z6e;
1303 penstroke z7e--z8e; fi
1304 penlabels(range 1 thru 8);
1305 endchar;
1306
1307 beginchar(CYR_u,.8(13u#+s#),.8cap_height#,0);
1308 x1l=s+.8cap_jut; y1l=.98h-cap_bar;
1309 x3r=w-s-.8*.8cap_jut; y3r=.98h-cap_bar;
1310 x4=33/60w; y4=6/53h;
1311 numeric theta[];
1312 theta1 = angle(z4-z1l);
1313 theta2 = angle(z4-z3r);
1314 serif(1,.8cap_stem,theta1,.8cap_jut,.8cap_jut);
1315 A_serif(3,cap_bar,theta2,.8*1.2cap_jut,.8*.8cap_jut);
1316 z2 = z1r+whatever*dir theta1=z3l+whatever*dir theta2;
1317 fill z4--serif_edge1--z2&z2--A_serif_edge3--z4&cycle;
1318 z5r=z4; y6=0; x6=x4-.8*1.2cap_stem; z7l=z2;
1319 penpos7(cap_bar,theta2+90);
1320 penpos5(cap_bar,theta2+90);
1321 penpos6(cap_bar,-90);
1322 penstroke z7e--z5e{dir theta2}...{left}z6e;
1323 z8=z6;
1324 dl_drop(8,.8cap_drop_round,.8*2u, 9/53h,cap_bar);
1325 fill dl_drop_edge8;
1326 penlabels(range 1 thru 8);
1327 endchar;
1328
1329 beginchar(CYR_ef,round .8(14u#+s#),.8cap_height#,0);
1330 if .5w = good.x .5w: change_width; fi
1331 x1=x2=.5w; y2c=0; y1h=h;
1332 y6=y7=y8=y9=.8*1.3cap_jut; y4=y3=y11=y12=h-.8*1.3cap_jut+1/2slab;
1333 x3=x7=x2l; x8=x12=x2r; x4=x6=x3-.8u; x11=x9=x12+.8u;
1334 x5=s+.8*1/2cap_curve; x10-x1=x1-x5; y4-y5=y5-y6; y10=y5;
1335 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1336 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1337 fill serif_edge2--reverse serif_edge1--cycle;
1338 penpos3(cap_bar,90);
1339 penpos4(cap_bar,90);
1340 penpos5(.8cap_curve,180);
1341 penpos6(cap_bar,270);
1342 penpos7(cap_bar,270);
1343 penpos8(cap_bar,-90);
1344 penpos9(cap_bar,-90);
1345 penpos10(.8cap_curve,0);
1346 penpos11(cap_bar,90);
1347 penpos12(cap_bar,90);
1348 penstroke z3e--z4e{left}..tension.9..{down}z5e{down}..tension.9..{right}z6e--z7e;
1349 penstroke z8e--z9e{right}..tension.9..{up}z10e{up}..tension.9..{left}z11e--z12e;
1350 penlabels (range 1 thru 12);
1351 endchar;
1352
1353 beginchar(CYR_ha,.8(12u#+s#),.8cap_height#,0);
1354 y3=y4=slab; x3=w-s-.8cap_jut-.8*1/2cap_stem; x4=s+.8cap_jut+1/2slab;
1355 y1=y2=h-slab; x1=s+.8cap_jut+.8*1/2cap_stem+c; x2=w-s-.8*1.5c-.8cap_jut-1/2slab;
1356 numeric theta[];
1357 theta1 = angle(z1-z3);
1358 theta2 = angle(z2-z4);
1359 serif(1,.8cap_stem,theta1-180,.8cap_jut,.8cap_jut);
1360 A_serif(2,.8*1.2cap_bar,theta2-180,.8cap_jut,.8cap_jut);
1361 serif(3,.8cap_stem,theta1,.8cap_jut,.8cap_jut);
1362 A_serif(4,.8*1.2cap_bar,theta2,.8cap_jut,.8cap_jut);
1363 fill serif_edge3--reverse serif_edge1--cycle;
1364 fill A_serif_edge4--reverse A_serif_edge2--cycle;
1365 penlabels(1,2,3,4);
1366 endchar;
1367
1368 beginchar(CYR_tse,.8(12.5u#+s#),.8cap_height#,.8comma_depth#);
1369 x1=x2=x5=.8cap_jut+.8*1/2cap_stem+s;
1370 x3=x4=x6=w-x1-.8*.5u; y5=y6=y2h;
1371 y1c=y3c=h; y2c=y4c=0; x7e=w-s; y7=y2h;
1372 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1373 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1374 serif(3,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1375 serif(4,.8cap_stem,90,.8cap_jut,.8cap_jut);
1376 fill serif_edge2--reverse serif_edge1--cycle;
1377 fill serif_edge4--reverse serif_edge3--cycle;
1378 penpos5(cap_bar,90); penpos6(cap_bar,90);
1379 penstroke z5e--z6e;
1380 T_serif(7,cap_bar,.8border_height,1);
1381 fill T_edge7;
1382 penlabels(1,2,3,4,5,6,7);
1383 endchar;
1384
1385 beginchar(CYR_che,.8(12u#+s#),.8cap_height#,0);
1386 x1=.8cap_jut+.8*1/2cap_stem+s;
1387 x2=x3=w-x1;
1388 y1c=y2c=h; y3c=0; y4=y4r=y4l=30/52h; x4=x1; x4r=x1r; x4l=x1l;
1389 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1390 serif(2,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1391 serif(3,.8cap_stem,90,.8cap_jut,.8cap_jut);
1392 fill z4r--reverse serif_edge1--z4l--cycle;
1393 fill serif_edge3--reverse serif_edge2--cycle;
1394 x5=x2l; y5=.8cap_bar_height-1/2cap_bar; z6=z4;
1395 x5-x7=x7-x4r; y7=y5-.7*2cap_bar;
1396 penpos6(.8cap_stem,180);
1397 penpos5(vair,270);
1398 penpos7(vair,270);
1399 penstroke z6e{down}...z7e..z5e;
1400 penlabels(1,2,3,4,5,6,7);
1401 endchar;
1402
1403 beginchar(CYR_sha,.8(16u#+s#),.8cap_height#,0);
1404 if .5w <> good.x .5w: change_width; fi
1405 x1=x2=good.x (.8cap_jut+.8*1/2cap_stem+s);
1406 y1c=h; y2c=0; x3=x2e; y3=y4=y7=y8=y2h;
1407 x4=x6c; x7=x6d; x8=x9c;
1408 x5=x6=good.x .5w; y5=y1; y6=y2;
1409 y9b=slab; x9=good.x w-x1;
1410 x10=x9; y10b=h-slab;
1411 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1412 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1413 fill serif_edge2--reverse serif_edge1--cycle;
1414 serif(5,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1415 serif(6,.8cap_stem,90,.8cap_jut,.8cap_jut);
1416 fill serif_edge6--reverse serif_edge5--cycle;
1417 serif(9,.8cap_stem,90,.8cap_jut,.8cap_jut);
1418 serif(10,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1419 fill serif_edge9--reverse serif_edge10--cycle;
1420 penpos3(slab,90);
1421 penpos4(slab,90);
1422 penpos7(slab,90);
1423 penpos8(slab,90);
1424 penstroke z3e--z4e;
1425 penstroke z7e--z8e;
1426 penlabels(range 1 thru 10);
1427 endchar;
1428
1429 beginchar(CYR_shcha,.8(16.5u#+s#),.8cap_height#,.8comma_depth#);
1430 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
1431 y1c=h; y2c=0; x3=x2e; y3=y4=y7=y8=y2h;
1432 x4=x6c; x7=x6d; x8=x9c;
1433 y9b=slab; x9h=w-s-.8*.5u;
1434 x10=x9; y10b=h-slab;
1435 x11e=w-s; y11=y9h;
1436 serif(9,.8cap_stem,90,.8cap_jut,.8cap_jut);
1437 serif(10,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1438 fill serif_edge9--reverse serif_edge10--cycle;
1439 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1440 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1441 fill serif_edge2--reverse serif_edge1--cycle;
1442 x5=x6=x1+(x10-x1)/2; y5=y1; y6=y2;
1443 serif(5,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1444 serif(6,.8cap_stem,90,.8cap_jut,.8cap_jut);
1445 fill serif_edge6--reverse serif_edge5--cycle;
1446 penpos3(slab,90);
1447 penpos4(slab,90);
1448 penpos7(slab,90);
1449 penpos8(slab,90);
1450 penstroke z3e--z4e;
1451 penstroke z7e--z8e;
1452 T_serif(11,slab,.8border_height,1);
1453 fill T_edge11;
1454 penlabels(range 1 thru 11);
1455 endchar;
1456
1457 beginchar(CYR_hard_sign,.8(13.5u#+c#),.8cap_height#,0);
1458 x2r=x5-sss_width; x1=x2; x8e=s; y8g=h;
1459 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1460 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1461 x7=x1d; y1c=h; y2c=0;
1462 y4-y5=y5-y6; x5=w-1/2cap_curve-s;
1463 y3=y4=.8cap_bar_height; x3=x2r; x4=x6=round(x3+3.5u-.8cap_stem);
1464 y6=y7=y2h;
1465 fill serif_edge2--reverse serif_edge1--cycle;
1466 T_serif(8,cap_bar,.8border_height,0);
1467 fill T_edge8;
1468 penpos3(cap_bar,90);
1469 penpos4(cap_bar,90);
1470 penpos5(.8cap_curve,0);
1471 penpos6(cap_bar,-90);
1472 penpos7(cap_bar,-90);
1473 penstroke z3e--z4e{right}..tension.8..z5e..tension.8..{left}z6e--z7e;
1474 penlabels(1,2,3,4,5,6,7,8);
1475 endchar;
1476
1477 beginchar(CYR_yeru,.8(16u#+c#),.8cap_height#,0);
1478 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
1479 x7=x1d; y1c=h; y2c=0;
1480 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1481 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1482 y3=y4=.8cap_bar_height; x3=round x2r; x4=x6=round (x3+3.5u-.8cap_stem) - 1;
1483 y4-y5=y5-y6; x5=x2r+sss_width; y8b=slab; x8h=w-s;
1484 y6=y7=y2h; x9=x8; y9b=h-slab;
1485 fill serif_edge2--reverse serif_edge1--cycle;
1486 serif(8,.8cap_stem,90,.8cap_jut,.8cap_jut);
1487 serif(9,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1488 fill serif_edge8--reverse serif_edge9--cycle;
1489 penpos3(cap_bar,90);
1490 penpos4(cap_bar,90);
1491 penpos5(.8cap_curve,0);
1492 penpos6(cap_bar,-90);
1493 penpos7(cap_bar,-90);
1494 penstroke z3e--z4e{right}..tension.8..z5e..tension.8..{left}z6e--z7e;
1495 penlabels(1,2,3,4,5,6,7);
1496 endchar;
1497
1498 beginchar(CYR_soft_sign,.8(11u#+s#),.8cap_height#,0);
1499 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
1500 x7=x1d; y1c=h; y2c=0;
1501 y3=y4=.8cap_bar_height; x3=x2r; x4=x6=x3+3.5u-.8cap_stem;
1502 y4-y5=y5-y6; x5=w-.8*1/2cap_curve-s;
1503 y6=y7=y2h;
1504 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1505 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1506 fill serif_edge2--reverse serif_edge1--cycle;
1507 penpos3(cap_bar,90);
1508 penpos4(cap_bar,90);
1509 penpos5(.8cap_curve,0);
1510 penpos6(cap_bar,-90);
1511 penpos7(cap_bar,-90);
1512 penstroke z3e--z4e{right}..tension.8..z5e..tension.8..{left}z6e--z7e;
1513 penlabels(1,2,3,4,5,6,7);
1514 endchar;
1515
1516 beginchar(CYR_e,.8(10u#+.5s#),.8cap_height#,0);
1517 x1=16/39w; x5=.5w; y1=0; y5=h;
1518 y7=.5h; x7=w-.8*1/2cap_curve-s;
1519 x9e=s; y9=0;
1520 dl_drop(9,.8cap_drop_round,16/39w-s,.8*1.6cap_drop_round,slab);
1521 y8=0.1h-c; y6=0.9h+c; x8=x9+8.5/16(x7-x9); x6=x5+8/16(x7-x5);
1522 penpos5(cap_bar,-90);
1523 penpos6(.8o,-150);
1524 penpos7(.8cap_curve,-180);
1525 penpos8(.8o,-210);
1526 penpos1(cap_bar,-270);
1527 penstroke z5e{right}..z6e..{down}z7e{down}..z8e..{left}z1e;
1528 y2=y5; x2=x5-c;
1529 S_serif(2,slab,x1+c,.8*1.5border_height);
1530 x3=x7-.8*1/2cap_stem; y3=y4=.8cap_bar_height; x4=x2b-x1;
1531 penpos3(cap_bar,90); penpos4(cap_bar,90);
1532 penstroke z3e--z4e; fill z4r..z4l..cycle;
1533 fill S_serif_edge2 reflectedabout(z5r,z5l);
1534 fill dl_drop_edge9;
1535 penlabels(1,2,3,4,5,6,7,8);
1536 endchar;
1537
1538 beginchar(CYR_yu,.8(16u#+s#),.8cap_height#,0);
1539 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
1540 y1c=h; y2c=0;
1541 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1542 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1543 fill serif_edge2--reverse serif_edge1--cycle;
1544 penpos9(vair,90);
1545 penpos10(.8o,30);
1546 penpos3(.8cap_curve,0);
1547 penpos4(.8o,-30);
1548 penpos5(vair,-90);
1549 penpos6(.8o,-150);
1550 penpos7(.8cap_curve,-180);
1551 penpos8(.8o,-210);
1552 y3=y7=.5h; x7=w-.8*1/2cap_curve-s; x3=x7-.8cap_o_width; y9=0; y5=h; x7-x5=x5-x3; x9=x5;
1553 y10=y8=0.1h-c; y4=y6=0.9h+c; x10=x4=x3+7.5/16(x5-x3); x6=x8=x5+8.5/16(x7-x5);
1554 penstroke z9e..z10e..z3e..z4e..z5e..z6e..z7e..z8e..cycle;
1555 x11=x1r; x12=x3-.8*1/3cap_stem; y11=y12=.8cap_bar_height;
1556 penpos11(cap_bar,90); penpos12(cap_bar,90);
1557 penstroke z11e--z12e;
1558 penlabels(range 1 thru 12);
1559 endchar;
1560
1561 beginchar(CYR_ya,.8(11u#+s#),.8cap_height#,0);
1562 x1=x2=w-.8cap_jut-.8*1/2cap_stem-s;
1563 y6=y10=y7=.8cap_bar_height; y3=y4=h-1/2slab; x7=x2l;
1564 y1c=h; y2c=0; x6=x4=x7-2.3u; x3=x1c;
1565 y4-y5=y5-y6; x5=x8-1.5c; x9=s; y9=0; y6-y8=y8-y9; x7-x10=3(x10-x6); x10-x8=x8-x9;
1566 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
1567 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
1568 fill serif_edge2--reverse serif_edge1--cycle;
1569 penpos3(cap_bar,90);
1570 penpos4(cap_bar,90);
1571 penpos5(.8cap_curve,180);
1572 penpos7(cap_bar,270);
1573 penpos6(cap_bar,270);
1574 penpos8(.8cap_curve,0);
1575 penpos9(cap_bar,-90);
1576 penpos10(cap_bar,-90);
1577 penstroke z3e--z4e{left}..tension1..z5e..tension1..{right}z6e--z7e;
1578 penstroke z9e{right}..tension1..{up}z8e{up}..tension1..{right}z10e;
1579 fill z9l..z9r..cycle;
1580 penlabels(range 1 thru 10);
1581 endchar;
1582
1583 beginchar("A",13u#+s#,cap_height#,0);
1584 z1=(.5w,h+1/13h);
1585 x4l=w-x5r=s+cap_jut; y4l=y5r=slab;
1586 numeric theta[];
1587 theta4=angle(z1-z4l);
1588 theta5=angle(z1-z5r);
1589 A_serif(4,1.3cap_bar,theta4,cap_jut,1.2cap_jut);
1590 serif(5,cap_stem,theta5,cap_jut,cap_jut);
1591 z0=z4r+whatever*dir theta4=z5l+whatever*dir theta5;
1592 fill z1--A_serif_edge4--z0&z0--serif_edge5--z1&cycle;
1593 penpos2(whatever,theta4);
1594 penpos3(whatever,theta5);
1595 y2r=y3r=20/52h;
1596 y2l=y3l=y2r-cap_bar;
1597 z2=whatever[z1,z4r];
1598 z3=whatever[z1,z5l];
1599 penstroke z2e--z3e;
1600 y6=y7=h; z6=whatever[z1,z4l]; z7=whatever[z1,z5r];
1601 unfill z1..z6--z7..z1&cycle;
1602 unfill z1..z6--z7..z1&cycle;
1603 penlabels(range 0 thru 7);
1604 endchar;
1605
1606 beginchar("B",11u#+s#,cap_height#,0);
1607 x1=x2=cap_jut+1/2cap_stem+s;
1608 x3=x10=x1d; y3=y4=h-1/2slab; x4=x3+u;
1609 y1c=h; y2c=0;
1610 y6=y7=cap_bar_height; x6=x2r; x7=x9=x6+4.5u-cap_stem;
1611 y7-y8=y8-y9; x8=w-1/2cap_curve-s;
1612 y9=y10=y2h;
1613 y4-y5=y5-y7; x5=x8-2/5cap_curve; y77=y7; x77=x4;
1614 serif(1,cap_stem,-90,1/2cap_jut,cap_jut);
1615 serif(2,cap_stem,90,cap_jut,cap_jut);
1616 penpos3(slab,90);
1617 penpos4(slab,90);
1618 penpos5(cap_curve,0);
1619 penpos77(slab,-90);
1620 fill serif_edge2--reverse serif_edge1--cycle;
1621 penpos6(cap_bar,90);
1622 penpos7(cap_bar,90);
1623 penpos8(cap_curve,0);
1624 penpos9(cap_bar,-90);
1625 penpos10(cap_bar,-90);
1626 penstroke z3e--z4e{right}..tension.8..z5e..tension.8..{left}z77e;
1627 penstroke z6e--z7e{right}..tension.8..z8e..tension.8..{left}z9e--z10e;
1628 penlabels(range 1 thru 10,77);
1629 endchar;
1630
1631 beginchar("C",10u#+s#,cap_height#,0);
1632 x1=x5=23/42w; y1=0; y5=h;
1633 y3=.5h; x3=1/2cap_curve+s;
1634 y2=0.1h-c; y4=0.9h+c; x2=x4=x3+7/16(x1-x3);
1635 penpos1(cap_bar,90);
1636 penpos2(o,30);
1637 penpos3(cap_curve,0);
1638 penpos4(o,-30);
1639 penpos5(cap_bar,-90);
1640 penstroke z1e{left}..z2e..z3e..z4e..{right}z5e;
1641 z6=z5; y7=y1; x7e=w-s; y8=y1; x8=x1-.1w;
1642 S_serif(6,slab,w-s-c-x1,1.5border_height);
1643 S_serif(7,slab,w-s-x1,1.5border_height);
1644 fill S_serif_edge6; fill S_serif_edge7 reflectedabout(z1,z8);
1645 penlabels(range 1 thru 8);
1646 endchar;
1647
1648 beginchar("D",12u#,cap_height#,0);
1649 x1=x2=cap_jut+1/2cap_stem+s;
1650 y1c=h; y2c=0;
1651 serif(1,cap_stem,-90,cap_jut,cap_jut);
1652 serif(2,cap_stem,90,cap_jut,cap_jut);
1653 fill serif_edge2--reverse serif_edge1--cycle;
1654 penpos3(cap_bar,90);
1655 penpos4(cap_bar,90);
1656 penpos5(o,30);
1657 penpos6(cap_curve,0);
1658 penpos7(o,-30);
1659 penpos8(cap_bar,-90);
1660 penpos9(cap_bar,-90);
1661 x3=x9=x1d;
1662 x8=x4=.5w; y8=y9=1/2cap_bar; y4=y3=h-1/2cap_bar;
1663 y6=.5h; x6=w-1/2cap_curve-s;
1664 y7=0.1h-c+1/2cap_bar; y5=0.9h+c-1/2cap_bar; x5=x7=x4+6/10(x6-x4);
1665 penstroke z3e--z4e{right}..z5e..z6e..z7e..{left}z8e--z9e;
1666 penlabels(range 1 thru 10,77);
1667 endchar;
1668
1669 beginchar("E",10u#+s#,cap_height#,0);
1670 x1=x2=cap_jut+1/2cap_stem+s;
1671 y4=y3=h-1/2slab; x4=x1d;
1672 y1c=h; y2c=0;
1673 y5=y3; x5e=w-s-c;
1674 y6=y7=y8=cap_bar_height;x6=x1r; x7=x8=x6+u;
1675 T_serif(5,slab,border_height,1);
1676 serif(1,cap_stem,-90,cap_jut,cap_jut);
1677 serif(2,cap_stem,90,cap_jut,cap_jut);
1678 fill serif_edge2--reverse serif_edge1--cycle;
1679 x3=x5a;
1680 penpos3(cap_bar,-90);
1681 penpos4(cap_bar,-90);
1682 penstroke z3e--z4e;
1683 fill T_edge5;
1684 penpos6(cap_bar,90);
1685 penpos7(cap_bar,90);
1686 penstroke z6e--z7e;
1687 T_serif(8,cap_bar,.8border_height,1);
1688 fill T_edge8;
1689 fill T_edge8 reflectedabout(z6,z7);
1690 y9=y10=y11=y2h; x9=x2d; x11e=w-s;
1691 T_serif(11,cap_bar,border_height,1); x10=x11;
1692 penpos9(cap_bar,90);
1693 penpos10(cap_bar,90);
1694 penstroke z9e--z10e;
1695 fill T_edge11 reflectedabout(z9,z10);
1696 penlabels(range 1 thru 11);
1697 endchar;
1698
1699 beginchar("F",10u#+.5s#,cap_height#,0);
1700 x1=x2=cap_jut+1/2cap_stem+s;
1701 y4=y3=h-1/2slab; x4=x1d;
1702 y1c=h; y2c=0;
1703 y5=y3; x5e=w-s;
1704 y6=y7=y8=cap_bar_height;x6=x1r; x7=x8=x6+u;
1705 T_serif(5,slab,border_height,1);
1706 serif(1,cap_stem,-90,cap_jut,cap_jut);
1707 serif(2,cap_stem,90,cap_jut,cap_jut);
1708 fill serif_edge2--reverse serif_edge1--cycle;
1709 x3=x5a;
1710 penpos3(cap_bar,-90);
1711 penpos4(cap_bar,-90);
1712 penstroke z3e--z4e;
1713 fill T_edge5;
1714 penpos6(cap_bar,90);
1715 penpos7(cap_bar,90);
1716 penstroke z6e--z7e;
1717 T_serif(8,cap_bar,.8border_height,1);
1718 fill T_edge8;
1719 fill T_edge8 reflectedabout(z6,z7);
1720 penlabels(range 1 thru 8);
1721 endchar;
1722
1723 beginchar("G",10u#+cap_jut#+c#+s#,cap_height#,0);
1724 x1=x5=23/42(w-cap_jut-c); y1=0; y5=h;
1725 y3=.5h; x3=1/2cap_curve+s;
1726 y2=0.1h-c; y4=0.9h+c; x2=x4=x3+7/16(x1-x3);
1727 penpos1(cap_bar,90);
1728 penpos2(o,30);
1729 penpos3(cap_curve,0);
1730 penpos4(o,-30);
1731 penpos5(cap_bar,-90);
1732 penstroke z1e{left}..z2e..z3e..z4e..{right}z5e;
1733 z6=z5; y7=y1; x7e=w-s-cap_jut-c; y8=y1; x8=x1-.1(w-cap_jut-c);
1734 S_serif(6,slab,w-s-2c-x1-cap_jut,1.5border_height);
1735 S_serif(7,slab,w-s-x1-cap_jut+c,7/4border_height);
1736 fill S_serif_edge6; fill S_serif_edge7 reflectedabout(z1,z8);
1737 x9r=x7e; y9r=7/4border_height-1/2cap_bar;
1738 serif(9,cap_stem,-90,cap_jut,cap_jut);
1739 x10=x9l; x11=x9r; y10=y11=3/4cap_bar;
1740 fill reverse serif_edge9--z10--z11--cycle;
1741 penlabels(range 1 thru 8);
1742 endchar;
1743
1744 beginchar("H",12u#+s#,cap_height#,0);
1745 x1=x2=cap_jut+1/2cap_stem+s;
1746 x3=x4=w-x1; x5=x1r; x6=x3l;
1747 y1c=y3c=h; y2c=y4c=0;
1748 serif(1,cap_stem,-90,cap_jut,cap_jut);
1749 serif(2,cap_stem,90,cap_jut,cap_jut);
1750 serif(3,cap_stem,-90,cap_jut,cap_jut);
1751 serif(4,cap_stem,90,cap_jut,cap_jut);
1752 fill serif_edge2--reverse serif_edge1--cycle;
1753 fill serif_edge4--reverse serif_edge3--cycle;
1754 penpos5(cap_bar,90); penpos6(cap_bar,90);
1755 y5=y6=cap_bar_height; penstroke z5e--z6e;
1756 penlabels(1,2,3,4,5,6);
1757 endchar;
1758
1759 beginchar("I",2cap_jut#+cap_stem#+2s#,cap_height#,0);
1760 x1=x2=cap_jut+1/2cap_stem+s;
1761 y1c=h; y2c=0;
1762 serif(1,cap_stem,-90,cap_jut,cap_jut);
1763 serif(2,cap_stem,90,cap_jut,cap_jut);
1764 fill serif_edge2--reverse serif_edge1--cycle;
1765 endchar;
1766
1767 beginchar("J",7u#+s#,cap_height#,0);
1768 x1=x4=w-cap_jut-1/2cap_stem-s;
1769 y1c=h; y2=y3=y4=13/53h; x2=x1r; x3=x1l;
1770 y5=0; x5=x3-.55cap_stem;
1771 serif(1,cap_stem,-90,1.2cap_jut,cap_jut);
1772 fill z3--z2--reverse serif_edge1--cycle;
1773 penpos4(cap_stem,0);
1774 penpos5(cap_bar,-90);
1775 penstroke z4e{down}..{left}z5e;
1776 x6e=s; y6=0;
1777 dl_drop(6,cap_drop_round,x5-s,1.3drop_round,cap_bar);
1778 fill dl_drop_edge6;
1779 penlabels(1,2,3,4,5,6);
1780 endchar;
1781
1782 beginchar("K",13u#-c#,cap_height#,0);
1783 x1=x2=cap_jut+1/2cap_stem+s;
1784 y1c=h; y2c=0;
1785 serif(1,cap_stem,-90,cap_jut,cap_jut);
1786 serif(2,cap_stem,90,cap_jut,cap_jut);
1787 fill serif_edge2--reverse serif_edge1--cycle;
1788 y7=cap_bar_height; x3l=w-cap_jut-.5cap_jut-cap_bar-s; y3l=h-cap_bar;
1789 x5=x6=x1r; y5=cap_bar_height-cap_bar; y6=y5-1.2cap_bar;
1790 numeric theta[];
1791 theta1=angle(z5-z3l);
1792 A_serif(3,cap_bar,theta1,1.5cap_jut,.6cap_jut);
1793 x4l=w-s-1.2cap_jut-cap_stem; y4l=cap_bar;
1794 z7=z3r+whatever*dir theta1;
1795 theta2=angle(z7-z4l);
1796 serif(4,cap_stem,theta2,.8cap_jut,cap_jut);
1797 z8=z3r+whatever*dir theta1=z4r+whatever*dir theta2;
1798 fill z5--z6--z7--serif_edge4--z8--reverse A_serif_edge3--cycle;
1799 penlabels(range 1 thru 8);
1800 endchar;
1801
1802 beginchar("L",10u#+c#,cap_height#,0);
1803 x1=x2=cap_jut+1/2cap_stem+s;
1804 y1c=h; y2c=0;
1805 serif(1,cap_stem,-90,cap_jut,cap_jut);
1806 serif(2,cap_stem,90,cap_jut,cap_jut);
1807 fill serif_edge2--reverse serif_edge1--cycle;
1808 y3=y4=y5=y2h; x3=x2d; x5e=w-s;
1809 T_serif(5,cap_bar,border_height,1); x4=x5;
1810 penpos3(cap_bar,90);
1811 penpos4(cap_bar,90);
1812 penstroke z3e--z4e;
1813 fill T_edge5 reflectedabout(z3,z4);
1814 penlabels(1,2,3,4,5);
1815 endchar;
1816
1817 beginchar("M",13u#+1.5s#,cap_height#,0);
1818 x1g=s; y1c=0; y2=h-cap_bar;
1819 A_serif(1,cap_bar,90,jut,jut);
1820 x2=x1; serif(2,cap_bar,-90,jut,jut);
1821 fill A_serif_edge1--reverse serif_edge2--cycle;
1822 x3h=x4h=w-s; y3g=h-1/2cap_bar; y4c=0;
1823 serif(3,cap_stem,-90,.51cap_bar, jut);
1824 serif(4,cap_stem,90,jut,jut);
1825 fill serif_edge4--reverse serif_edge3--cycle;
1826 z5l=z3g; penpos5(bar,0); penpos6(bar,0);
1827 z6=z5+whatever*dir -108; y6=0;
1828 penstroke z5e--z6e;
1829 z7l=z6l+whatever*dir 109; y7l=10/54h;
1830 z8l=whatever[z6l,z7l]; y8l=h;
1831 penpos7(cap_stem,0); penpos8(cap_stem,0);
1832 penstroke z7e--z8e; fill z6l--z7l--z7r--cycle;
1833 fill z6l..tension1.3..z6r..tension1.3..cycle;
1834 penlabels(range 1 thru 8);
1835 endchar;
1836
1837 beginchar("N",12u#,cap_height#,0);
1838 x1=x2=cap_jut+1/2cap_bar+s;
1839 x3=w-x1; y1c=y3c=h; y2c=y4=y5=0;
1840 x4=x3r; x5=x3l;
1841 serif(1,cap_bar,-90,cap_jut,1.3cap_jut);
1842 A_serif(2,cap_bar,90,cap_jut,cap_jut);
1843 A_serif(3,cap_bar,-90,cap_jut,cap_jut);
1844 fill A_serif_edge2--reverse serif_edge1--cycle;
1845 numeric theta[]; y7=y1h; x7=x1h-1.1cap_stem;
1846 theta1=angle(z5-z7);
1847 z6=z3l+whatever*dir -90=z1h+whatever*dir theta1;
1848 fill z6--z1h--z7--z5{down}..{up}z4--reverse A_serif_edge3--cycle;
1849 unfill z1b--z1l--z1a--cycle;
1850 penlabels(1,2,3,4,5,6,7);
1851 endchar;
1852
1853 beginchar("O",11u#+s#,cap_height#,0);
1854 penpos1(vair,90);
1855 penpos2(o,30);
1856 penpos3(cap_curve,0);
1857 penpos4(o,-30);
1858 penpos5(vair,-90);
1859 penpos6(o,-150);
1860 penpos7(cap_curve,-180);
1861 penpos8(o,-210);
1862 x1=x5=.5w; y1=0; y5=h;
1863 y3=y7=.5h; x3=1/2cap_curve+s; x7=w-1/2cap_curve-s;
1864 y2=y8=0.1h-c; y4=y6=0.9h+c; x2=x4=x3+7/16(x5-x3); x6=x8=x5+9/16(x7-x5);
1865 penstroke z1e..z2e..z3e..z4e..z5e..z6e..z7e..z8e..cycle;
1866 penlabels(range 1 thru 8);
1867 endchar;
1868
1869 beginchar("P",10u#+s#,cap_height#,0);
1870 x1=x2=x3=cap_jut+1/2cap_stem+s;
1871 y3=y4=cap_bar2_height; y7=y6=h-1/2slab; x7=x3+c;
1872 y1c=h; y2c=0; x6=x4=x3+3u;
1873 y5-y4=y6-y5; x5=w-1/2cap_curve-s;
1874 serif(1,cap_stem,-90,cap_jut,cap_jut);
1875 serif(2,cap_stem,90,cap_jut,cap_jut);
1876 fill serif_edge2--reverse serif_edge1--cycle;
1877 penpos3(cap_bar,-90);
1878 penpos4(cap_bar,-90);
1879 penpos5(cap_curve,0);
1880 penpos7(cap_bar,90);
1881 penpos6(cap_bar,90);
1882 penstroke z3e--z4e{right}..tension.8..z5e..tension.8..{left}z6e--z7e;
1883 penlabels(1,2,3,4,5,6,7);
1884 endchar;
1885
1886 beginchar("Q",11u#+s#,cap_height#,comma_depth#);
1887 penpos1(vair,90);
1888 penpos2(o,30);
1889 penpos3(cap_curve,0);
1890 penpos4(o,-30);
1891 penpos5(vair,-90);
1892 penpos6(o,-150);
1893 penpos7(cap_curve,-180);
1894 penpos8(o,-210);
1895 x1=x5=.5w; y1=0; y5=h;
1896 y3=y7=.5h; x3=1/2cap_curve+s; x7=w-1/2cap_curve-s;
1897 y2=y8=0.1h-c; y4=y6=0.9h+c; x2=x4=x3+7/16(x5-x3); x6=x8=x5+9/16(x7-x5);
1898 penstroke z1e..z2e..z3e..z4e..z5e..z6e..z7e..z8e..cycle;
1899 x11=x12-1.5c; x12=x7l-c; y11=y12=-comma_depth;
1900 y9=0; x9=x1-c; y9-y10=y10-y11; x11-x10=x10-x9;
1901 penpos9(cap_bar,90); penpos10(cap_curve,0);
1902 penpos11(cap_bar,90); penpos12(cap_bar,90);
1903 penstroke z9e{dir -20}..tension.8..z10e..tension.8..{right}z11e--z12e;
1904 fill z12r..z12l..cycle;
1905 penlabels(range 1 thru 12);
1906 endchar;
1907
1908 beginchar("R",11u#+s#,cap_height#,0);
1909 x1=x2=cap_jut+1/2cap_stem+s;
1910 y6=y10=y7=cap_bar_height; y3=y4=h-1/2slab; x7=x2r;
1911 y1c=h; y2c=0; x6=x4=x7+2.3u; x3=x1d;
1912 y4-y5=y5-y6; x5=x8; x9=w-s-1/2cap_bar; y9=0; y6-y8=y8-y9; x10=x6; x9-x8=6/7(x8-x10);
1913 serif(1,cap_stem,-90,cap_jut,cap_jut);
1914 serif(2,cap_stem,90,cap_jut,cap_jut);
1915 fill serif_edge2--reverse serif_edge1--cycle;
1916 penpos3(cap_bar,90);
1917 penpos4(cap_bar,90);
1918 penpos5(cap_curve,0);
1919 penpos7(cap_bar,-90);
1920 penpos6(cap_bar,-90);
1921 penpos8(cap_curve,-180);
1922 penpos9(cap_bar,-90);
1923 penpos10(cap_bar,-90); fill z9l..z9r..cycle;
1924 penstroke z3e--z4e{right}..tension.9..z5e..tension.9..{left}z6e--z7e;
1925 penstroke z9e{left}..tension.9..z8e{up}..tension.9..{left}z10e;
1926 fill z9l..z9r..cycle;
1927 penlabels(range 1 thru 10);
1928 endchar;
1929
1930 beginchar("S",9u#+s#,cap_height#,0);
1931 x6=x7=1/2w; y6=y7=0;
1932 S_serif(7,cap_bar,x6-s,1.5border_height);
1933 y5=11/53h; x5=w-s-1/2(1.9hair);
1934 y4=28/53h; x4=18/38w; y3=42/53h; x3=s+c+1/2(1.9cap_bar);
1935 x2=.5w-c; y2=h; z1=z2;
1936 penpos6(cap_bar,-90);
1937 penpos5(1.9hair,0);
1938 penpos4(1.1cap_curve,90);
1939 penpos3(1.9hair,0);
1940 penpos2(cap_bar,-90);
1941 penstroke z6e{right}..tension.9..z5e..tension.9..z4e..tension.9..z3e..tension.9..{right}z2e;
1942 fill S_serif_edge7 rotatedaround(z6,180);
1943 S_serif(1,cap_bar,x5-x2-cap_bar,1.2border_height);
1944 fill S_serif_edge1;
1945 penlabels(1,2,3,4,5,6,7);
1946 endchar;
1947
1948 beginchar("T",round (11u#+s#),cap_height#,0);
1949 x1=x2=.5w;
1950 y1c=h; y2c=0;
1951 y3=y4=h-1/2slab; x3e=s; x1-x3e=x4e-x1;
1952 serif(1,cap_stem,-90,1.2cap_jut,1.2cap_jut);
1953 serif(2,cap_stem,90,cap_jut,cap_jut);
1954 fill serif_edge2--reverse serif_edge1--cycle;
1955 T_serif(3,cap_bar,round border_height,0);
1956 T_serif(4,cap_bar,round border_height,1);
1957 fill T_edge3;
1958 fill T_edge4;
1959 if x1c>x3: y5=y6=y7=y8=h-1/2cap_bar; x5=x3a; x6=x1c; x7=x1e; x8=x4a;
1960 penpos5(cap_bar,90); penpos6(cap_bar,90);
1961 penpos7(cap_bar,90); penpos8(cap_bar,90);
1962 penstroke z5e--z6e;
1963 penstroke z7e--z8e; fi
1964 penlabels(range 1 thru 8);
1965 endchar;
1966
1967 beginchar("U",12u#+s#,cap_height#,0);
1968 x1=cap_jut+1/2cap_stem+s;
1969 x3=w-s-cap_jut-1/2cap_bar;
1970 y1c=y3c=h; y2=y4=y5=y6=y24=y56=16/53h; x2=x1l;
1971 x4=x1r; x5=x3l; x6=x3r;
1972 serif(1,cap_stem,-90,cap_jut,cap_jut);
1973 A_serif(3,cap_bar,-90,cap_jut,cap_jut);
1974 fill z2--z4--reverse serif_edge1--cycle;
1975 fill z5--z6--reverse A_serif_edge3--cycle;
1976 x7=x1+.5(x3-x1); y7=0; x4-x24=x24-x2; x6-x56=x56-x5;
1977 penpos24(cap_stem,-180); penpos7(vair,-90);
1978 penpos56(cap_bar,0);
1979 penstroke z24e{down}..tension.9..{right}z7e{right}..tension.9..{up}z56e;
1980 penlabels(range 1 thru 7,24,56);
1981 endchar;
1982
1983 beginchar("V",12u#,cap_height#,0);
1984 x1l=cap_jut+s;
1985 x3r=w-s-cap_jut;
1986 y1l=y3r=h-cap_bar; x4=.5w-1/2cap_bar; x5=.5w+1/2cap_bar;
1987 y4=y5=1/2cap_bar;
1988 numeric theta[];
1989 theta1=angle(z4-z1l);
1990 theta2=angle(z5-z3r);
1991 serif(1,cap_stem,theta1,cap_jut,cap_jut);
1992 A_serif(3,cap_bar,theta2,1.3cap_jut,cap_jut);
1993 z2=z1r+whatever*dir theta1=z3l+whatever*dir theta2;
1994 fill z4{down}..{up}z5--reverse A_serif_edge3--z2--reverse serif_edge1--z4&cycle;
1995 penlabels(1,2,3,4,5,6,7);
1996 endchar;
1997
1998 beginchar("W",17u#,cap_height#,0);
1999 x9l=.5w-.3cap_stem;
2000 x7r=w-s-cap_jut;
2001 y9l=y7r=y1l=h-cap_bar; x5=x9l+.5(x7r-x9l)-1/2cap_bar; x6=x9l+.5(x7r-x9l)+1/2cap_bar;
2002 y5=y6=y2=y3=1/2cap_bar;
2003 numeric theta[];
2004 theta1=angle(z5-z9l);
2005 theta2=angle(z6-z7r);
2006 serif(9,cap_stem,theta1,cap_jut,cap_jut);
2007 A_serif(7,cap_bar,theta2,1.3cap_jut,cap_jut);
2008 z8=z9r+whatever*dir theta1=z7l+whatever*dir theta2;
2009 x1l=s+cap_jut;
2010 serif(1,cap_stem,theta1,cap_jut,cap_jut);
2011 z2=z1l+whatever*dir theta1; x3=x2+cap_bar;
2012 z4=z3+whatever*dir (theta2-180)=z9l+whatever*dir theta1;
2013 y11=y8; z11=z1r+whatever*dir theta1;
2014 z10=z11+whatever*dir (theta2-180)=z9l+whatever*dir theta1;
2015 fill z5{down}..{up}z6--reverse A_serif_edge7--z8--reverse serif_edge9--z10--z11--reverse serif_edge1--z2{down}..{up}z3--z4--z5&cycle;
2016 penlabels(range 1 thru 11);
2017 endchar;
2018
2019 beginchar("X",12u#+s#,cap_height#,0);
2020 y3=y4=slab; x3=w-s-cap_jut-1/2cap_stem; x4=s+cap_jut+1/2slab;
2021 y1=y2=h-slab; x1=s+cap_jut+1/2cap_stem+c; x2=w-s-1.5c-cap_jut-1/2slab;
2022 numeric theta[];
2023 theta1 = angle(z1-z3);
2024 theta2 = angle(z2-z4);
2025 serif(1,cap_stem,theta1-180,cap_jut,cap_jut);
2026 A_serif(2,1.2cap_bar,theta2-180,cap_jut,cap_jut);
2027 serif(3,cap_stem,theta1,cap_jut,cap_jut);
2028 A_serif(4,1.2cap_bar,theta2,cap_jut,cap_jut);
2029 fill serif_edge3--reverse serif_edge1--cycle;
2030 fill A_serif_edge4--reverse A_serif_edge2--cycle;
2031 penlabels(1,2,3,4);
2032 endchar;
2033
2034 beginchar("Y",12u#,cap_height#,0);
2035 x1l=cap_jut+s;
2036 x3r=w-s-cap_jut;
2037 y1l=y3r=h-cap_bar; x4=.5w;
2038 y4=8/25h;
2039 numeric theta[];
2040 theta1=angle(z4-z1l);
2041 theta2=angle(z4-z3r);
2042 serif(1,cap_stem,theta1,cap_jut,cap_jut);
2043 A_serif(3,cap_bar,theta2,1.3cap_jut,cap_jut);
2044 z2=z1r+whatever*dir theta1=z3l+whatever*dir theta2;
2045 y5c=0; x5=.5w+.5c;
2046 serif(5,cap_stem,90,cap_jut,cap_jut);
2047 x6=x5l; x7=x5r;
2048 z6=z1l+whatever*dir theta1;
2049 z7=z3r+whatever*dir theta2;
2050 fill z6--serif_edge5--z7--reverse A_serif_edge3--z2--reverse serif_edge1--z6&cycle;
2051 penlabels(1,2,3,4,5,6,7);
2052 endchar;
2053
2054 beginchar("Z",9u#+1.5s#,cap_height#,0);
2055 x6=s+1/2cap_bar; y6=y7=y8=1/2cap_bar;
2056 x8e=w-s; x7=x8;
2057 T_serif(8,cap_bar,border_height,1);
2058 penpos6(cap_bar,90);
2059 penpos7(cap_bar,90);
2060 penstroke z6e--z7e; fill z6r..z6l..cycle;
2061 fill T_edge8 reflectedabout(z6,z7);
2062 x9=w-s-c; y9=y10=0; x10=w-s; z11=z8d reflectedabout(z6,z7);
2063 unfill z11{down}..z9--z10--cycle;
2064 y5l=y6r; x5l=x6r-1/4cap_bar;
2065 x4r=w-s-1/4cap_bar; y4=h-cap_bar;
2066 penpos4(cap_stem,0);
2067 penpos5(cap_stem,0);
2068 penstroke z4e--z5e;
2069 y3=y2=y1=h-1/2cap_bar;
2070 x3=w-s-1/2cap_bar; x1e=s+c;
2071 T_serif(1,cap_bar,border_height,0);
2072 x2=x1;
2073 penpos3(cap_bar,90);
2074 penpos2(cap_bar,90);
2075 penstroke z2e--z3e; fill z3l..z3r..cycle;
2076 fill T_edge1;
2077 x12=x1e; y12=y13=h; x13=x1e+.5c;
2078 unfill z1d{up}..z13--z12--cycle;
2079 penlabels(range 1 thru 13);
2080 endchar;
2081
2082 beginchar("a",.8(13u#+s#),.8cap_height#,0);
2083 z1=(.5w,h+1/13h);
2084 x4l=w-x5r=s+.8cap_jut; y4l=y5r=slab;
2085 numeric theta[];
2086 theta4=angle(z1-z4l);
2087 theta5=angle(z1-z5r);
2088 A_serif(4,.8*1.3cap_bar,theta4,.8cap_jut,.8*1.2cap_jut);
2089 serif(5,.8cap_stem,theta5,.8cap_jut,.8cap_jut);
2090 z0=z4r+whatever*dir theta4=z5l+whatever*dir theta5;
2091 fill z1--A_serif_edge4--z0&z0--serif_edge5--z1&cycle;
2092 penpos2(whatever,theta4);
2093 penpos3(whatever,theta5);
2094 y2r=y3r=20/52h;
2095 y2l=y3l=y2r-cap_bar;
2096 z2=whatever[z1,z4r];
2097 z3=whatever[z1,z5l];
2098 penstroke z2e--z3e;
2099 y6=y7=h; z6=whatever[z1,z4l]; z7=whatever[z1,z5r];
2100 unfill z1..z6--z7..z1&cycle;
2101 unfill z1..z6--z7..z1&cycle;
2102 penlabels(range 0 thru 7);
2103 endchar;
2104
2105 beginchar("b",.8(11u#+s#),.8cap_height#,0);
2106 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
2107 x3=x10=x1d; y3=y4=h-1/2slab; x4=x3+u;
2108 y1c=h; y2c=0;
2109 y6=y7=.8cap_bar_height; x6=x2r; x7=x9=x6+.8*4.5u-.8cap_stem;
2110 y7-y8=y8-y9; x8=w-.8*1/2cap_curve-s;
2111 y9=y10=y2h;
2112 y4-y5=y5-y7; x5=x8-.8*2/5cap_curve; y77=y7; x77=x4;
2113 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
2114 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
2115 penpos3(slab,90);
2116 penpos4(slab,90);
2117 penpos5(.8cap_curve,0);
2118 penpos77(slab,-90);
2119 fill serif_edge2--reverse serif_edge1--cycle;
2120 penpos6(cap_bar,90);
2121 penpos7(cap_bar,90);
2122 penpos8(.8cap_curve,0);
2123 penpos9(cap_bar,-90);
2124 penpos10(cap_bar,-90);
2125 penstroke z3e--z4e{right}..tension.9..z5e..tension.9..{left}z77e;
2126 penstroke z6e--z7e{right}..tension.8..z8e..tension.8..{left}z9e--z10e;
2127 sss_width := x8 - x2r; save sss_width;
2128 penlabels(range 1 thru 10,77);
2129 endchar;
2130
2131 beginchar("c",.8(10u#+s#),.8cap_height#,0);
2132 x1=x5=23/42w; y1=0; y5=h;
2133 y3=.5h; x3=.8*1/2cap_curve+s;
2134 y2=0.1h-c; y4=0.9h+c; x2=x4=x3+7.5/16(x1-x3);
2135 penpos1(cap_bar,90);
2136 penpos2(.8o,30);
2137 penpos3(.8cap_curve,0);
2138 penpos4(.8o,-30);
2139 penpos5(cap_bar,-90);
2140 penstroke z1e{left}..z2e..z3e..z4e..{right}z5e;
2141 z6=z5; y7=y1; x7e=w-s; y8=y1; x8=x1-.1w;
2142 S_serif(6,slab,w-s-.7c-x1,.8*1.5border_height);
2143 S_serif(7,slab,w-s-x1,.8*1.5border_height);
2144 fill S_serif_edge6; fill S_serif_edge7 reflectedabout(z1,z8);
2145 penlabels(1,2,3,4,5,6,7,8);
2146 endchar;
2147
2148 beginchar("d",.8*12u#,.8cap_height#,0);
2149 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
2150 y1c=h; y2c=0;
2151 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
2152 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
2153 fill serif_edge2--reverse serif_edge1--cycle;
2154 penpos3(cap_bar,90);
2155 penpos4(cap_bar,90);
2156 penpos5(.8o,30);
2157 penpos6(.8cap_curve,0);
2158 penpos7(.8o,-30);
2159 penpos8(cap_bar,-90);
2160 penpos9(cap_bar,-90);
2161 x3=x9=x1d;
2162 x8=x4=.5w; y8=y9=1/2cap_bar; y4=y3=h-1/2cap_bar;
2163 y6=.5h; x6=w-.8*1/2cap_curve-s;
2164 y7=0.1h-c+1/2cap_bar; y5=0.9h+c-1/2cap_bar; x5=x7=x4+.56(x6-x4);
2165 penstroke z3e--z4e{right}..z5e..z6e..z7e..{left}z8e--z9e;
2166 penlabels(range 1 thru 10,77);
2167 endchar;
2168
2169 beginchar("e",.8(10u#+s#),.8cap_height#,0);
2170 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
2171 y4=y3=h-1/2slab; x4=x1d;
2172 y1c=h; y2c=0;
2173 y5=y3; x5e=w-s-.7c;
2174 y6=y7=y8=.8cap_bar_height;x6=x1r; x7=x8=x6+.8u;
2175 T_serif(5,slab,.8border_height,1);
2176 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
2177 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
2178 fill serif_edge2--reverse serif_edge1--cycle;
2179 x3=x5a;
2180 penpos3(cap_bar,-90);
2181 penpos4(cap_bar,-90);
2182 penstroke z3e--z4e;
2183 fill T_edge5;
2184 penpos6(cap_bar,90);
2185 penpos7(cap_bar,90);
2186 penstroke z6e--z7e;
2187 T_serif(8,cap_bar,.8*.8border_height,1);
2188 fill T_edge8;
2189 fill T_edge8 reflectedabout(z6,z7);
2190 y9=y10=y11=y2h; x9=x2d; x11e=w-s;
2191 T_serif(11,cap_bar,.8border_height,1); x10=x11;
2192 penpos9(cap_bar,90);
2193 penpos10(cap_bar,90);
2194 penstroke z9e--z10e;
2195 fill T_edge11 reflectedabout(z9,z10);
2196 penlabels(range 1 thru 11);
2197 endchar;
2198
2199 beginchar("f",.8(10u#+.5s#),.8cap_height#,0);
2200 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
2201 y4=y3=h-1/2slab; x4=x1d;
2202 y1c=h; y2c=0; y5=y3; x5e=w-s;
2203 y6=y7=y8=.8*cap_bar_height;x6=x1r; x7=x8=x6+.8u;
2204 T_serif(5,slab,.8border_height,1);
2205 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
2206 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
2207 fill serif_edge2--reverse serif_edge1--cycle;
2208 x3=x5a; penpos3(cap_bar,-90);
2209 penpos4(cap_bar,-90);
2210 penstroke z3e--z4e;
2211 fill T_edge5;
2212 penpos6(cap_bar,90);
2213 penpos7(cap_bar,90);
2214 penstroke z6e--z7e;
2215 T_serif(8,cap_bar,.8*.8border_height,1);
2216 fill T_edge8;
2217 fill T_edge8 reflectedabout(z6,z7);
2218 penlabels(range 1 thru 8);
2219 endchar;
2220
2221 beginchar("g",.8(10u#+cap_jut#+c#+s#),.8cap_height#,0);
2222 x1=x5=23/42(w-.8cap_jut-c); y1=0; y5=h;
2223 y3=.5h; x3=.8*1/2cap_curve+s;
2224 y2=0.1h-c; y4=0.9h+c; x2=x4=x3+8.5/16(x1-x3);
2225 penpos1(cap_bar,90);
2226 penpos2(.8o,30);
2227 penpos3(.9cap_curve,0);
2228 penpos4(.8o,-30);
2229 penpos5(cap_bar,-90);
2230 penstroke z1e{left}..z2e..z3e..z4e..{right}z5e;
2231 z6=z5; y7=y1; x7e=w-s-.8cap_jut; y8=y1; x8=x1-.1(w-.8cap_jut-.8c);
2232 S_serif(6,slab,w-s-.8*2c-x1-.8cap_jut,.8*1.5border_height);
2233 S_serif(7,slab,w-s-x1-.8cap_jut+.8c,.8*7/4border_height);
2234 fill S_serif_edge6; fill S_serif_edge7 reflectedabout(z1,z8);
2235 x9r=x7e; y9r=.75*7/4border_height-1/2cap_bar;
2236 serif(9,.8cap_stem,-90,.8cap_jut,.8cap_jut);
2237 x10=x9l; x11=x9r; y10=y11=3/4cap_bar;
2238 fill reverse serif_edge9--z10--z11--cycle;
2239 penlabels(range 1 thru 8);
2240 endchar;
2241
2242 beginchar("h",.8(12u#+s#),.8cap_height#,0);
2243 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
2244 x3=x4=w-x1; x5=x1r; x6=x3l;
2245 y1c=y3c=h; y2c=y4c=0;
2246 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
2247 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
2248 serif(3,.8cap_stem,-90,.8cap_jut,.8cap_jut);
2249 serif(4,.8cap_stem,90,.8cap_jut,.8cap_jut);
2250 fill serif_edge2--reverse serif_edge1--cycle;
2251 fill serif_edge4--reverse serif_edge3--cycle;
2252 penpos5(cap_bar,90); penpos6(cap_bar,90);
2253 y5=y6=.8cap_bar_height; penstroke z5e--z6e;
2254 penlabels(1,2,3,4,5,6);
2255 endchar;
2256
2257 beginchar("i",.8(2cap_jut#+cap_stem#+2s#),.8cap_height#,0);
2258 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
2259 y1c=h; y2c=0;
2260 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
2261 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
2262 fill serif_edge2--reverse serif_edge1--cycle;
2263 endchar;
2264
2265 beginchar("j",.8(7u#+s#),.8cap_height#,0);
2266 x1=x4=w-.8cap_jut-.8*1/2cap_stem-s;
2267 y1c=h; y2=y3=y4=13/53h; x2=x1r; x3=x1l;
2268 y5=0; x5=x3-.8*.5cap_stem;
2269 serif(1,.8cap_stem,-90,.8*1.2cap_jut,.8cap_jut);
2270 fill z3--z2--reverse serif_edge1--cycle;
2271 penpos4(.8cap_stem,0);
2272 penpos5(cap_bar,-90);
2273 penstroke z4e{down}..{left}z5e;
2274 x6e=s; y6=0;
2275 dl_drop(6,.8cap_drop_round,x5-s,.8*1.3drop_round,cap_bar);
2276 fill dl_drop_edge6;
2277 penlabels(1,2,3,4,5,6);
2278 endchar;
2279
2280 beginchar("k",.8(13u#-c#),.8cap_height#,0);
2281 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
2282 y1c=h; y2c=0;
2283 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
2284 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
2285 fill serif_edge2--reverse serif_edge1--cycle;
2286 y7=.8cap_bar_height; x3l=w-.8cap_jut-.8*.5cap_jut-cap_bar-c; y3l=h-cap_bar;
2287 x5=x6=x1r; y5=.8cap_bar_height-cap_bar; y6=y5-1.2cap_bar;
2288 numeric theta[];
2289 theta1=angle(z5-z3l);
2290 A_serif(3,cap_bar,theta1,.8*1.5cap_jut,.8*.6cap_jut);
2291 x4l=w-s-.8*1.2cap_jut-.8cap_stem; y4l=cap_bar;
2292 z7=z3r+whatever*dir theta1;
2293 theta2=angle(z7-z4l);
2294 serif(4,.8cap_stem,theta2,.8*.8cap_jut,.8cap_jut);
2295 z8=z3r+whatever*dir theta1=z4r+whatever*dir theta2;
2296 fill z5--z6--z7--serif_edge4--z8--reverse A_serif_edge3--cycle;
2297 penlabels(range 1 thru 8);
2298 endchar;
2299
2300 beginchar("l",.8(10u#+c#),.8cap_height#,0);
2301 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
2302 y1c=h; y2c=0;
2303 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
2304 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
2305 fill serif_edge2--reverse serif_edge1--cycle;
2306 y3=y4=y5=y2h; x3=x2d; x5e=w-s;
2307 T_serif(5,cap_bar,.8border_height,1); x4=x5;
2308 penpos3(cap_bar,90);
2309 penpos4(cap_bar,90);
2310 penstroke z3e--z4e;
2311 fill T_edge5 reflectedabout(z3,z4);
2312 penlabels(1,2,3,4,5);
2313 endchar;
2314
2315 beginchar("m",.8(13u#+s#),.8cap_height#,0);
2316 x1g=s; y1c=0; y2=h-cap_bar;
2317 A_serif(1,cap_bar,90,.8jut,.8jut);
2318 x2=x1; serif(2,cap_bar,-90,jut,jut);
2319 fill A_serif_edge1--reverse serif_edge2--cycle;
2320 x3h=x4h=w-s; y3g=h-1/2cap_bar; y4c=0;
2321 serif(3,.8cap_stem,-90,.51cap_bar,.8jut);
2322 serif(4,.8cap_stem,90,.8jut,.8jut);
2323 fill serif_edge4--reverse serif_edge3--cycle;
2324 z5l=z3g; penpos5(bar,0); penpos6(bar,0);
2325 z6=z5+whatever*dir -107; y6=0;
2326 penstroke z5e--z6e;
2327 z7l=z6l+whatever*dir 106; y7l=11/54h;
2328 z8l=whatever[z6l,z7l]; y8l=h;
2329 penpos7(.8cap_stem,0); penpos8(.8cap_stem,0);
2330 penstroke z7e--z8e; fill z6l--z7l--z7r--cycle;
2331 fill z6l..tension1.3..z6r..tension1.3..cycle;
2332 penlabels(range 1 thru 8);
2333 endchar;
2334
2335 beginchar("n",.8*12u#,.8cap_height#,0);
2336 x1=x2=.8cap_jut+1/2cap_bar+s;
2337 x3=w-x1; y1c=y3c=h; y2c=y4=y5=0;
2338 x4=x3r; x5=x3l;
2339 serif(1,cap_bar,-90,.8cap_jut,.8*1.3cap_jut);
2340 A_serif(2,cap_bar,90,.8cap_jut,.8cap_jut);
2341 A_serif(3,cap_bar,-90,.8cap_jut,.8cap_jut);
2342 fill A_serif_edge2--reverse serif_edge1--cycle;
2343 numeric theta[]; y7=y1h; x7=x1h-.8*1.1cap_stem;
2344 theta1=angle(z5-z7);
2345 z6=z3l+whatever*dir -90=z1h+whatever*dir theta1;
2346 fill z6--z1h--z7--z5{down}..{up}z4--reverse A_serif_edge3--cycle;
2347 unfill z1b--z1l--z1a--cycle;
2348 penlabels(1,2,3,4,5,6,7);
2349 endchar;
2350
2351 beginchar("o",.8(11u#+s#),.8cap_height#,0);
2352 penpos1(vair,90);
2353 penpos2(.8o,30);
2354 penpos3(.8cap_curve,0);
2355 penpos4(.8o,-30);
2356 penpos5(vair,-90);
2357 penpos6(.8o,-150);
2358 penpos7(.8cap_curve,-180);
2359 penpos8(.8o,-210);
2360 x1=x5=.5w; y1=0; y5=h;
2361 y3=y7=.5h; x3=.8*1/2cap_curve+s; x7=w-.8*1/2cap_curve-s;
2362 y2=y8=0.1h-c; y4=y6=0.9h+c; x2=x4=x3+7.5/16(x5-x3); x6=x8=x5+8.5/16(x7-x5);
2363 penstroke z1e..z2e..z3e..z4e..z5e..z6e..z7e..z8e..cycle;
2364 penlabels(1,2,3,4,5,6,7,8);
2365 endchar;
2366
2367 beginchar("p",.8(10u#+s#),.8cap_height#,0);
2368 x1=x2=x3=.8cap_jut+.8*1/2cap_stem+s;
2369 y3=y4=.8cap_bar2_height; y7=y6=h-1/2slab; x7=x3+c;
2370 y1c=h; y2c=0; x6=x4=x3+.8*2.8u;
2371 y5-y4=y6-y5; x5=w-.8*1/2cap_curve-s;
2372 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
2373 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
2374 fill serif_edge2--reverse serif_edge1--cycle;
2375 penpos3(cap_bar,-90);
2376 penpos4(cap_bar,-90);
2377 penpos5(.8cap_curve,0);
2378 penpos7(cap_bar,90);
2379 penpos6(cap_bar,90);
2380 penstroke z3e--z4e{right}..tension.9..z5e..tension.9..{left}z6e--z7e;
2381 penlabels(1,2,3,4,5,6,7);
2382 endchar;
2383
2384 beginchar("q",.8(11u#+s#),.8cap_height#,.8comma_depth#);
2385 penpos1(vair,90);
2386 penpos2(.8o,30);
2387 penpos3(.8cap_curve,0);
2388 penpos4(.8o,-30);
2389 penpos5(vair,-90);
2390 penpos6(.8o,-150);
2391 penpos7(.8cap_curve,-180);
2392 penpos8(.8o,-210);
2393 x1=x5=.5w; y1=0; y5=h;
2394 y3=y7=.5h; x3=.8*1/2cap_curve+s; x7=w-.8*1/2cap_curve-s;
2395 y2=y8=0.1h-c; y4=y6=0.9h+c; x2=x4=x3+7.5/16(x5-x3); x6=x8=x5+8.5/16(x7-x5);
2396 penstroke z1e..z2e..z3e..z4e..z5e..z6e..z7e..z8e..cycle;
2397 x11=x12-1.5c; x12=x7l-c; y11=y12=-.8comma_depth;
2398 y9=0; x9=x1-c; y9-y10=y10-y11; x11-x10=x10-x9;
2399 penpos9(cap_bar,90); penpos10(.8cap_curve,0);
2400 penpos11(cap_bar,90); penpos12(cap_bar,90);
2401 penstroke z9e{dir -20}..tension.8..z10e..tension.8..{right}z11e--z12e;
2402 fill z12r..z12l..cycle;
2403 penlabels(range 1 thru 12);
2404 endchar;
2405
2406 beginchar("r",.8(11u#+s#),.8cap_height#,0);
2407 x1=x2=.8cap_jut+.8*1/2cap_stem+s;
2408 y6=y10=y7=.8cap_bar_height; y3=y4=h-1/2slab; x7=x2r;
2409 y1c=h; y2c=0; x6=x4=x7+1.7u; x3=x1d;
2410 y4-y5=y5-y6; x5=x8+.5c; x9=w-s-1/3cap_bar; y9=0; y6-y8=y8-y9; x10=x6-c; x9-x8=6/7(x8-x10);
2411 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
2412 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
2413 fill serif_edge2--reverse serif_edge1--cycle;
2414 penpos3(cap_bar,90);
2415 penpos4(cap_bar,90);
2416 penpos5(.8cap_curve,0);
2417 penpos7(cap_bar,-90);
2418 penpos6(cap_bar,-90);
2419 penpos8(.8cap_curve,-180);
2420 penpos9(cap_bar,-90);
2421 penpos10(cap_bar,-90);
2422 penstroke z3e--z4e{right}..tension.9..z5e..tension.9..{left}z6e--z7e;
2423 penstroke z9e{left}..tension.9..{up}z8e{up}..tension.8..{left}z10e;
2424 fill z9l..z9r..cycle;
2425 penlabels(range 1 thru 10);
2426 endchar;
2427
2428 beginchar("s",.8(9u#+s#),.8cap_height#,0);
2429 x6=x7=1/2w; y6=y7=0;
2430 S_serif(7,cap_bar,x6-s,.8*1.5border_height);
2431 y5=11/53h; x5=w-s-1/2(1.9hair);
2432 y4=28/53h; x4=18/38w; y3=42/53h; x3=s+c+1/2(1.9cap_bar);
2433 x2=.5w-c; y2=h; z1=z2;
2434 penpos6(cap_bar,-90);
2435 penpos5(.8*1.9hair,0);
2436 penpos4(.8*1.1cap_curve,80);
2437 penpos3(.8*1.9hair,0);
2438 penpos2(cap_bar,-90);
2439 penstroke z6e{right}..tension.9..z5e..tension.85..z4e..tension.85..z3e..tension.9..{right}z2e;
2440 fill S_serif_edge7 rotatedaround(z6,180);
2441 S_serif(1,cap_bar,x5-x2-.5cap_bar,.8*1.2border_height);
2442 fill S_serif_edge1;
2443 penlabels(1,2,3,4,5,6,7);
2444 endchar;
2445
2446 beginchar("t",round .8(11u#+s#),.8cap_height#,0);
2447 x1=x2=.5w; y1c=h; y2c=0;
2448 y3=y4=h-1/2slab; x3e=s; x1-x3e=x4e-x1;
2449 serif(1,.8cap_stem,-90,.8*1.2cap_jut,.8*1.2cap_jut);
2450 serif(2,.8cap_stem,90,.8cap_jut,.8cap_jut);
2451 fill serif_edge2--reverse serif_edge1--cycle;
2452 T_serif(3,cap_bar,round .8border_height,0);
2453 T_serif(4,cap_bar,round .8border_height,1);
2454 fill T_edge3; fill T_edge4;
2455 if x1c>x3: y5=y6=y7=y8=h-1/2cap_bar; x5=x3a; x6=x1c; x7=x1e; x8=x4a;
2456 penpos5(cap_bar,90); penpos6(cap_bar,90);
2457 penpos7(cap_bar,90); penpos8(cap_bar,90);
2458 penstroke z5e--z6e;
2459 penstroke z7e--z8e; fi
2460 penlabels(range 1 thru 8);
2461 endchar;
2462
2463 beginchar("u",.8(12u#+s#),.8cap_height#,0);
2464 x1=.8cap_jut+.8*1/2cap_stem+s;
2465 x3=w-s-.8cap_jut-1/2cap_bar;
2466 y1c=y3c=h; y2=y4=y5=y6=y24=y56=16/53h; x2=x1l;
2467 x4=x1r; x5=x3l; x6=x3r;
2468 serif(1,.8cap_stem,-90,.8cap_jut,.8cap_jut);
2469 A_serif(3,cap_bar,-90,.8cap_jut,.8cap_jut);
2470 fill z2--z4--reverse serif_edge1--cycle;
2471 fill z5--z6--reverse A_serif_edge3--cycle;
2472 x7=x1+.5(x3-x1); y7=0; x4-x24=x24-x2; x6-x56=x56-x5;
2473 penpos24(.8cap_stem,-180); penpos7(vair,-90);
2474 penpos56(cap_bar,0);
2475 penstroke z24e{down}..tension.9..{right}z7e{right}..tension.9..{up}z56e;
2476 penlabels(range 1 thru 7,24,56);
2477 endchar;
2478
2479 beginchar("v",.8*12u#,.8cap_height#,0);
2480 x1l=.8cap_jut+s;
2481 x3r=w-s-.8cap_jut;
2482 y1l=y3r=h-cap_bar; x4=.5w-1/2cap_bar; x5=.5w+1/2cap_bar;
2483 y4=y5=1/2cap_bar;
2484 numeric theta[];
2485 theta1=angle(z4-z1l);
2486 theta2=angle(z5-z3r);
2487 serif(1,.8cap_stem,theta1,.8cap_jut,.8cap_jut);
2488 A_serif(3,cap_bar,theta2,.8*1.3cap_jut,.8cap_jut);
2489 z2=z1r+whatever*dir theta1=z3l+whatever*dir theta2;
2490 fill z4{down}..{up}z5--reverse A_serif_edge3--z2--reverse serif_edge1--z4&cycle;
2491 penlabels(1,2,3,4,5,6,7);
2492 endchar;
2493
2494 beginchar("w",.8*17u#,.8cap_height#,0);
2495 x9l=.5w-.8*.3cap_stem;
2496 x7r=w-s-.8cap_jut;
2497 y9l=y7r=y1l=h-cap_bar; x5=x9l+.5(x7r-x9l)-1/2cap_bar; x6=x9l+.5(x7r-x9l)+1/2cap_bar;
2498 y5=y6=y2=y3=1/2cap_bar;
2499 numeric theta[];
2500 theta1=angle(z5-z9l);
2501 theta2=angle(z6-z7r);
2502 serif(9,.8cap_stem,theta1,.8cap_jut,.8cap_jut);
2503 A_serif(7,cap_bar,theta2,.8*1.3cap_jut,.8cap_jut);
2504 z8=z9r+whatever*dir theta1=z7l+whatever*dir theta2;
2505 x1l=s+.8cap_jut;
2506 serif(1,.8cap_stem,theta1,.8cap_jut,.8cap_jut);
2507 z2=z1l+whatever*dir theta1; x3=x2+cap_bar;
2508 z4=z3+whatever*dir (theta2-180)=z9l+whatever*dir theta1;
2509 y11=y8; z11=z1r+whatever*dir theta1;
2510 z10=z11+whatever*dir (theta2-180)=z9l+whatever*dir theta1;
2511 fill z5{down}..{up}z6--reverse A_serif_edge7--z8--reverse serif_edge9--z10--z11--reverse serif_edge1--z2{down}..{up}z3--z4--z5&cycle;
2512 penlabels(range 1 thru 11);
2513 endchar;
2514
2515 beginchar("x",.8(12u#+s#),.8cap_height#,0);
2516 y3=y4=slab; x3=w-s-.8cap_jut-.8*1/2cap_stem; x4=s+.8cap_jut+1/2slab;
2517 y1=y2=h-slab; x1=s+.8cap_jut+.8*1/2cap_stem+c; x2=w-s-.8*1.5c-.8cap_jut-1/2slab;
2518 numeric theta[];
2519 theta1 = angle(z1-z3);
2520 theta2 = angle(z2-z4);
2521 serif(1,.8cap_stem,theta1-180,.8cap_jut,.8cap_jut);
2522 A_serif(2,.8*1.2cap_bar,theta2-180,.8cap_jut,.8cap_jut);
2523 serif(3,.8cap_stem,theta1,.8cap_jut,.8cap_jut);
2524 A_serif(4,.8*1.2cap_bar,theta2,.8cap_jut,.8cap_jut);
2525 fill serif_edge3--reverse serif_edge1--cycle;
2526 fill A_serif_edge4--reverse A_serif_edge2--cycle;
2527 penlabels(1,2,3,4);
2528 endchar;
2529
2530 beginchar("y",.8*12u#,.8cap_height#,0);
2531 x1l=.8cap_jut+s; x3r=w-s-.8cap_jut;
2532 y1l=y3r=h-cap_bar; x4=.5w;
2533 y4=8/25h;
2534 numeric theta[];
2535 theta1=angle(z4-z1l);
2536 theta2=angle(z4-z3r);
2537 serif(1,.8cap_stem,theta1,.8cap_jut,.8cap_jut);
2538 A_serif(3,cap_bar,theta2,.8*1.3cap_jut,.8cap_jut);
2539 z2=z1r+whatever*dir theta1=z3l+whatever*dir theta2;
2540 y5c=0; x5=.5w+.5c;
2541 serif(5,.8cap_stem,90,.8cap_jut,.8cap_jut);
2542 x6=x5l; x7=x5r;
2543 z6=z1l+whatever*dir theta1;
2544 z7=z3r+whatever*dir theta2;
2545 fill z6--serif_edge5--z7--reverse A_serif_edge3--z2--reverse serif_edge1--z6&cycle;
2546 penlabels(1,2,3,4,5,6,7);
2547 endchar;
2548
2549 beginchar("z",.8(9u#+1.5s#),.8cap_height#,0);
2550 x6=s+1/2cap_bar; y6=y7=y8=1/2cap_bar; x8e=w-s; x7=x8;
2551 T_serif(8,cap_bar,.8border_height,1);
2552 penpos6(cap_bar,90); penpos7(cap_bar,90);
2553 penstroke z6e--z7e; fill z6r..z6l..cycle;
2554 fill T_edge8 reflectedabout(z6,z7);
2555 x9=w-s-.5c; y9=y10=0; x10=w-s; z11=z8d reflectedabout(z6,z7);
2556 unfill z11{down}..z9--z10--cycle;
2557 y5l=y6r; x5l=x6r-1/4cap_bar;
2558 x4r=w-s-1/4cap_bar; y4=h-cap_bar;
2559 penpos4(.8cap_stem,0);
2560 penpos5(.8cap_stem,0);
2561 penstroke z4e--z5e;
2562 y3=y2=y1=h-1/2cap_bar;
2563 x3=w-s-1/2cap_bar; x1e=s+c;
2564 T_serif(1,cap_bar,.8border_height,0); x2=x1;
2565 penpos3(cap_bar,90); penpos2(cap_bar,90);
2566 penstroke z2e--z3e; fill z3l..z3r..cycle;
2567 fill T_edge1; x12=x1e; y12=y13=h; x13=x1e+.5c;
2568 unfill z1d{up}..z13--z12--cycle;
2569 penlabels(range 1 thru 13);
2570 endchar;
2571
2572 beginchar(hex"30",9u#+1.5s#,cap_height#,0);
2573 penpos1(vair,90);
2574 penpos2(o,30);
2575 penpos3(cap_curve,0);
2576 penpos4(o,-30);
2577 penpos5(vair,-90);
2578 penpos6(o,-150);
2579 penpos7(cap_curve,-180);
2580 penpos8(o,-210);
2581 x1=x5=.5w; y1=0; y5=h;
2582 y3=y7=.5h; x3=1/2cap_curve+s; x7=w-1/2cap_curve-s;
2583 y2=y8=0.1h-c; y4=y6=0.9h+c; x2=x4=x3+7.5/16(x5-x3); x6=x8=x5+8.5/16(x7-x5);
2584 penstroke z1e..z2e..z3e..z4e..z5e..z6e..z7e..z8e..cycle;
2585 penlabels(1,2,3,4,5,6,7,8);
2586 endchar;
2587
2588 beginchar(hex"31",6u#+3/2c#,cap_height#,0);
2589 y1c=0; x1h=w-s;
2590 serif(1,cap_stem,90,cap_jut,cap_jut);
2591 x6=x1f; y5=y6=h; x5=x1; x2=x1a; y2=42/53h;
2592 penpos4(1.1cap_bar,theta1+45);
2593 penpos3(1.1cap_bar,theta1+45);
2594 x4l=s; y4=30/53h; numeric theta[]; theta1=angle(z5-z4l);
2595 z3l=z5; penstroke z3e--z4e; fill z4l..z4r..cycle;
2596 fill serif_edge1--z6{dir 110}..{dir 250}z5--z2--cycle;
2597 penlabels(1,2,3,4,5,6);
2598 endchar;
2599
2600 beginchar(hex"32",9u#,cap_height#,0);
2601 z4=(9/33w,14/53h); z5=(s+11/20cap_bar,0);
2602 z3=(w-s-.5c-7/16cap_curve,40/53h); z2=(15/33w,h);
2603 penpos2(cap_bar,90);
2604 penpos3(cap_curve,0);
2605 penpos4(1.1cap_bar,-45);
2606 penpos5(1.1cap_bar,0);
2607 x6=x5r; y6=y7=7/16cap_stem; y8=1/2cap_bar;
2608 x8e=w-s; x7=x8e;
2609 T_serif(8,cap_bar,3/5border_height,1);
2610 penpos6(7/8cap_stem,90);
2611 penpos7(7/8cap_stem,90);
2612 penstroke z6e--z7e; %fill z6r..z6l..cycle;
2613 fill T_edge8 reflectedabout(z6,z7);
2614 x9=w-s-c; y9=y10=0; x10=w-s; z11=z8d reflectedabout(z6,z7);
2615 unfill z11{down}..z9--z10--cycle;
2616 unfill z11{down}..z9--z10--cycle;
2617 penstroke z5e{up}..z4e..{up}z3e{up}..{left}z2e;
2618 z1=z2; ul_drop(1,cap_drop_round,15/33w-3c,1.4cap_drop_round,slab);
2619 fill ul_drop_edge1;
2620 penlabels(1,2,3,4,5,6,7,8,9,10,11,12);
2621 endchar;
2622
2623 beginchar(hex"33",9u#,cap_height#,0);
2624 x7=18/39w; y7=0; y4=y5=y44=cap_bar_height+c;
2625 x4=x6-3/2cap_stem; x5=x4-2u;
2626 x6=w-s-1/2cap_curve; y4-y6=y6-y7;
2627 x2=.5w; y2=h; x3=x6-.3cap_curve; y2-y3=y3-y4;
2628 x44=x2; z1=z2;
2629 penpos2(cap_bar,90);
2630 penpos3(cap_stem,0);
2631 penpos44(cap_bar,-90);
2632 penpos4(cap_bar,90);
2633 penpos5(cap_bar,90);
2634 penpos6(cap_curve,0);
2635 penpos7(cap_bar,-90);
2636 penstroke z2e{right}..{down}z3e{down}..{left}z44e;
2637 penstroke z5e--z4e{right}..tension.9..{down}z6e{down}..tension.9..{left}z7e;
2638 fill z5r..z5l..cycle;
2639 ul_drop(1,cap_drop_round,17/39w-s,1.1cap_drop_round,slab);
2640 fill ul_drop_edge1;
2641 x8e=s; y8=0;
2642 dl_drop(8,cap_drop_round,18/39w-s,1.3cap_drop_round,slab);
2643 fill dl_drop_edge8;
2644 penlabels(1,2,3,4,5,6,7,8,44);
2645 endchar;
2646
2647 beginchar(hex"34",9u#+c#,cap_height#,0);
2648 y1=y2=33/53h; y4c=0; x4h=w-s;
2649 serif(4,7/8cap_stem,90,cap_jut,cap_jut);
2650 x1=x4r; x2=x1-bar;
2651 x3=x4l; y3=28/53h;
2652 numeric theta[]; theta1=angle(z2-z3);
2653 fill z3{dir theta1}--z2{dir theta1}..{down}z1--reverse serif_edge4--z3&cycle;
2654 y5=y6=15/53h; x5=x4e; x6=s+cap_bar;
2655 penpos5(cap_bar,90); penpos6(cap_bar,90);
2656 penstroke z5e--z6e; fill z5r..z5l..cycle;
2657 y7=y6l; x7l=x6; z8=(6/36w, 21/53h);
2658 z9=(2/3w,h);
2659 penpos7(cap_bar,180); penpos8(cap_bar,150);
2660 penpos9(cap_stem,180);
2661 penstroke z7e{up}..z8e..{dir 70}z9e;
2662 penlabels(1,2,3,4,5,6,7,8,9,10,11,12);
2663 endchar;
2664
2665 beginchar(hex"35",9u#,cap_height#,0);
2666 x7=x4=18/39w; y7=0; y5=cap_bar_height+c; y4=y5+s;
2667 x8e=s; y8=0; x5=x8d;
2668 dl_drop(8,cap_drop_round,18/39w-s,1.3cap_drop_round,slab);
2669 x6=w-s-1/2cap_curve; y4-y6=y6-y7;
2670 penpos4(cap_bar,90);
2671 penpos5(cap_bar,90);
2672 penpos6(cap_curve,0);
2673 penpos7(cap_bar,-90);
2674 penstroke z5e..z4e{right}..tension.85..{down}z6e{down}..tension.85..{left}z7e;
2675 fill z5r..z5l..cycle;
2676 fill dl_drop_edge8;
2677 z3=z5; x2=x3; y2=h;
2678 penpos3(cap_bar,0); penpos2(cap_bar,0);
2679 penstroke z3e--z2e; fill z2l..tension 1.7..z2r..tension 1.7..cycle;
2680 y1r=h; x1=x2r; x13=x6; y13=h; 2(x12-x1)=x13-x12; y12=h-.6cap_stem;
2681 penpos1(7/8cap_stem,90); penpos13(1.1cap_bar,90); penpos12(3/4cap_stem,90);
2682 penstroke z1e..z12e..z13e; fill z13r..tension 1.7..z13l..tension 1.7..cycle;
2683 penlabels(1,2,3,4,5,6,7,8,12,13);
2684 endchar;
2685
2686 beginchar(hex"36",9u#+c#,cap_height#,0);
2687 penpos1(vair,-90);
2688 penpos2(o,-30);
2689 penpos3(cap_stem,0);
2690 penpos4(o,30);
2691 penpos5(vair,90);
2692 penpos6(o,150);
2693 penpos7(.9cap_stem,180);
2694 penpos8(o,210);
2695 penpos9(vair,270);
2696 penpos10(.7o,330);
2697 penpos11(hair,360);
2698 x1=.42w; x5=x9=.45w; y1=0; y5=h;
2699 y3=.5h; x3=w-1/2cap_stem-s; x7=9/20cap_stem+s;
2700 y2=0.1h-c; y4=y6=0.9h+1.2c; x8=x6=x7+13/32(x5-x7); x4=x10=x5+9.5/16(x3-x5); x2=x4-1/2c;
2701 y9=20/53h; y5-y7=y7-y9; y8=y9+.1h-c; y11=y7;
2702 x11l=x3l+c; y10=y8;
2703 penstroke z1e..z2e..z3e..z4e..z5e..z6e..{down}z7e{down}..z8e..z9e..z10e..z11e;
2704 z12 = z1;
2705 dl_drop(12,cap_drop_round,.45w-4c,1.1cap_drop_round,slab);
2706 fill dl_drop_edge12;
2707 z13 = (.5w,.5h);
2708 currentpicture := currentpicture rotatedaround(z13,180);
2709 penlabels(1,2,3,4,5,6,7,8,9,10,11,12);
2710 endchar;
2711
2712 beginchar(hex"37",9u#-c#,cap_height#,0);
2713 x4=w-s-1/2cap_bar; y4=h-1/2cap_bar;
2714 penpos4(cap_bar,0);
2715 y3=y2=h-7/16cap_stem; y1=h-7/8cap_stem+1/2cap_bar;
2716 x3=x4l; x1e=s;
2717 T_serif(1,cap_bar,3/5border_height,0);
2718 x2=x1e;
2719 penpos3(7/8cap_stem,90);
2720 penpos2(7/8cap_stem,90);
2721 penstroke z2e--z3e;
2722 fill T_edge1; z44=(x4,h); fill z4r{up}..{left}z44--z3r--z4l--cycle;
2723 x10=s+c; x11=s; y10=y11=h;
2724 unfill z1d{up}..z10--z11--cycle;
2725 unfill z1d{up}..z10--z11--cycle;
2726 x5r=x3; y5=h-7/8cap_stem;
2727 x6=14/30w; y6=1/3cap_curve;
2728 penpos5(cap_bar,0); penpos6(cap_curve,0);
2729 penstroke z4e{dir -105}..z5e..{dir -95}z6e; fill z6l..z6r..cycle;
2730 penlabels(1,2,3,4,5,6,10,11,12);
2731 endchar;
2732
2733 beginchar(hex"38",10u#-s#,cap_height#,0);
2734 x6=x4=x2=x8=1/2w; y6=0; y2=h;
2735 y5=11/53h; y7=13/53h; x5=w-s-1/2(1.9hair);
2736 y4=y8=28/53h; y3=42/53h; y1=40/53h; x3=2s+1/2(1.9cap_bar);
2737 x1=w-2s-1/2(1.9cap_bar); x7=w-x5;
2738 penpos6(cap_bar,-90);
2739 penpos5(2.5hair,0);
2740 penpos4(cap_curve,75);
2741 penpos3(2.5hair,0);
2742 penpos2(cap_bar,-90);
2743 penpos1(2.5hair,-180);
2744 penpos7(2.5hair,-180);
2745 penpos8(cap_bar,-270);
2746 penstroke z6e{right}..tension.9..z5e..tension.85..z4e..tension.85..z3e..tension.9..{right}z2e{right}..tension.9..z1e{down}..tension.9..z8e..tension.9..{down}z7e..tension.9..{right}z6e;
2747 penlabels(1,2,3,4,5,6,7,8);
2748 endchar;
2749
2750 beginchar(hex"39",9u#+c#,cap_height#,0);
2751 penpos1(vair,-90);
2752 penpos2(o,-30);
2753 penpos3(cap_stem,0);
2754 penpos4(o,30);
2755 penpos5(vair,90);
2756 penpos6(o,150);
2757 penpos7(.9cap_stem,180);
2758 penpos8(o,210);
2759 penpos9(vair,270);
2760 penpos10(.7o,330);
2761 penpos11(hair,360);
2762 x1=.42w; x5=x9=.45w; y1=0; y5=h;
2763 y3=.5h; x3=w-1/2cap_stem-s; x7=9/20cap_stem+s;
2764 y2=0.1h-c; y4=y6=0.9h+1.2c; x8=x6=x7+13/32(x5-x7); x4=x10=x5+9.5/16(x3-x5); x2=x4-1/2c;
2765 y9=20/53h; y5-y7=y7-y9; y8=y9+.1h-c; y11=y7;
2766 x11l=x3l+c; y10=y8;
2767 penstroke z1e..z2e..z3e..z4e..z5e..z6e..{down}z7e{down}..z8e..z9e..z10e..z11e;
2768 z12 = z1;
2769 dl_drop(12,cap_drop_round,.45w-4c,1.1cap_drop_round,slab);
2770 fill dl_drop_edge12;
2771 penlabels(1,2,3,4,5,6,7,8,9,10,11);
2772 endchar;
2773
2774 beginchar(oct"56",cap_stem#+2s#,cap_stem#,0);
2775 z1=(s,1/2cap_stem); z2=(w-s,1/2cap_stem);
2776 fill z1..z2..cycle;
2777 endchar;
2778
2779 beginchar(oct"54",cap_stem#+2s#+c#,cap_stem#,comma_depth#);
2780 z1=(s,1/2cap_stem); z2=(w-s,1/2cap_stem);
2781 z6=(.5w-.5c,0); x5=x6+1/2bar+.5c; y5=y6-1/2bar;
2782 x3=x6; y3=-d+c; x4=x3-bar*sind 45; y4=y3+bar*sind 45;
2783 z7=(.5w-.5c,h);
2784 fill z1..z7..z2{down}..{dir -135}z3..z4{dir 45}...{up}z5{up}..{left}z6{left}..z1&cycle;
2785 penlabels(1,2,3,4,5,6,7);
2786 endchar;
2787
2788 beginchar(hex"60",cap_stem#+2s#+c#,asc_height#,comma_depth#);
2789 z1=(s,1/2cap_stem); z2=(w-s,1/2cap_stem);
2790 z6=(.5w-.5c,0); x5=x6+1/2bar+.5c; y5=y6-1/2bar;
2791 x3=x6; y3=-d+c; x4=x3-bar*sind 45; y4=y3+bar*sind 45;
2792 z7=(.5w-.5c,cap_stem); z8=(.5w,.5h-1/2d+1/2c);
2793 fill z1..z7..z2{down}..{dir -135}z3..z4{dir 45}...{up}z5{up}..{left}z6{left}..z1&cycle rotatedaround(z8,180);
2794 penlabels(1,2,3,4,5,6,7);
2795 endchar;
2796
2797 beginchar(oct"41", cap_stem#+2s#,cap_height#,0); "Exclamation mark";
2798 z1=(s,1/2cap_stem); z2=(w-s,1/2cap_stem);
2799 fill z1..z2..cycle;
2800 x3=.5w-1/2cap_bar; x4=.5w+1/2cap_bar; y3=y4=3/2cap_stem;
2801 x6=x1; x5=x2; y5=y6=h;
2802 fill z6--z3..z4--z5{up}..z6&cycle;
2803 endchar;
2804
2805 beginchar(hex"22",2cap_stem#+3s#+2c#,cap_height#,0);
2806 z1=(s,h-1/2cap_stem); z2=(x1+cap_stem+c,h-1/2cap_stem);
2807 z6=(s+.5(x2-x1)-.5c,h-cap_stem); x5=x6+1/2bar+.5c; y5=y6-1/2bar;
2808 x3=x6; y3=h-cap_stem-comma_depth+c; x4=x3-bar*sind 45; y4=y3+bar*sind 45;
2809 z7=(s+1/2cap_stem-.5c,h);
2810 fill z1..z7..z2{down}..{dir -135}z3..z4{dir 45}...{up}z5{up}..{left}z6{left}..z1&cycle;
2811 fill z1..z7..z2{down}..{dir -135}z3..z4{dir 45}...{up}z5{up}..{left}z6{left}..z1&cycle shifted(cap_stem+3c,0);
2812 penlabels(1,2,3,4,5,6,7);
2813 endchar;
2814
2815 beginchar(hex"5C",2cap_stem#+3s#+2c#,cap_height#,comma_depth#);
2816 z1=(s,1/2cap_stem); z2=(x1+cap_stem+c,1/2cap_stem);
2817 z6=(s+.5(x2-x1)-.5c,0); x5=x6+1/2bar+.5c; y5=y6-1/2bar;
2818 x3=x6; y3=-d+c; x4=x3-bar*sind 45; y4=y3+bar*sind 45;
2819 z7=(s+1/2cap_stem-.5c,cap_stem); z8=(.5w,.5h-1/2d+1/2c);
2820 fill z1..z7..z2{down}..{dir -135}z3..z4{dir 45}...{up}z5{up}..{left}z6{left}..z1&cycle;
2821 fill z1..z7..z2{down}..{dir -135}z3..z4{dir 45}...{up}z5{up}..{left}z6{left}..z1&cycle shifted(cap_stem+3c,0);
2822 currentpicture := currentpicture rotatedaround(z8,180);
2823 penlabels(1,2,3,4,5,6,7);
2824 endchar;
2825
2826 beginchar(hex"7b",10u#-1.5c#,x_height#,0); "En dash";
2827 z1=(s+1/2bar,bar_height); z2=(w-s-1/2bar,bar_height);
2828 penpos1(bar,90); penpos2(bar,90);
2829 fill z1l{left}..{right}z1r--z2r{right}..{left}z2l--z1l&cycle;
2830 penlabels(1,2);
2831 endchar;
2832
2833 beginchar(hex"3D",10u#+1.5c#,x_height#,0);
2834 z1=(s+1/2bar,bar_height-3c); z2=(w-s-1/2bar,bar_height-3c);
2835 penpos1(bar,90); penpos2(bar,90);
2836 fill z1l{left}..{right}z1r--z2r{right}..{left}z2l--z1l&cycle;
2837 z3=(s+1/2bar,bar_height+3c); z4=(w-s-1/2bar,bar_height+3c);
2838 penpos3(bar,90); penpos4(bar,90);
2839 fill z3l{left}..{right}z3r--z4r{right}..{left}z4l--z3l&cycle;
2840 penlabels(1,2,3,4);
2841 endchar;
2842
2843 beginchar(hex"23",13u#,asc_height#,body_depth#);
2844 z1=(s+1/2bar,bar_height-5c); z2=(w-s-1/2bar,bar_height-5c);
2845 penpos1(1.5bar,90); penpos2(1.5bar,90);
2846 fill z1l{left}..{right}z1r--z2r{right}..{left}z2l--z1l&cycle;
2847 z3=(s+1/2bar,bar_height+5c); z4=(w-s-1/2bar,bar_height+5c);
2848 penpos3(1.5bar,90); penpos4(1.5bar,90);
2849 fill z3l{left}..{right}z3r--z4r{right}..{left}z4l--z3l&cycle;
2850 z5=(.5w-5c,bar_height); z6=(.5w+5c,bar_height);
2851 z7=z5+whatever*dir 76; y7=h; z8=whatever[z5,z7]; y8=-d;
2852 penpos7(1.5bar,0); penpos8(1.5bar,0);
2853 fill z7l{up}..{down}z7r--z8r{down}..{up}z8l--z7l&cycle;
2854 z9=z6+whatever*dir 76; y9=h; z10=whatever[z6,z9]; y10=-d;
2855 penpos9(1.5bar,0); penpos10(1.5bar,0);
2856 fill z9l{up}..{down}z9r--z10r{down}..{up}z10l--z9l&cycle;
2857 penlabels(1,2,3,4,5,6,7,8,9,10);
2858 endchar;
2859
2860 beginchar(hex"7c",14u#,x_height#,0); "Em dash";
2861 z1=(s+1/2bar,bar_height); z2=(w-s-1/2bar,bar_height);
2862 penpos1(bar,90); penpos2(bar,90);
2863 fill z1l{left}..{right}z1r--z2r{right}..{left}z2l--z1l&cycle;
2864 penlabels(1,2);
2865 endchar;
2866
2867 beginchar(oct"55",2cap_jut#+cap_stem#+2s#,x_height#,0); "hyphen";
2868 x1=s+.9cap_bar; x2=w-s-.9cap_bar;
2869 y1l=y2l=17/33h;
2870 penpos1(1.8bar,90); penpos2(1.8bar,90);
2871 penstroke z1e--z2e;
2872 fill z1r..z1l..cycle; fill z2r..z2l..cycle;
2873 penlabels(1,2);
2874 endchar;
2875
2876 beginchar(hex"5F",1.1stem#+2s#,x_height#+2.1stem#,0);
2877 z1=(.5w,h); z2=(.5w,h-1.1stem);
2878 fill z1..z2..cycle;
2879 penlabels(1,2);
2880 endchar;
2881
2882 beginchar(hex"7E",7u#,body_height#,0);
2883 pickup pencircle xscaled .6pt yscaled .2pt rotated 55;
2884 z4=(w-s-c,h-s); x1=s+c; y1=y4-1/2cap_stem;
2885 y2-y1=y4-y3=3(y4-y1); z2-z1=z4-z3=whatever * dir 55;
2886 draw z1..controls z2 and z3..z4;
2887 penlabels(1,2,3,4);
2888 endchar;
2889
2890 beginchar(hex"3C",7u#-2c#,x_height#,0); "looks like <<";
2891 x2l=x3l=s+1/2bar; y2l=.5h+1/2bar; y3l=.5h-1/2bar;
2892 x1l=x4l=.5w; y1l=h-1/2bar; y4l=1/2bar;
2893 penpos1(bar,0); penpos2(stem,0);
2894 penpos3(stem,0); penpos4(bar,0);
2895 numeric theta[];
2896 theta1=angle(z2l-z1l); theta2=angle(z4l-z3l);
2897 theta3=theta1+180; theta4=theta2+180;
2898 fill z1r{up}..{dir theta1}z1l--z2l{dir theta1}..{dir theta2}z3l--z4l{dir theta2}..{up}z4r--z3r{dir theta4}..{dir theta3}z2r--z1r&cycle;
2899 x5r=x8r=w-s; y5r=h-2bar; y8r=2bar; x6r=x7r=w-s-.6stem;
2900 y6r=y2l; y7r=y3l;
2901 penpos5(bar,0); penpos6(.8stem,0);
2902 penpos7(.8stem,0); penpos8(bar,0);
2903 theta5=angle(z6r-z5r); theta6=angle(z8r-z7r);
2904 theta7=theta5+180; theta8=theta6+180;
2905 fill z5r{up}..{dir theta5}z5l--z6l{dir theta5}..{dir theta6}z7l--z8l{dir theta6}..{up}z8r--z7r{dir theta8}..{dir theta7}z6r--z5r&cycle;
2906 penlabels(1,2,3,4,5,6,7,8);
2907 endchar;
2908
2909 beginchar(hex"3E",7u#-2c#,x_height#,0);
2910 x2l=x3l=s+1/2bar; y2l=.5h+1/2bar; y3l=.5h-1/2bar;
2911 x1l=x4l=.5w; y1l=h-1/2bar; y4l=1/2bar;
2912 penpos1(bar,0); penpos2(stem,0);
2913 penpos3(stem,0); penpos4(bar,0);
2914 numeric theta[];
2915 theta1=angle(z2l-z1l); theta2=angle(z4l-z3l);
2916 theta3=theta1+180; theta4=theta2+180;
2917 fill z1r{up}..{dir theta1}z1l--z2l{dir theta1}..{dir theta2}z3l--z4l{dir theta2}..{up}z4r--z3r{dir theta4}..{dir theta3}z2r--z1r&cycle;
2918 x5r=x8r=w-s; y5r=h-2bar; y8r=2bar; x6r=x7r=w-s-.6stem;
2919 y6r=y2l; y7r=y3l;
2920 penpos5(bar,0); penpos6(.8stem,0);
2921 penpos7(.8stem,0); penpos8(bar,0);
2922 theta5=angle(z6r-z5r); theta6=angle(z8r-z7r);
2923 theta7=theta5+180; theta8=theta6+180;
2924 z10=(.5w,.5h);
2925 fill z5r{up}..{dir theta5}z5l--z6l{dir theta5}..{dir theta6}z7l--z8l{dir theta6}..{up}z8r--z7r{dir theta8}..{dir theta7}z6r--z5r&cycle;
2926 currentpicture := currentpicture rotatedaround(z10,180);
2927 penlabels(1,2,3,4,5,6,7,8);
2928 endchar;
2929
2930 beginchar(hex"3B",cap_stem#+2s#+c#,x_height#+c#,comma_depth#);
2931 z1=(s,1/2cap_stem); z2=(w-s,1/2cap_stem);
2932 z6=(.5w-.5c,0); x5=x6+1/2bar+.5c; y5=y6-1/2bar;
2933 x3=x6; y3=-d+3/2c; x4=x3-bar*sind 45; y4=y3+bar*sind 45;
2934 z7=(.5w-.5c,cap_stem);
2935 fill z1..z7..z2{down}..{dir -135}z3..z4{dir 45}...{up}z5{up}..{left}z6{left}..z1&cycle;
2936 z8=(s,h-1/2cap_stem); z9=(w-s,h-1/2cap_stem);
2937 fill z8..z9..cycle;
2938 penlabels(1,2,3,4,5,6,7,8,9);
2939 endchar;
2940
2941 beginchar(hex"3A",cap_stem#+2s#+c#,x_height#+c#,comma_depth#);
2942 z1=(s,h-1/2cap_stem); z2=(w-s,h-1/2cap_stem);
2943 fill z1..z2..cycle;
2944 penlabels(1,2,3,4);
2945 z3=(s,1/2cap_stem); z4=(w-s,1/2cap_stem);
2946 fill z3..z4..cycle;
2947 penlabels(1,2,3,4);
2948 endchar;
2949
2950 beginchar(hex"2B",2cap_jut#+cap_stem#+2s#,x_height#,0);
2951 x1=s+.9cap_bar; x2=w-s-.9cap_bar;
2952 y1l=y2l=17/33h;
2953 penpos1(1.8bar,90); penpos2(1.8bar,90);
2954 penstroke z1e--z2e;
2955 fill z1r..z1l..cycle; fill z2r..z2l..cycle;
2956 x3=x4=.5w; y3=y2+1/2(x2-x1); y4=y2-1/2(x2-x1);
2957 penpos3(1.8bar,0); penpos4(1.8bar,0);
2958 penstroke z3e--z4e;
2959 fill z3r..z3l..cycle; fill z4r..z4l..cycle;
2960 penlabels(1,2,3,4);
2961 endchar;
2962
2963 beginchar(hex"2F",2s#+bar#,body_height#,body_depth#);
2964 z1=(.5w,h-.5bar); z2=(.5w,-d+.5bar);
2965 %pickup pencircle xscaled bar yscaled bar;
2966 penpos1(bar,0); penpos2(bar,0);
2967 penstroke z1e--z2e; fill z1r..z1l..cycle;
2968 fill z2r..z2l..cycle;
2969 penlabels(1,2);
2970 endchar;
2971
2972 beginchar(hex"27",cap_stem#+2s#+c#,x_height#+2.1stem#,0);
2973 z1=(s,h-1/2cap_stem); z2=(w-s,h-1/2cap_stem);
2974 z6=(.5w-.5c,h-cap_stem); x5=x6+1/2bar+.5c; y5=y6-1/2bar;
2975 x3=x6; y3=h-stem-comma_depth+c; x4=x3-bar*sind 45; y4=y3+bar*sind 45;
2976 z7=(.5w-.5c,h);
2977 fill z1..z7..z2{down}..{dir -135}z3..z4{dir 45}...{up}z5{up}..{left}z6{left}..z1&cycle;
2978 penlabels(1,2,3,4,5,6,7);
2979 endchar;
2980
2981 beginchar(hex"28",5u#,body_height#,body_depth#);
2982 x1=x3=w-s-bar*sind 45; y1=h-bar*sind 30; y3=-d+bar*sind 30;
2983 x2=s+1/2stem; y2=-d+1/2(h+d);
2984 penpos1(bar,150); penpos2(curve,180);
2985 penpos3(bar,210);
2986 penstroke z1e..z2e..z3e;
2987 fill z1r..z1l..cycle; fill z3r..z3l..cycle;
2988 penlabels(1,2,3);
2989 endchar;
2990
2991 beginchar(hex"29",5u#,body_height#,body_depth#);
2992 x1=x3=w-s-bar*sind 45; y1=h-bar*sind 30; y3=-d+bar*sind 30;
2993 x2=s+1/2stem; y2=-d+1/2(h+d);
2994 penpos1(bar,150); penpos2(curve,180);
2995 penpos3(bar,210);
2996 penstroke z1e..z2e..z3e;
2997 fill z1r..z1l..cycle; fill z3r..z3l..cycle;
2998 z4=(.5w,-d+1/2(h+d));
2999 currentpicture := currentpicture rotatedaround(z4,180);
3000 penlabels(1,2,3);
3001 endchar;
3002
3003 beginchar(hex"86",5u#,body_height#,body_depth#);
3004 x1=x3=w-s-bar*sind 45; y1=h-bar*sind 30; y3=-d+bar*sind 30;
3005 x2=s+1/2bar; y2=-d+1/2(h+d);
3006 penpos1(bar,0); penpos2(bar,0);
3007 penpos3(bar,0);
3008 penstroke z1e--z2e--z3e;
3009 fill z1r..z1l..cycle; fill z3r..z3l..cycle;
3010 penlabels(1,2,3);
3011 endchar;
3012
3013 beginchar(hex"87",5u#,body_height#,body_depth#);
3014 x1=x3=w-s-bar*sind 45; y1=h-bar*sind 30; y3=-d+bar*sind 30;
3015 x2=s+1/2bar; y2=-d+1/2(h+d);
3016 penpos1(bar,0); penpos2(bar,0);
3017 penpos3(bar,0);
3018 penstroke z1e--z2e--z3e;
3019 fill z1r..z1l..cycle; fill z3r..z3l..cycle;
3020 z4=(.5w,-d+1/2(h+d));
3021 currentpicture := currentpicture rotatedaround(z4,180);
3022 penlabels(1,2,3);
3023 endchar;
3024
3025 beginchar(hex"5B",2s#+3cap_bar#,body_height#,body_depth#);
3026 z1=(w-s-1/2cap_bar,h-1/2bar); z2=(s+1/2cap_bar,h-1/2cap_bar);
3027 z3=(x2,h); z4=(x3,-d); z5=(x2,-d+1/2bar);
3028 z6=(x1,y5); penpos1(bar,90); penpos2(bar,90);
3029 penpos3(bar,0); penpos4(bar,0);
3030 penpos5(bar,90); penpos6(bar,90);
3031 penstroke z1e--z2e; penstroke z3e--z4e; penstroke z5e--z6e;
3032 fill z1r..z1l..cycle; fill z6r..z6l..cycle;
3033 penlabels(1,2,3,4,5,6);
3034 endchar;
3035
3036 beginchar(hex"5D",2s#+3cap_bar#,body_height#,body_depth#);
3037 z1=(w-s-1/2cap_bar,h-1/2bar); z2=(s+1/2cap_bar,h-1/2cap_bar);
3038 z3=(x1,h); z4=(x3,-d); z5=(x2,-d+1/2bar);
3039 z6=(x1,y5); penpos1(bar,90); penpos2(bar,90);
3040 penpos3(bar,0); penpos4(bar,0);
3041 penpos5(bar,90); penpos6(bar,90);
3042 penstroke z1e--z2e; penstroke z3e--z4e; penstroke z5e--z6e;
3043 fill z2r..z2l..cycle; fill z5r..z5l..cycle;
3044 penlabels(1,2,3,4,5,6);
3045 endchar;
3046
3047 beginchar(hex"B9",16u#,cap_height#,0);
3048 x1=x2=cap_jut+1/2cap_bar+s+cap_stem;
3049 x3=w-x1-1/2cap_stem; y1c=h; y4=y5=0;
3050 x4=x3r; x5=x3l; y2=12/53h; y3=h-y2;
3051 x8=x2-stem; y8=0; z9=z8;
3052 dl_drop(9,cap_drop_round,x8-s,1.3drop_round,cap_bar);
3053 fill dl_drop_edge9; penpos8(bar,-90);
3054 serif(1,cap_bar,-90,cap_jut,1.3cap_jut);
3055 penpos2(bar,0); penpos3(bar,0);
3056 penstroke z2e{down}..{left}z8e;
3057 fill z2l--z2r--reverse serif_edge1--cycle;
3058 numeric theta[]; y7=y1h; x7=x1h-cap_stem;
3059 theta1=angle(z5-z7); x10=x3+stem; y10=h; z11=z10;
3060 penpos10(bar,-90); penstroke z3e{up}..{right}z10e;
3061 ur_drop(11,cap_drop_round,x8-s,1.1drop_round,cap_bar);
3062 fill ur_drop_edge11;
3063 z6=z3l+whatever*dir -90=z1h+whatever*dir theta1;
3064 fill z6--z1h--z7--z5{down}..{up}z4--z3r--z3l--cycle;
3065 unfill z1b--z1l--z1a--cycle;
3066 y12=y13=2cap_bar; x12=x4+2cap_bar+s; x13=w-2s;
3067 penpos12(.4stem,90); penpos13(.4stem,90);
3068 penstroke z12e--z13e; y16=y11d-5cap_bar;
3069 x13-x14=x14-x12; x16=x14; y14=y13+5cap_bar;
3070 x17=w-s-1/4stem; x17-x16=x16-x15; y16-y15=y15-y14;
3071 y17=y15; penpos17(.6stem,0); penpos16(bar,90);
3072 penpos15(.6stem,180); penpos14(bar,270);
3073 penstroke z17e{up}..{left}z16e{left}..{down}z15e{down}..{right}z14e{right}..{up}z17e;
3074 fill z12l..tension1.2..z12r..tension1.2..cycle;
3075 fill z13l..tension1.2..z13r..tension1.2..cycle;
3076 penlabels(range 1 thru 17);
3077 endchar;
3078
3079 beginchar(hex"24",9u#-s#,body_height#,body_height#-cap_height#);
3080 x6=x7=1/2w-c; y6=y7=0;
3081 dl_drop(7,cap_drop_round,x6-s,1.35cap_drop_round,cap_bar);
3082 y5=10/53cap_height; x5=w-s-1/2(1.9hair);
3083 y4=1/2cap_height; x4=19/38w; y3=42/53cap_height; x3=s+1/2(1.9cap_bar);
3084 x2=.5w+c; y2=cap_height; z1=z2;
3085 penpos6(cap_bar,-90); penpos5(1.9hair,0);
3086 penpos4(1.1cap_curve,80); penpos3(1.9hair,0);
3087 penpos2(cap_bar,-90);
3088 penstroke z6e{right}..z5e..tension.9..z4e..tension.9..z3e..{right}z2e;
3089 fill dl_drop_edge7;
3090 ur_drop(1,cap_drop_round,w-s-x2,1.35cap_drop_round,cap_bar);
3091 fill ur_drop_edge1;
3092 z8=(.5w,h); z9=(.5w,-d);
3093 penpos8(cap_bar,0); penpos9(cap_bar,0);
3094 penstroke z8e--z9e;
3095 fill z9r..z9l..cycle; fill z8r..z8l..cycle;
3096 penlabels(1,2,3,4,5,6,7);
3097 endchar;
3098
3099 beginchar(hex"25",12u#,asc_height#,0);
3100 penpos1(vair,90); penpos2(.6curve,0);
3101 penpos3(vair,-90); penpos4(.6curve,-180);
3102 y1=.55h; y3=h; y3-y4=y4-y1; y2=y4; x2=1/4curve+s; x4=5/2curve+s;
3103 x4-x1=x1-x2; x3=x1;
3104 penstroke z1e{left}..tension.9..{up}z2e{up}..tension1.2..{right}z3e..tension.9..{down}z4e{down}..tension1.2..{left}z1e..cycle;
3105 penpos5(vair,90); penpos6(.6curve,0);
3106 penpos7(vair,-90); penpos8(.6curve,-180);
3107 y5=0; y7=.45h; y7-y8=y8-y5; y6=y8; x8=w-1/4curve-s; x6=w-5/2curve-s;
3108 x8-x5=x5-x6; x7=x5;
3109 penstroke z5e{left}..tension.9..{up}z6e{up}..tension1.2..{right}z7e..tension.9..{down}z8e{down}..tension1.2..{left}z5e..cycle;
3110 x9l=x7; y9=h; x10r=x1; y10=0;
3111 penpos9(1.2bar,0); penpos10(1.2bar,0);
3112 penstroke z9e--z10e;
3113 penlabels(1,2,3,4,5,6,7,8,9,10);
3114 endchar;
3115
3116 beginchar(hex"26",14u#,cap_height#,0);
3117 x4=x8=x3+.5curve; y6=0; y2=h; x2=x3+1.3cap_curve;
3118 y7=13/53h; y5=9/53h; x5=x7+3.5cap_curve; x6=x7+1.8cap_curve;
3119 y4=y8=30/53h; y1=44/53h; y3=42/53h; x3=4s+curve;
3120 x1=x3+2.1cap_curve; x7=s+1/2cap_curve;
3121 x10=w-s; y10=9/53h; x10-x9=x9-x5; y9=1/5cap_curve;
3122 th:=angle(z4-z5)+5; th1:=th-11; x11h=w-s-c; y11h=y1-4s;
3123 A_serif(11,cap_bar,-110,cap_jut,cap_jut); z12l=z11a;
3124 penpos6(cap_bar,-90); penpos5(cap_stem,45);
3125 penpos4(cap_stem,45); penpos3(2.5hair,0);
3126 penpos2(cap_bar,-90); penpos1(2hair,-180);
3127 penpos7(cap_curve,-180); penpos8(cap_bar,-250);
3128 penpos9(.5cap_curve,70); penpos10(cap_bar,150);
3129 penpos12(cap_bar,0);
3130 penstroke z10e..z9e..z5e{dir th}..{dir th1}z4e..tension.9..{up}z3e{up}..tension1..z2e{right}..tension.9..z1e{down}..tension.9..z8e..tension.9..{down}z7e..tension.9..{right}z6e{dir 8}..{dir 70}z12e;
3131 fill z12l--z12r..reverse A_serif_edge11--cycle;
3132 fill z10l..tension1.3..z10r..tension1.3..cycle;
3133 penlabels(range 1 thru 12);
3134 endchar;
3135
3136 beginchar(hex"40",14u#,x_height#+2curve#,2curve#);
3137 a_width:=9u+c-2s;
3138 x1=2s+a_width-s-3/4stem+1.5curve; y1=x_height; y2=7/33x_height; z2=z1+whatever*dir -104;
3139 x3=x2+1/2stem+c; y3=2epsilon; x4=3s+a_width+1.5curve; y4=15/33x_height;
3140 penpos1(stem,180); penpos2(stem,180);
3141 penpos3(1.2vair,270); penpos4(bar,360);
3142 x5=x1-1.3stem; y5=x_height; z7=z5+whatever*dir -104; y7=-2epsilon;
3143 x6=s+1/2curve+c+1.3curve; y6=.54x_height; y8=.46x_height; z8l=whatever[z1r,z2r];
3144 x13=x5; y13=h-1/2bar; x14=s+1/2bar; y14=y6; y15=-d+1/2bar; x15=x7;
3145 x16=x4; y16=-d+3bar; penpos7(vair,270); penpos16(bar,270);
3146 penpos13(bar,90); penpos14(bar,180); penpos15(bar,270);
3147 penpos8(2bar,0); penpos5(vair,90); penpos6(curve,180);
3148 penstroke z1e--z2e{down}..{right}z3e{right}..tension1.2..{dir 80}z4e..z13e{left}..z14e..{right}z15e..z16e;
3149 penstroke z5e{left}..tension1.1..{dir 256}z6e{dir 256}..tension.9..{right}z7e..tension1.3..{dir 76}z8e{dir 76}..tension1..{dir 166}z5e..cycle;
3150 z9=whatever[z1r,z2r]; y9=y12=x_height-c; z10=(x1r+c,x_height); z11=(x1l-c,x_height);
3151 z12=whatever[z1l,z2l];
3152 unfill z9{up}..z10--z1r--z9..cycle;
3153 unfill z11--z1l--z12{up}..z11..cycle;
3154 fill z16r..z16l..cycle;
3155 penlabels(range 1 thru 66);
3156 endchar;
3157
3158 beginchar(hex"12",2cap_stem#+s#,body_height#,0);
3159 y1=h-.45cap_stem*cosd 45; x1=s+.45cap_stem*cosd 45;
3160 x2=w-s+cap_bar*cosd 45; z2=z1+whatever*dir -45;
3161 penpos1(.9cap_stem,45); penpos2(cap_bar,45);
3162 penstroke z1e--z2e;
3163 fill z1r..tension1.2..z1l..tension1.2..cycle;
3164 fill z2r..tension1.2..z2l..tension1.2..cycle;
3165 penlabels(range 1 thru 5);
3166 endchar;
3167
3168 beginchar(hex"13",2cap_stem#+s#,body_height#,0);
3169 y1=h-.45cap_stem*cosd 45; x1=w-s-.45cap_stem*cosd 45;
3170 x2=s-cap_bar*cosd 45; z2=z1+whatever*dir -135;
3171 penpos1(.9cap_stem,135); penpos2(cap_bar,135);
3172 penstroke z1e--z2e;
3173 fill z1r..tension1.2..z1l..tension1.2..cycle;
3174 fill z2r..tension1.2..z2l..tension1.2..cycle;
3175 penlabels(range 1 thru 5);
3176 endchar;
3177
3178 beginchar(hex"3F",7u#+s#,cap_height#,0);
3179 x1=s+4/5cap_stem; y1=1/2cap_stem;
3180 penpos1(cap_stem,0);
3181 fill z1r..z1l..cycle;
3182 y2=cap_stem+cap_bar; x2=x1;
3183 z3l=z2l+whatever*dir 96; y3l=25/53h;
3184 penpos2(cap_bar,0); penpos3(cap_bar,0);
3185 penstroke z2e--z3e;
3186 z4l=z3l; penpos4(cap_bar,0);
3187 y5=y4-2bar; x5=x4+3cap_bar; penpos7(cap_bar,-90);
3188 x6=w-s-1/2cap_curve; y6=37/51h; x7=12/31w; y7=h;
3189 penpos5(cap_bar,90); penpos6(cap_curve,180); z8=z7;
3190 penstroke z4e{dir -69}..z5e{dir 10}..tension1..{up}z6e{up}..tension.9..{left}z7e;
3191 ul_drop(8,.8cap_drop_round,x7-s,cap_curve,cap_bar);
3192 fill ul_drop_edge8;.
3193 fill z3r..tension1.2..z3l..tension1.2..cycle;
3194 penlabels(1,2,3,4,5,6,7,8);
3195 endchar;
3196
3197 beginchar(hex"10",2jut#+stem#+2s#,x_height#,0);
3198 x1g=x2g=s; y1c=x_height; y2c=0;
3199 serif(1,stem,-90,jut,0);
3200 serif(2,stem,90,jut,jut);
3201 fill serif_edge2--reverse serif_edge1--cycle;
3202 penlabels(1,2,3,4);
3203 endchar;
3204
3205 beginchar(hex"11",5u#,x_height#,desc_depth#);
3206 x1h=w-s; y1c=x_height; y2=0; x2=x1;
3207 serif(1,stem,-90,1.5jut,0);
3208 penpos2(stem,0);
3209 fill z2l--z2r--reverse serif_edge1--cycle;
3210 y5=-1/4desc_depth; x5r=x2r;
3211 y6=-d+1/2bar; x6=x2l-.35stem;
3212 penpos5(.97stem,0);
3213 penpos6(bar,-90);
3214 penstroke z2e--z5e{down}..{left}z6e;
3215 x7e=s; y7=-d+1/2bar;
3216 dl_drop(7,stem,x6-x7e,drop_round,bar);
3217 fill dl_drop_edge7; fill z7e..z7c..cycle;
3218 penlabels(range 1 thru 7);
3219 endchar;
3220
3221 beginchar(hex"2A",3cap_stem#+3s#,body_height#,0);
3222 x1=x2=x3=x4=.5w; y1=h-1/2stem; y2=y1-cap_stem; y3=y2-bar; y4=y3-bar;
3223 penpos1(stem,0); penpos2(cap_bar,0); penpos3(2cap_bar,0);
3224 fill z1l{down}..z2l{down}..z3l--z4--z3r..{up}z2r..{up}z1r{up}..{down}z1l..cycle;
3225 fill z1l{down}..z2l{down}..z3l--z4--z3r..{up}z2r..{up}z1r{up}..{down}z1l..cycle rotatedaround(z4,60);
3226 fill z1l{down}..z2l{down}..z3l--z4--z3r..{up}z2r..{up}z1r{up}..{down}z1l..cycle rotatedaround(z4,120);
3227 fill z1l{down}..z2l{down}..z3l--z4--z3r..{up}z2r..{up}z1r{up}..{down}z1l..cycle rotatedaround(z4,180);
3228 fill z1l{down}..z2l{down}..z3l--z4--z3r..{up}z2r..{up}z1r{up}..{down}z1l..cycle rotatedaround(z4,240);
3229 fill z1l{down}..z2l{down}..z3l--z4--z3r..{up}z2r..{up}z1r{up}..{down}z1l..cycle rotatedaround(z4,300);
3230 penlabels(range 1 thru 12);
3231 endchar;
3232
3233 beginchar(hex"0B",4jut#+2stem#+c#+3s#,asc_height#,0);
3234 w:=w+1;
3235 numeric dist; dist := 2jut+2stem-3c;
3236 x1g=x2g=s+dist; y1c=x_height; y2c=0;
3237 serif(1,stem,-90,jut,jut);
3238 serif(2,stem,90,jut,jut);
3239 fill serif_edge2--reverse serif_edge1--cycle;
3240 x3=x1; y3=x_height; x4r=x1l-.1stem; y4=x_height+1/2(asc_height-x_height);
3241 x5l=x4l-.05stem; y5=y4+1.5bar; x6=round (x1r+.2stem); y6=h-1/2bar;
3242 penpos3(stem,180);
3243 penpos4(.75curve,180);
3244 penpos5(.6curve,180);
3245 penpos6(bar,90);
3246 penstroke z3e{dir 95}...{up}z4e..z5e..{right}z6e;
3247 y6=y7; x7e=w-s;
3248 ur_drop(7,stem,x7e-x6,drop_round,bar);
3249 fill ur_drop_edge7; fill z7e..z7c..cycle;
3250 x11g=x12g=s; y11c=x_height; y12c=0;
3251 serif(11,stem,-90,jut,jut);
3252 serif(12,stem,90,jut,jut);
3253 fill serif_edge12--reverse serif_edge11--cycle;
3254 x13=x11; y13=x_height; x14l=x13l; y14=x_height+1/2(asc_height-x_height);
3255 x15l=x14l; y15=y14+1.5bar; x16=x11r+.8stem; y16=h-1/2bar;
3256 x17r=x5l; y17=y5;
3257 penpos13(stem,180);
3258 penpos14(.75curve,180);
3259 penpos15(.6curve,180);
3260 penpos16(bar,90);
3261 penpos17(bar,0);
3262 penstroke z13e{dir 95}...{up}z14e..z15e..{right}z16e{right}..{down}z17e;
3263 fill z11d--z1c--z1b--z11e--cycle;
3264 penlabels(1,2,3,4,5,6,7,11,12,13,14,15,16,17);
3265 endchar;
3266
3267 beginchar(hex"5E",6u#,body_height#,0);
3268 x1=s+.45cap_bar*cosd 45; x2=w/2; y2=h-bar;
3269 z1=z2+whatever*dir -135; x3=w-x1; z3=z2+whatever*dir -45;
3270 penpos1(bar,135); penpos2(2bar,90); penpos3(bar,45);
3271 penstroke z1e--z2e--z3e;
3272 fill z1r..z1l..cycle; fill z3r..z3l..cycle;
3273 penlabels(1,2,3);
3274 endchar;
3275
3276 beginchar(hex"16",6u#,body_height#,0);
3277 x1=s; x2=w-x1; y1=y2=h-4bar;
3278 penpos1(.8bar,90); penpos2(.8bar,90);
3279 penstroke z1e--z2e;
3280 fill z1r..z1l..cycle; fill z2r..z2l..cycle;
3281 penlabels(1,2);
3282 endchar;
3283
3284 beginchar(hex"7F",2stem#+4s#,x_height#+2.1stem#,0);
3285 z1=(s+.5stem,h); z2=(s+.5stem,h-stem);
3286 fill z1..z2..cycle;
3287 z3=(w-s-.5stem,h); z4=(w-s-.5stem,h-stem);
3288 fill z3..z4..cycle;
3289 penlabels(1,2,3,4);
3290 endchar;
3291
3292 ligtable CYR_A: "A":
3293 CYR_O kern -k#,
3294 CYR_ES kern -k#,
3295 CYR_TE kern -kk#,
3296 "T" kern -kk#,
3297 CYR_U kern -kk#,
3298 CYR_EF kern -k#,
3299 CYR_CHE kern -kk#,
3300 CYR_HARD_SIGN kern -k#,
3301 CYR_te kern -k#,
3302 "t" kern -k#,
3303 CYR_u kern -kk#,
3304 CYR_ef kern -k#,
3305 CYR_che kern -kk#,
3306 "W" kern -kkk#,
3307 "V" kern -kkk#,
3308 "Y" kern -kkk#,
3309 "y" kern -kk#,
3310 "w" kern -kk#,
3311 "v" kern -kk#;
3312
3313 ligtable CYR_GHE: CYR_TE: "T":
3314 CYR_A kern -kk#,
3315 "A" kern -kk#,
3316 CYR_DE kern -k#,
3317 CYR_EL kern -kk#,
3318 CYR_a kern -kk#,
3319 "a" kern -kk#,
3320 CYR_de kern -k#,
3321 CYR_el kern -kk#,
3322 CYR_o kern -k#,
3323 CYR_es kern -k#;
3324
3325 ligtable CYR_O: CYR_E: CYR_YU:
3326 CYR_U kern -k#,
3327 CYR_ha kern -k#,
3328 "X" kern -k#,
3329 CYR_HA kern -k#;
3330
3331 ligtable CYR_ER: "P":
3332 CYR_A kern -kk#,
3333 CYR_a kern -kk#,
3334 CYR_el kern -k#;
3335
3336 ligtable CYR_U:
3337 CYR_A kern -kkk#,
3338 "A" kern -kkk#,
3339 CYR_a kern -kkk#,
3340 "a" kern -kkk#,
3341 CYR_O kern -k#,
3342 CYR_ES kern -k#,
3343 CYR_EL kern -k#,
3344 CYR_el kern -kk#,
3345 CYR_EF kern -k#;
3346
3347 ligtable CYR_HA: "X":
3348 CYR_O kern -k#,
3349 "O" kern -k#,
3350 "Q" kern -k#,
3351 "C" kern -k#,
3352 "G" kern -k#;
3353
3354 ligtable CYR_a: "a":
3355 CYR_O kern -k#,
3356 CYR_ES kern -k#,
3357 CYR_TE kern -kk#,
3358 CYR_U kern -kk#,
3359 CYR_EF kern -k#,
3360 CYR_CHE kern -kk#,
3361 CYR_HARD_SIGN kern -k#,
3362 CYR_o kern -k#,
3363 CYR_es kern -k#,
3364 CYR_te kern -kk#,
3365 CYR_u kern -kk#,
3366 CYR_ef kern -k#,
3367 CYR_che kern -kk#,
3368 CYR_hard_sign kern -k#,
3369 CYR_che kern -kk#,
3370 "V" kern -kk#,
3371 "W" kern -kk#,
3372 "T" kern -kk#,
3373 "y" kern -kk#,
3374 "v" kern -kk#,
3375 "w" kern -kk#,
3376 "t" kern -kk#,
3377 "u" kern -k#,
3378 "Y" kern -kk#;
3379
3380 ligtable CYR_ghe: CYR_te: "t":
3381 CYR_A kern -kk#,
3382 "A" kern -kk#,
3383 CYR_DE kern -k#,
3384 CYR_EL kern -kk#,
3385 CYR_a kern -kk#,
3386 "a" kern -kk#,
3387 CYR_de kern -k#,
3388 CYR_el kern -kk#,
3389 CYR_o kern -k#,
3390 CYR_es kern -k#;
3391
3392 ligtable CYR_o: CYR_e: CYR_yu: "o": "d":
3393 CYR_u kern -k#,
3394 "x" kern -k#,
3395 CYR_ha kern -k#,
3396 "v" kern -k#,
3397 "w" kern -k#,
3398 "V" kern -k#,
3399 "W" kern -k#;
3400
3401 ligtable CYR_er: "p":
3402 CYR_A kern -k#,
3403 "A" kern -k#,
3404 "a" kern -kk#,
3405 CYR_a kern -kk#,
3406 CYR_el kern -k#;
3407
3408 ligtable CYR_u:
3409 CYR_A kern -kk#,
3410 "A" kern -kk#,
3411 CYR_a kern -kkk#,
3412 "a" kern -kkk#,
3413 CYR_o kern -k#,
3414 CYR_es kern -k#,
3415 CYR_el kern -k#,
3416 CYR_ef kern -k#;
3417
3418 ligtable CYR_ha: "x":
3419 "o" kern -k#,
3420 CYR_o kern -k#;
3421
3422 ligtable "D": "O": "Q":
3423 "X" kern -k#;
3424
3425 ligtable "L": "l":
3426 "T" kern -kk#,
3427 "Y" kern -kk#,
3428 "t" kern -kk#,
3429 CYR_TE kern -kk#,
3430 CYR_te kern -kk#,
3431 "y" kern -kk#;
3432
3433 ligtable "V": "W":
3434 "A" kern -kkk#,
3435 "a" kern -kkk#,
3436 CYR_A kern -kkk#,
3437 CYR_a kern -kkk#;
3438
3439 ligtable "Y":
3440 CYR_A kern -kk#,
3441 CYR_a kern -kk#,
3442 "a" kern -kk#,
3443 "A" kern -kk#;
3444
3445 ligtable "v": "w":
3446 "A" kern -kk#,
3447 CYR_A kern -kk#,
3448 CYR_a kern -kk#,
3449 "o" kern -k#,
3450 "c" kern -k#,
3451 "a" kern -kk#;
3452
3453 ligtable hex"37":
3454 CYR_A kern -kk#,
3455 CYR_a kern -kk#,
3456 "a" kern -kk#,
3457 "A" kern -kk#;
3458 ligtable oct"55":
3459 oct"55" =: hex"7b";
3460 ligtable hex"7b":
3461 oct"55" =: hex"7c";
3462 end.