Debian Codegraph @

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

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