Debian Codegraph @

texmf-dist/fonts/source/public/boisik/bskletters-o.mf

raw
1 %Boisik letters in other forms (greek, calligraphic, one cyrilic) -- for math only!
2 numeric bbs; bbs:=if cap_hair+eps>tiny-eps: 2 else 1 fi; %correction for BB letters
3 def mft = -.5bar_height#*slant enddef;
4
5 charscription(11u,cap_height,0)(
6 pos1(cap_stem,0); pos2(cap_stem,0);
7 bot y1=0; top y2=h; lft x1l= lft x2l=2u;
8 cap_serifs_bl(1l); cap_serifs_br(1r);
9 cap_serifs_tl(2l);
10 top y3r=h; rt x3r=w-u;
11 numeric oldbeak; oldbeak:=beak; beak:=1.25beak;
12 filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..
13 {right}z1r.a..z1r.c{left}..z1r.b---(reverse arm_top_r_points(2r,3))
14 ---z2l.a..{right}z2l.c..z2l.b---cycle;
15 beak:=oldbeak;
16 penlabels(1,2);
17 );
18
19 iff known chars.greek_Gamma:
20 bskchar "The Greek letter Gamma";
21 beginchar(chars.greek_Gamma,11u#,cap_height#,0); uni "0x0393";
22 italcorr cap_height#*slant;
23 adjust_fit(cap_serif_fit#,0);
24 pickup tiny.nib;
25 usechar;
26 math_fit(0,ic#-5u#);
27 endchar;
28
29 iff known chars.greek_Gamma_BB:
30 bskchar "The blackboard-bold Greek letter Gamma";
31 beginchar(chars.greek_Gamma_BB,11u#,cap_height#,0); uni "0x213E";
32 italcorr cap_height#*slant;
33 adjust_fit(cap_serif_fit#,0);
34 pickup tiny.nib;
35 usechar;
36 bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c);
37 infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle;
38 math_fit(0,ic#-4u#);
39 endchar;
40
41 iff known chars.greek_Gamma_SS:
42 bskchar "The sans-serif Greek letter Gamma";
43 beginchar(chars.greek_Gamma_SS,11u#,cap_height#,0); uni "non";
44 italcorr cap_height#*slant;
45 adjust_fit(cap_serif_fit#,0);
46 pickup tiny.nib;
47 pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_hair,90);
48 bot y1=0; top y2=h; lft x1l= lft x2l=2u;
49 cap_serifs_bl(1l); cap_serifs_br(1r);
50 cap_serifs_tl(2l);
51 top y3r=h; rt x3r=w-u; z2'=(x2r,y3l);
52 oblu:=cap_hair;
53 filldraw z1l.b..z1..z1r.b---obl(2',1r,3l)---z3l+cap_stem*left...z3...z3r+cap_stem*left
54 ---z2..z2l.b---cycle;
55 penlabels(1,2,3); labels(2');
56 math_fit(0,ic#-4u#);
57 endchar;
58
59 charscription(12u,cap_height,0)(
60 path p;
61 pos1(cap_stem,0); pos2(cap_stem,0);
62 pos5(cap_bar,90); pos6(cap_bar,90); pos5'(ser_height,90); pos6'(1.21beak,90);
63 bot y1=0; top y2=h;
64 top y3r=h; rt x3r=w-u;
65 lft x1l=lft x2l=2u;
66 y5=y5'=y6=y6'=.52[y1,y2]; x5=x2r+cap_hair; x6=x2r+3/8(x3-x2r); x5'=x2r; x6'-x6=1.5u;
67 cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br_p(1r,1.1);
68 p=reverse arm_top_r_points(2r,3);
69 filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..
70 {right}z1r.a..{left}z1r.c..z1r.b---z5'l{dir80}..z5l---
71 z6l..z6'l+.5serif_o*left{down}..z6'l{dir87}..{dir93}z6'...z6r
72 ---z5r..{dir100}z5'r---p--z2l.a..{right}z2l.c..z2l.b---cycle;
73 penlabels(1,2,5,5',6,6');
74 );
75
76 iff known chars.greek_Digamma:
77 bskchar "The Greek letter Digamma";
78 beginchar(chars.greek_Digamma,12u#,cap_height#,0); uni "0x03DC";
79 italcorr cap_height#*slant;
80 adjust_fit(cap_serif_fit#,0);
81 pickup tiny.nib;
82 usechar;
83 math_fit(0,ic#-4u#);
84 endchar;
85
86 iff known chars.greek_Digamma_BB:
87 bskchar "The blackboard-bold Greek letter Digamma";
88 beginchar(chars.greek_Digamma_BB,12u#,cap_height#,0); uni "non";
89 italcorr cap_height#*slant;
90 adjust_fit(cap_serif_fit#,0);
91 pickup tiny.nib;
92 usechar;
93 bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c);
94 infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle;
95 math_fit(0,ic#-3u#);
96 endchar;
97
98 iff known chars.greek_Digamma_SS:
99 bskchar "The sans-serif Greek letter Digamma";
100 beginchar(chars.greek_Digamma_SS,12u#,cap_height#,0); uni "non";
101 italcorr cap_height#*slant;
102 adjust_fit(cap_serif_fit#,0);
103 pickup tiny.nib;
104 path p;
105 pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_hair,90);
106 pos5(cap_bar,90); pos6(cap_bar,90); pos5'(ser_height,90);
107 bot y1=0; top y2=h;
108 top y3r=h; rt x3r=w-u;
109 lft x1l=lft x2l=2u;
110 y5=y5'=y6=y6'=.52[y1,y2]; x5=x2r+cap_hair; x6=x2r+3/8(x3-x2r); x5'=x2r; x6'-x6=1.5u;
111 cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br_p(1r,1.1);
112 z2'=(x2r,y3l);
113 oblu:=cap_hair;
114 filldraw z1l.b{down}..z1..z1r.b---z5'l{dir80}..z5l---
115 z6l...z6'...z6r---z5r..{dir100}z5'r---obl(2',5'r,3l)---z3l+cap_stem*left
116 ...z3...z3r+cap_stem*left---z2..z2l.b---cycle;
117 penlabels(1,2,3,5,5',6); labels(2',6');
118 math_fit(0,ic#-3u#);
119 endchar;
120
121 charscription(14u,cap_height,0)(
122 numeric alpha, right_stem, left_stem, old_jut;
123 old_jut:=cap_jut;
124 {{ save cap_jut; cap_jut=old_jut-.5u;
125 lft x1l=1.5u; rt x2r=w-1.5u; bot y1l=bot y2r=0;
126 x3l=.5w; top y3l=h+apex_o;
127 left_stem=cap_hair;
128 right_stem=cap_stem;
129 alpha=diag_ratio(2,left_stem,y3l-y1l,x3l-x1l);
130 pos1(alpha*left_stem,0); pos2(alpha*right_stem,0);
131 pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0);
132 z1'l=z3l=z2'r;
133 z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; y3'l=y3'r=y3'-.25[cap_hair,cap_stem];
134 z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l];
135 cap_serifs_bl(1l); cap_serifs_br(1r); cap_serifs_br_p(2r,.8); cap_serifs_bl(2l);
136 filldraw z1l.a---z2r.a..{left}z2r.c..diag_serif(2r,3l)---z3l---
137 diag_serif(1l,3l)..z1l.c{left}..cycle;
138 infill z2l.c{right}..diag_serif(2l,3')---z3'r...z3'l---diag_serif(1r,3')
139 ..z1r.c---cycle;
140 penlabels(1,1',2,2',3,3');
141 }};
142 );
143
144 iff known chars.greek_Delta:
145 bskchar "The Greek letter Delta";
146 beginchar(chars.greek_Delta,14u#,cap_height#,0); uni "0x0394";
147 adjust_fit(cap_serif_fit#,cap_serif_fit#);
148 pickup tiny.nib;
149 usechar;
150 endchar;
151
152 iff known chars.greek_Delta_BB:
153 bskchar "The blackboard-bold Greek letter Delta";
154 beginchar(chars.greek_Delta_BB,14u#,cap_height#,0); uni "non";
155 adjust_fit(cap_serif_fit#,cap_serif_fit#);
156 pickup tiny.nib;
157 usechar;
158 numeric oblu.more; oblu.more:=2oblu;
159 bot y100=y2r.c; z100=whatever[z3l,z2r];
160 infill ifobl(3',3l,2l,2r,,more)---obl(100,3l,2r.c)..z2r---obl(2l,2r,3')---cycle;
161 labels(100);
162 endchar;
163
164 iff known chars.greek_Delta_SS:
165 bskchar "The sans-serif Greek letter Delta";
166 beginchar(chars.greek_Delta_SS,14u#,cap_height#,0); uni "non";
167 adjust_fit(cap_serif_fit#,cap_serif_fit#);
168 pickup tiny.nib;
169 numeric alpha, right_stem, left_stem, old_jut;
170 old_jut:=cap_jut;
171 {{ save cap_jut; cap_jut=old_jut-.5u;
172 lft x1l=1.5u; rt x2r=w-1.5u; bot y1l=bot y2r=0;
173 x3l=.5w; top y3l=h+apex_o;
174 left_stem=cap_hair;
175 right_stem=cap_stem;
176 alpha=diag_ratio(2,left_stem,y3l-y1l,x3l-x1l);
177 pos1(alpha*left_stem,0); pos2(alpha*right_stem,0);
178 pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0);
179 z1'l=z3l=z2'r;
180 z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; y3'l=y3'r=y3'-.25[cap_hair,cap_stem];
181 z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l];
182 cap_serifs_bl(1l); cap_serifs_br(1r); cap_serifs_br_p(2r,.8); cap_serifs_bl(2l);
183 filldraw z1---z2...diag_serif(2r,3l)---z3l---
184 diag_serif(1l,3l)...cycle;
185 infill z2l.c{right}..diag_serif(2l,3')---z3'r...z3'l---diag_serif(1r,3')
186 ..z1r.c---cycle;
187 penlabels(1,1',2,2',3,3');
188 }};
189 endchar;
190
191 charscription(13u,cap_height,0)(
192 numeric alpha, right_stem, left_stem;
193 lft x1l=u; rt x2r=w-u; bot y1l=bot y2r=0;
194 x3l=.5w; top y3l=h+apex_o;
195 left_stem=cap_hair;
196 right_stem=cap_stem;
197 alpha=diag_ratio(2,left_stem,y3l-y1l,x3l-x1l);
198 pos1(alpha*left_stem,0); pos2(alpha*right_stem,0);
199 pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0);
200 z1'l=z3l=z2'r;
201 y1r:=y2l:=y1r+serif_o;
202 z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; y3'l=y3'r=y3'-.25[cap_hair,cap_stem];
203 z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l];
204 filldraw z1l---z2r--z3l--cycle;
205 infill (x1r+serif_o,y1r)--(x2l-serif_o,y2l)---z3'r...z3'l---cycle;
206 penlabels(1,2,3,3');
207 );
208
209 iff known chars.greek_Delta_alt:
210 bskchar "The Greek letter Delta alternative";
211 beginchar(chars.greek_Delta_alt,13u#,cap_height#,0); uni "non";
212 adjust_fit(0,0);
213 pickup tiny.nib;
214 usechar;
215 endchar;
216
217 iff known chars.greek_Delta_alt_BB:
218 bskchar "The blackboard-bold Greek letter Delta alternative";
219 beginchar(chars.greek_Delta_alt_BB,13u#,cap_height#,0); uni "non";
220 adjust_fit(0,0);
221 pickup tiny.nib;
222 usechar;
223 oblu:=2f_obl;
224 infill ifobl(3'r,3l,2l,2l,,)---ifobl(2r,2l,3l,3'r,,)---cycle;
225 endchar;
226
227 charscription(9u,cap_height,0)(
228 pos1(cap_stem,0); pos2(cap_stem,0);
229 pos3(cap_hair,90); pos4(cap_hair,90); pos5(ser_height,90);
230 bot y1=0; top y2=h; lft x1l=lft x2l=2u;
231 y3=y4=y5=.52h; x3=x1r.a; rt x4=w-u; x5=x1r;
232 cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br(1r);
233 filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..{right}z1r.a
234 ..z1r.c{left}..z1r.b---z5l{dir80}..z3l---z4l..z4r---z3r..{dir100}z5r
235 ---z2r.b..{right}z2r.c..z2r.a---z2l.a..{right}z2l.c..z2l.b---cycle;
236 penlabels(1,2,3,4,5);
237 );
238
239 iff known chars.greek_Heta:
240 bskchar "The Greek letter Heta";
241 beginchar(chars.greek_Heta,9u#,cap_height#,0); uni "0x0370";
242 italcorr .5cap_height#*slant;
243 adjust_fit(cap_serif_fit#,0);
244 pickup tiny.nib;
245 usechar;
246 math_fit(0,ic#-2u#);
247 endchar;
248
249 iff known chars.greek_Heta_BB:
250 bskchar "The blackboard-bold Greek letter Heta";
251 beginchar(chars.greek_Heta_BB,9u#,cap_height#,0); uni "non";
252 adjust_fit(cap_serif_fit#,0);
253 pickup tiny.nib;
254 usechar;
255 bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c);
256 infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle;
257 penlabels(1,2,3,4,5);
258 endchar;
259
260 iff known chars.greek_Heta_SS:
261 bskchar "The sans-serif Greek letter Heta";
262 beginchar(chars.greek_Heta_SS,9u#,cap_height#,0); uni "non";
263 adjust_fit(cap_serif_fit#,0);
264 pickup tiny.nib;
265 pos1(cap_stem,0); pos2(cap_stem,0);
266 pos3(cap_hair,90); pos4(cap_hair,90); pos5(ser_height,90);
267 bot y1=0; top y2=h; lft x1l=lft x2l=2u;
268 y3=y4=y5=.52h; x3=x1r.a; rt x4=w-u; x5=x1r;
269 cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br(1r);
270 filldraw z1l.b..z1..z1r.b---z5l{dir80}..z3l---z4l..z4r---z3r..{dir100}z5r
271 ---z2r.b..z2..z2l.b---cycle;
272 penlabels(1,2,3,4,5);
273 endchar;
274
275 charscription(14u,cap_height,0)(
276 pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_curve,180); pos4(cap_hair,270);
277 lft x1l=u-o; rt x3l=w-u+o; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2-x4=.5u; bot y2l=-o; top y4l=h+o;
278 filldraw z1l{down}..z2l..z3l..z4l..{down}cycle;
279 infill z1r{up}..z4r..z3r..z2r..{up}cycle;
280 z5=.5[z4,z2];
281 pos6(.65beak,80); pos7(.65beak,85);
282 y6=y7=y5; .5[x6,x7]=x5; x7-x6=.47(x3r-x1r);
283 z6'r-z6r=z6'l-z6l=z7r-z7'r=z7l-z7'l=(serif_o,0);
284 y6l:=y6l-o; y7r:=y7r+o;
285 pos8(cap_hair,90); pos9(cap_hair,90);
286 y8=y9; .5[z8,z9]=z5; x9-x8=1/3(x7-x6);
287 filldraw z8r..{dir80}z6'r..z6r---z6l..{dir80}z6'l..z8l---z9l
288 ..{dir-95}z7'l..z7l---z7r..{dir-95}z7'r..z9r---cycle;
289 penlabels(1,2,3,4,5,6,6',7,7',8,9);
290 );
291
292 iff known chars.greek_Theta:
293 bskchar "The Greek letter Theta";
294 beginchar(chars.greek_Theta,14u#,cap_height#,0); uni "0x0398";
295 italcorr x_height#*slant;
296 adjust_fit(0,0);
297 pickup tiny.nib;
298 usechar;
299 math_fit(-.5cap_height#*slant+.5u#,.5cap_height#*slant);
300 endchar;
301
302 iff known chars.greek_Theta_BB:
303 bskchar "The blackboard-bold Greek letter Theta";
304 beginchar(chars.greek_Theta_BB,14u#,cap_height#,0); uni "non";
305 italcorr x_height#*slant;
306 adjust_fit(0,0);
307 pickup tiny.nib;
308 usechar;
309 path p[]; numeric tim[];
310 p100:=z4r..z1r{down}..z2r..z3r..cycle;
311 p101:=reverse z4l..z1l{down}..z2l..z3l..cycle;
312 oblu:=1.25bbw;
313 z100=bsktouch(subpath(0,1) of p100,bbs*up,p101,down);
314 z101=bsktouch(subpath(1,2) of p100,bbs*down,p101,up);
315 z102=bsktouch(subpath(3,4) of p100,bbs*up,p101,down);
316 z103=bsktouch(subpath(2,3) of p100,bbs*down,p101,up);
317 tim100=xpart(p100 intersectiontimes (z100--(x100,y1)));
318 tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5)));
319 tim102=xpart(p100 intersectiontimes (z101--(x101,y1)));
320 tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5)));
321 tim104=xpart(p100 intersectiontimes (z102--(x102,y1)));
322 tim105=xpart(p101 intersectiontimes (z102--(x102,y4l+5)));
323 tim106=xpart(p100 intersectiontimes (z103--(x103,y1)));
324 tim107=xpart(p101 intersectiontimes (z103--(x103,y2l-5)));
325 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
326 ..subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle;
327 infill subpath(rundy(p100,tim104).zpet,rundy(p100,tim106)) of p100
328 ..subpath(rundy(p101,tim107),rundy(p101,tim105).zpet) of p101..cycle;
329 labels(100,101,102,103);
330 endchar;
331
332 iff known chars.greek_Theta_SS:
333 bskchar "The sans-serif Greek letter Theta";
334 beginchar(chars.greek_Theta_SS,14u#,cap_height#,0); uni "non";
335 italcorr x_height#*slant;
336 adjust_fit(0,0);
337 pickup tiny.nib;
338 pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_curve,180); pos4(cap_hair,270);
339 lft x1l=u-o; rt x3l=w-u+o; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2-x4=.5u; bot y2l=-o; top y4l=h+o;
340 filldraw z1l{down}..z2l..z3l..z4l..{down}cycle;
341 infill z1r{up}..z4r..z3r..z2r..{up}cycle;
342 z5=.5[z4,z2];
343 pos6(.65beak,80); pos7(.65beak,85);
344 y6=y7=y5; .5[x6,x7]=x5; x7-x6=.47(x3r-x1r);
345 z6'r-z6r=z6'l-z6l=z7r-z7'r=z7l-z7'l=(serif_o,0);
346 y6l:=y6l-o; y7r:=y7r+o;
347 pos8(cap_hair,90); pos9(cap_hair,90);
348 y8=y9; .5[z8,z9]=z5; x9-x8=(x7-x6);
349 filldraw z8r..z8l---z9l..z9r---cycle;
350 penlabels(1,2,3,4,5,6,6',7,7',8,9);
351 endchar;
352
353 charscription(13u,cap_height,0)(
354 numeric alpha, right_stem, left_stem;
355 lft x1l=2u; rt x2r=w-2u; bot y1l=bot y2r=0;
356 x3l=.5w; top y3l=h+apex_o;
357 left_stem=cap_hair;
358 right_stem=cap_stem;
359 alpha=diag_ratio(2,left_stem,y3l-y1l,x3l-x1l);
360 pos1(alpha*left_stem,0); pos2(alpha*right_stem,0);
361 pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0);
362 z1'l=z3l=z2'r;
363 z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; y3'l=y3'r=y3'-.25[cap_hair,cap_stem];
364 z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l];
365 cap_serifs_bl(1l); cap_serifs_br(1r); cap_serifs_br_p(2r,.8); cap_serifs_bl(2l);
366 filldraw z1l+ser_boule*up..{left}z1l.a{left}..{right}z1l.c..diag_serif(1l,3l)---z3l---
367 diag_serif(2r,3l)..{right}z2r.c..z2r.a{left}..z2r+ser_boule*up..
368 {left}z2l.a..{right}z2l.c..diag_serif(2l,3')---z3'r...z3'l---
369 diag_serif(1r,3') ..z1r.c{right}..z1r.a{left}..cycle;
370 penlabels(1,1',2,2',3,3');
371 );
372
373 iff known chars.greek_Lambda:
374 bskchar "The Greek letter Lambda";
375 beginchar(chars.greek_Lambda,13u#,cap_height#,0); uni "0x039B";
376 adjust_fit(cap_serif_fit#,cap_serif_fit#);
377 pickup tiny.nib;
378 usechar;
379 endchar;
380
381 iff known chars.greek_Lambda_BB:
382 bskchar "The blackboard-bold Greek letter Lambda";
383 beginchar(chars.greek_Lambda_BB,13u#,cap_height#,0); uni "non";
384 adjust_fit(cap_serif_fit#,cap_serif_fit#);
385 pickup tiny.nib;
386 usechar;
387 numeric oblu.more; oblu.more:=2oblu;
388 bot y100=y2r.c; z100=whatever[z3l,z2r];
389 infill ifobl(3',3l,2r,2l,,more)---obl(100,3l,2r.c)..z2r---obl(2l,2r,3')---cycle;
390 labels(100);
391 endchar;
392
393 iff known chars.greek_Lambda_SS:
394 bskchar "The sans-serif Greek letter Lambda";
395 beginchar(chars.greek_Lambda_SS,13u#,cap_height#,0); uni "non";
396 adjust_fit(cap_serif_fit#,cap_serif_fit#);
397 pickup tiny.nib;
398 numeric alpha, right_stem, left_stem;
399 lft x1l=2u; rt x2r=w-2u; bot y1l=bot y2r=0;
400 x3l=.5w; top y3l=h+apex_o;
401 left_stem=cap_hair;
402 right_stem=cap_stem;
403 alpha=diag_ratio(2,left_stem,y3l-y1l,x3l-x1l);
404 pos1(alpha*left_stem,0); pos2(alpha*right_stem,0);
405 pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0);
406 z1'l=z3l=z2'r;
407 z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; y3'l=y3'r=y3'-.25[cap_hair,cap_stem];
408 z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l];
409 cap_serifs_bl(1l); cap_serifs_br(1r); cap_serifs_br_p(2r,.8); cap_serifs_bl(2l);
410 filldraw z1...diag_serif(1l,3l)---z3l---
411 diag_serif(2r,3l)...z2...diag_serif(2l,3')---z3'r...z3'l---
412 diag_serif(1r,3')...cycle;
413 penlabels(1,1',2,2',3,3');
414 endchar;
415
416 iff known chars.greek_Xi:
417 bskchar "The Greek letter Xi";
418 beginchar(chars.greek_Xi,13.5u#,cap_height#,0); uni "0x039E";
419 italcorr cap_height#*slant-.25u#;
420 adjust_fit(0,0);
421 pickup tiny.nib;
422 path p[]; numeric ofs;
423 pos1(cap_stem,0); pos2(cap_stem,0);
424 bot y1=0; top y2=h; x1=x2=.5w;
425 cap_serifs_bl(1l); cap_serifs_br(1r);
426 top y3r=top y4r=h; rt x3r=w-u-o; lft x4r=u+o;
427 bot y5r=0; rt x5l=w-u;
428 {{
429 numeric oldbeak, old_jut; oldbeak:=beak; old_jut=cap_jut; save beak, cap_jut;
430 beak:=.9oldbeak; cap_jut:=if bold_face: .7\\ fi old_jut;
431 p0:=reverse arm_top_r_points(2r,3).alt; p1:=arm_top_l_points(2l,4).alt;
432 p2:=arm_bot_r_points(1r,5).alt; p2:=subpath(1, length(p2)-1) of p2;
433 }};
434 p3:=reverse (p2 reflectedabout (z1r.c,z1r.a));
435 ofs:=if monospace and (x3d-x2r<stem): 2.3 else: 1 fi;
436 filldraw subpath(ofs, infinity) of p0--subpath(0,length(p1)-ofs) of p1--cycle;
437 filldraw p2--(p3 shifted (2u-xpart(point 2 of p3),0))--cycle;
438 pos6(.65beak,90); pos7(.65beak,90);
439 y6=y7=.5h+o; .5[x6,x7]=.5w; x7-x6=.47(x3r-x4r);
440 z6'r-z6r=z6'l-z6l=z7r-z7'r=z7l-z7'l=(serif_o,0);
441 pos8(cap_hair,90); pos9(cap_hair,90);
442 y8=y9; .5[z8,z9]=.5[z6,z7]; x9-x8=1/3(x7-x6);
443 filldraw z8r..{up}z6'r..z6r---z6l..{up}z6'l..z8l---z9l
444 ..{down}z7'l..z7l---z7r..{down}z7'r..z9r---cycle;
445 penlabels(1,2,6,7,8,9);
446 math_fit(-.25u#,.5u#);
447 endchar;
448
449 iff known chars.greek_Xi_BB:
450 bskchar "The blackboard-bold Greek letter Xi";
451 beginchar(chars.greek_Xi_BB,13.5u#,cap_height#,0); uni "non";
452 italcorr cap_height#*slant-.25u#;
453 adjust_fit(0,0);
454 pickup tiny.nib;
455 path p[]; numeric ofs;
456 pos1(cap_stem,0); pos2(cap_stem,0);
457 bot y1=0; top y2=h; x1=x2=.5w;
458 cap_serifs_bl(1l); cap_serifs_br(1r);
459 top y3r=top y4r=h; rt x3r=w-u-o; lft x4r=u+o;
460 bot y5r=0; rt x5l=w-u;
461 {{
462 numeric oldbeak, old_jut; oldbeak:=beak; old_jut=cap_jut; save beak, cap_jut, alt_cap_hair;
463 beak:=.9oldbeak; cap_jut:=if bold_face: .7\\ fi old_jut;
464 alt_cap_hair:=if .5beak>cap_stem: cap_stem else: .4beak; fi;
465 p0:=reverse arm_top_r_points(2r,3).alt; p1:=arm_top_l_points(2l,4).alt;
466 p2:=arm_bot_r_points(1r,5).alt;
467 p2:=z5a{right}...z5b--z5r---z5l..{down}z5l.o&z5l.o..z5c...{left}z5d---z5e;
468 }};
469 p3:=reverse (p2 reflectedabout (z1r.c,z1r.a));
470 ofs:=if monospace and (x3d-x2r<stem): 2.3 else: 1 fi;
471 filldraw subpath(ofs, infinity) of p0--subpath(0,length(p1)-ofs) of p1--cycle;
472 filldraw p2--(p3 shifted (2u-xpart(point 2 of p3),0))--cycle;
473 pos6(.65beak,90); pos7(.65beak,90);
474 y6=y7=.5h+o; .5[x6,x7]=.5w; x7-x6=.47(x3r-x4r);
475 z6'r-z6r=z6'l-z6l=z7r-z7'r=z7l-z7'l=(serif_o,0);
476 pos8(cap_hair,90); pos9(cap_hair,90);
477 y8=y9; .5[z8,z9]=.5[z6,z7]; x9-x8=1/3(x7-x6);
478 filldraw z8r..{up}z6'r..z6r---z6l..{up}z6'l..z8l---z9l
479 ..{down}z7'l..z7l---z7r..{down}z7'r..z9r---cycle;
480 p100:=subpath(0,1) of p2;
481 p101:=subpath(5,infinity) of p2;
482 p102:=reverse (p100 reflectedabout (z1,z2));
483 p103:=reverse (p101 reflectedabout (z1,z2));
484 z100=(x5l.o,.5[y5,y5b]);
485 z101=z100 reflectedabout (z1,z2);
486 infill subpath(0,rundy(p100,infinity).zpet) of p100..{up}z100
487 ..subpath(rundy(p101,0),infinity) of p101
488 ---subpath(0,rundy(p103,infinity).zpet) of p103..{down}z101
489 ..subpath(rundy(p102,0),infinity) of p102---cycle;
490 infill (x3a,y3d)..z3a---z4a..(x4a,y4d)---cycle;
491 penlabels(1,2,6,7,8,9); labels(100,101);
492 endchar;
493
494 iff known chars.greek_Xi_SS:
495 bskchar "The sans-serif Greek letter Xi";
496 beginchar(chars.greek_Xi_SS,12u#,cap_height#,0); uni "non";
497 italcorr cap_height#*slant-.25u#;
498 adjust_fit(0,0);
499 pickup tiny.nib;
500 path p[]; numeric ofs, tharm;
501 tharm:=if ((substring(0,5) of font_identifier_) = "BSKHC"): cap_stem else: cap_hair fi;
502 pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_hair,90); pos4(cap_hair,90);
503 pos5(tharm,-90); pos5'(tharm,-90);
504 bot y1=0; top y2=h; x1=x2=.5w;
505 cap_serifs_bl(1l); cap_serifs_br(1r);
506 top y3r=top y4r=h; rt x3r=w-u-o; lft x4r=u+o;
507 bot y5r=bot y5'r=0; rt x5l=w-u; lft x5'=u;
508 pos6(.65beak,90); pos7(.65beak,90);
509 y6=y7=.5h+o; .5[x6,x7]=.5w; x7-x6=.47(x3r-x4r);
510 z6'r-z6r=z6'l-z6l=z7r-z7'r=z7l-z7'l=(serif_o,0);
511 pos8(cap_hair,90); pos9(cap_hair,90);
512 y8=y9; .5[z8,z9]=.5[z6,z7]; x9-x8=(x7-x6);
513 filldraw z8r..z8l---z9l..z9r---cycle;
514 filldraw z4l+cap_stem*right---z3l+cap_stem*left...z3...z3r+cap_stem*left
515 ---z4r+cap_stem*right...z4...cycle;
516 filldraw z5'l+cap_stem*right---z5l+cap_stem*left...z5...z5r+cap_stem*left
517 ---z5'r+cap_stem*right...z5'...cycle;
518 penlabels(1,2,3,4,5,5',6,7,8,9);
519 endchar;
520
521 charscription(13u,cap_height,0)(
522 pos1(cap_stem,0); pos2(cap_stem,0);
523 pos3(cap_stem,0); pos4(cap_stem,0);
524 bot y1=0; top y2=h;
525 lft x1l=lft x2l=2u;
526 cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br(1r);
527 bot y3=0; top y4=h;
528 rt x3r=rt x4r=w-2u;
529 cap_serifs_tl(4l); cap_serifs_tr(4r); cap_serifs_bl(3l); cap_serifs_br(3r);
530 filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..
531 {right}z1r.a..z1r.c{left}..z1r.b---z2r.b..z2r.c---z4l.c..z4l.b
532 ---z3l.b{down}..{left}z3l.c..z3l.a{right}..
533 z3+ser_boule*up..{right}z3r.a..z3r.c{left}..z3r.b---z4r.b..
534 {right}z4r.c..z4r.a---z2r.a---z2l.a..{right}z2l.c..z2l.b---cycle;
535 penlabels(1,2,3,4);
536 );
537
538 iff known chars.greek_Pi:
539 bskchar "The Greek letter Pi";
540 beginchar(chars.greek_Pi,13u#,cap_height#,0); uni "0x03A0";
541 italcorr cap_height#*slant;
542 adjust_fit(cap_serif_fit#,cap_serif_fit#);
543 pickup tiny.nib;
544 usechar;
545 endchar;
546
547 iff known chars.greek_Pi_BB:
548 bskchar "The blackboard-bold Greek letter Pi";
549 beginchar(chars.greek_Pi_BB,13u#,cap_height#,0); uni "0x213F";
550 italcorr cap_height#*slant;
551 adjust_fit(cap_serif_fit#,cap_serif_fit#);
552 pickup tiny.nib;
553 usechar;
554 bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c);
555 bot z102=(x3r,y3r.c); top z103=(x4r,y4r.c);
556 infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle;
557 infill obl(4l,4r,3l)---obl(3l,4l,3r)---z3r...obl(102,3r.c,4r)---obl(103,3r,4r.c)...z4r---cycle;
558 endchar;
559
560 iff known chars.greek_Pi_SS:
561 bskchar "The sans-serif Greek letter Pi";
562 beginchar(chars.greek_Pi_SS,13u#,cap_height#,0); uni "non";
563 italcorr cap_height#*slant;
564 adjust_fit(cap_serif_fit#,cap_serif_fit#);
565 pickup tiny.nib;
566 pos1(cap_stem,0); pos2(cap_stem,0);
567 pos3(cap_stem,0); pos4(cap_stem,0);
568 bot y1=0; top y2=h;
569 lft x1l=lft x2l=2u;
570 cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br(1r);
571 bot y3=0; top y4=h;
572 rt x3r=rt x4r=w-2u;
573 cap_serifs_tl(4l); cap_serifs_tr(4r); cap_serifs_bl(3l); cap_serifs_br(3r);
574 filldraw z1l.b...z1...z1r.b---z2r.b..z2r.c---z4l.c..z4l.b
575 ---z3l.b...z3...z3r.b---z4r.b..
576 z4---z2r.a---z2..z2l.b---cycle;
577 penlabels(1,2,3,4);
578 endchar;
579
580 charscription(13u,cap_height,0)(
581 path p[];
582 numeric alpha, top_stem; oblu:=2oblu;
583 pos1(cap_stem,0); pos2(cap_stem,0);
584 bot y1=0; top y2=h;
585 lft x1l=lft x2l-o=2u;
586 cap_serifs_bl(1l); cap_serifs_tl(2l); cap_serifs_br(1r); cap_serifs_tr(2r);
587 bot y3r=0; top y4r=h; rt x3r=w-u; x4r=w-2.5u;
588 x5r=.5w-o; y5=.5[x_height,bar_height];
589 alpha=diag_ratio(2,cap_stem,y2-y5,x5r-x2r);
590 pos5(alpha*cap_stem,0);
591 alpha:=diag_ratio(2,cap_hair,y5-y1,x5r-x1r);
592 pos6(alpha*cap_hair,0); z5r=z6r;
593 p1:=arm_bot_r_points(1r,3).alt;
594 p2:=arm_top_r_points(2r,4);
595 y1'=y1l.b; z1'=z6l+whatever*(z3.f-z6r);
596 z5'=whatever[z2l.b,z5l]=whatever[z6l,z1'];
597 filldraw subpath(0, length(p1)-1) of p1..z3f---obl(5r,3f,2r.b)---
598 z2r.b..(reverse subpath(0,length(p2)-1) of p2)---z2l.a..
599 {right}z2l.c..z2l.b---obl(5',2l.b,1')---z1'..{left}z1l.c..
600 z1l.a---cycle;
601 penlabels(1,2,5,6); labels(1',5');
602 );
603
604 iff known chars.greek_Sigma:
605 bskchar "The Greek letter Sigma";
606 beginchar(chars.greek_Sigma,13u#,cap_height#,0); uni "0x03A3";
607 italcorr cap_height#*slant-1.25u#;
608 adjust_fit(cap_serif_fit#,0);
609 pickup tiny.nib;
610 usechar;
611 math_fit(0,.5bar_height#*slant);
612 endchar;
613
614 iff known chars.greek_Sigma_BB:
615 bskchar "The blackboard-bold Greek letter Sigma";
616 beginchar(chars.greek_Sigma_BB,13u#,cap_height#,0); uni "non";
617 italcorr cap_height#*slant-1.25u#;
618 adjust_fit(cap_serif_fit#,0);
619 pickup tiny.nib;
620 usechar;
621 y100=y101=y2; z100=whatever[z5',z2l.b]; z101=whatever[z2r.b,z5r];
622 infill ifobl(5r,5',101,100,,)---ifobl(100,101,5',5r,,)---cycle;
623 endchar;
624
625 iff known chars.greek_Sigma_SS:
626 bskchar "The sans-serif Greek letter Sigma";
627 beginchar(chars.greek_Sigma_SS,13u#,cap_height#,0); uni "non";
628 italcorr cap_height#*slant-1.25u#;
629 adjust_fit(cap_serif_fit#,0);
630 pickup tiny.nib;
631 path p[];
632 numeric alpha, top_stem; oblu:=2oblu;
633 pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_hair,-90); pos4(cap_hair,90);
634 bot y1=0; top y2=h;
635 lft x1l=lft x2l-o=2u;
636 cap_serifs_bl(1l); cap_serifs_tl(2l); cap_serifs_br(1r); cap_serifs_tr(2r);
637 bot y3r=0; top y4r=h; rt x3r=w-u; x4r=w-2.5u; z3'=(x1r,y3l); z2'=(x2r+oblu,y4l);
638 x5r=if ((substring(0,5) of font_identifier_)="BSKHC"): .5[x4,x2r] else: .5w-o fi;
639 y5=.5[x_height,bar_height];
640 alpha=diag_ratio(2,cap_stem,y2-y5,x5r-x2r);
641 pos5(alpha*cap_stem,0);
642 alpha:=diag_ratio(2,cap_hair,y5-y1,x5r-x1r);
643 pos6(alpha*cap_hair,0); z5r=z6r;
644 y1'=y1l.b; z1'=z6l+whatever*(z3'-z6r);
645 z5'=whatever[z2l.b,z5l]=whatever[z6l,z1'];
646 filldraw z3r+cap_stem*left...z3...z3l+cap_stem*left---obl(3',3,5r)---obl(5r,3',2r.b)---
647 z2r.b..z2'---z4l+cap_stem*left...z4...z4r+cap_stem*left---z2
648 ..z2l.b---obl(5',2l.b,1')---z1'..z1---cycle;
649 penlabels(1,2,3,4,5,6); labels(1',2',3',5');
650 endchar;
651
652 charscription(14u,cap_height,0)(
653 path p[]; numeric tim[]; oblu:=2oblu;
654 pos1(cap_stem,0); pos2(cap_stem,0);
655 pos3(cap_hair,210); pos3'(cap_curve,-90);
656 pos4(cap_hair,-30); pos4'(cap_curve,-90);
657 x1=x2=.5w; bot y1=0; top y2=x_height;
658 x3l=w-u; y3=y4+o=.1[x_height,h]; top y3'l=top y4'l=h+o;
659 x3'=.45[x2,x3]; x4'=.5[x2,x4]; x4l=u;
660 cap_serifs_bl(1l); cap_serifs_br(1r);
661 p0=z3l{up}..{left}z3'l..{down}z2l;
662 p1=z2r{up}..z4'l{left}..{down}z4l;
663 (tim1,tim2)=p0 intersectiontimes p1;
664 filldraw z2l---z1l.b..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..
665 {right}z1r.a..z1r.c{left}..z1r.b---z2r...z3'r..{down}z3r
666 ..subpath(0,rundy(p0,tim1).zpet) of p0
667 ..subpath(rundy(p1,tim2),infinity) of p1..z4r{up}..z4'r...cycle;
668 penlabels(1,2,3,3',4,4');
669 );
670
671 iff known chars.greek_Upsilon:
672 bskchar "The Greek letter Upsilon";
673 beginchar(chars.greek_Upsilon,14u#,cap_height#,0); uni "0x03A5";
674 italcorr x_height#*slant+.5u#;
675 adjust_fit(0,0);
676 pickup tiny.nib;
677 usechar;
678 math_fit(-x_height#*slant,ic#-4u#);
679 endchar;
680
681 iff known chars.greek_Upsilon_BB:
682 bskchar "The blackboard-bold Greek letter Upsilon";
683 beginchar(chars.greek_Upsilon_BB,14u#,cap_height#,0); uni "non";
684 italcorr x_height#*slant+.5u#;
685 adjust_fit(0,0);
686 pickup tiny.nib;
687 usechar;
688 p100:=p1;
689 p101:=z4r{up}..z4'r..{down}z2l;
690 z100=bsktouch(p100,right,p101,left);
691 tim100=xpart(p100 intersectiontimes (z100--(0,y100)));
692 tim101=xpart(p101 intersectiontimes (z100--(x4',y100)));
693 bot z101=(x1l,y1l.c);
694 oblu.f:=f_obl;
695 oblu:=bbw;
696 infill subpath(0,rundy(p100,tim100).zpet) of p100
697 ..subpath(rundy(p101,tim101),infinity) of p101
698 ---obl(101,2l,1l.c).f...z1l
699 ---if (x1r-x1l)>oblu: obl(1r,1l,2r) else: z1..z1r+oblu*up fi---cycle;
700 labels(100,101);
701 math_fit(0,ic#-3u#);
702 endchar;
703
704 iff known chars.greek_Upsilon_SS:
705 bskchar "The sans-serif Greek letter Upsilon";
706 beginchar(chars.greek_Upsilon_SS,14u#,cap_height#,0); uni "non";
707 italcorr x_height#*slant+.5u#;
708 adjust_fit(0,0);
709 pickup tiny.nib;
710 path p[]; numeric tim[]; oblu:=2oblu;
711 pos1(cap_stem,0); pos2(cap_stem,0);
712 pos3(cap_hair,210); pos3'(cap_curve,-90);
713 pos4(cap_hair,-30); pos4'(cap_curve,-90);
714 x1=x2=.5w; bot y1=0; top y2=x_height;
715 x3l=w-u; y3=y4+o=.1[x_height,h]; top y3'l=top y4'l=h+o;
716 x3'=.45[x2,x3]; x4'=.5[x2,x4]; x4l=u;
717 cap_serifs_bl(1l); cap_serifs_br(1r);
718 p0=z3l{up}..{left}z3'l..{down}z2l;
719 p1=z2r{up}..z4'l{left}..{down}z4l;
720 (tim1,tim2)=p0 intersectiontimes p1;
721 filldraw z2l---z1l.b...z1...z1r.b---z2r...z3'r..{down}z3r
722 ..subpath(0,rundy(p0,tim1).zpet) of p0
723 ..subpath(rundy(p1,tim2),infinity) of p1..z4r{up}..z4'r...cycle;
724 penlabels(1,2,3,3',4,4');
725 math_fit(0,ic#-3u#);
726 endchar;
727
728 charscription(13u,cap_height,0)(
729 path p[]; numeric tim[]; oblu:=2oblu;
730 pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_curve,180); pos4(cap_hair,270);
731 pos5(cap_stem,0); pos6(cap_stem,0);
732 lft x1l=u-o; rt x3l=w-u+o; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2-x4=.5u; .5[y2,y4]=top y1;
733 y2=1/3x_height if bold_face: +.5cap_hair fi; bot y5=0; top y6=h;
734 x5=x6=.5w;
735 {{
736 numeric old_serif; old_serif:=ser_height;
737 save ser_heigth;
738 ser_height:= if bold_face: .6\\fi old_serif;
739 cap_serifs_tl(6l); cap_serifs_tr(6r); cap_serifs_bl(5l); cap_serifs_br(5r);
740 }};
741 p1:=z1l{down}..z2l..z3l..z4l..{down}cycle;
742 p2:=z1r{up}..z4r..z3r..z2r..{up}cycle;
743 p3:=z5l.b{down}..{left}z5l.c..z5l.a{right}..z5+ser_boule*up..
744 {right}z5r.a..z5r.c{left}..{up}z5r.b;
745 p4:=z6r.b{up}..{right}z6r.c..z6r.a---z6l.a..{right}z6l.c..{down}z6l.b;
746 p5:=z6l.b--z5l.b;
747 p6:=z6r.b--z5r.b;
748 tim1=xpart(p1 intersectiontimes (z5r.b--z6r.b));
749 tim2=xpart(p1 intersectiontimes (z6r.b--(x6r.b,y1)));
750 tim3=xpart(p1 intersectiontimes (z6l.b--(x6l.b,y1)));
751 tim4=xpart(p1 intersectiontimes (z5l.b--z6l.b));
752 (tim5,tim6)=p2 intersectiontimes p5;
753 (tim7,tim8)=p2 intersectiontimes subpath(.5,1) of p5;
754 (tim9,tim10)=p2 intersectiontimes p6;
755 (tim11,tim12)=p2 intersectiontimes subpath(.5,1) of p6;
756 z0=directionpoint right of p1;
757 filldraw if y0<y5r.b+tiny: subpath(rundy(p3,0),rundy(p3,infinity).zpet) of fi p3
758 ..subpath(rundy(p1,tim1),rundy(p1,tim2).zpet) of p1..p4
759 ..subpath(rundy(p1,tim3),length(p1)) of p1
760 ..subpath(0,rundy(p1,tim4).zpet) of p1..cycle;
761 infill subpath(0,rundy(p2,tim5).zpet) of p2
762 ..subpath(rundy(p5,tim6),rundy(p5,tim8).zpet) of p5
763 ..subpath(rundy(p2,tim7),length(p2)) of p2&cycle;
764 infill subpath(rundy(p2,tim9),rundy(p2,tim11).zpet) of p2
765 ..subpath(rundy(p6,tim12).zpet,rundy(p6,tim10)) of p6..cycle;
766 penlabels(1,2,3,4,5,6);
767 );
768
769 iff known chars.greek_Phi:
770 bskchar "The Greek letter Phi";
771 beginchar(chars.greek_Phi,13u#,cap_height#,0); uni "0x03A6";
772 italcorr x_height#*slant;
773 adjust_fit(0,0);
774 pickup tiny.nib;
775 usechar;
776 math_fit(-.5cap_height#*slant,0);
777 endchar;
778
779 iff known chars.greek_Phi_BB:
780 bskchar "The blackboard-bold Greek letter Phi";
781 beginchar(chars.greek_Phi_BB,13u#,cap_height#,0); uni "non";
782 italcorr x_height#*slant;
783 adjust_fit(0,0);
784 pickup tiny.nib;
785 usechar;
786 p100:=z4r..z1r{down}..z2r..z3r..cycle;
787 p101:=reverse z4l..z1l{down}..z2l..z3l..cycle;
788 oblu:=1.25bbw;
789 z100=bsktouch(subpath(0,1) of p100,bbs*up,p101,down);
790 z101=bsktouch(subpath(1,2) of p100,bbs*down,p101,up);
791 z102=bsktouch(subpath(3,4) of p100,bbs*up,p101,down);
792 z103=bsktouch(subpath(2,3) of p100,bbs*down,p101,up);
793 tim100=xpart(p100 intersectiontimes (z100--(x100,y1)));
794 tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5)));
795 tim102=xpart(p100 intersectiontimes (z101--(x101,y1)));
796 tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5)));
797 tim104=xpart(p100 intersectiontimes (z102--(x102,y1)));
798 tim105=xpart(p101 intersectiontimes (z102--(x102,y4l+5)));
799 tim106=xpart(p100 intersectiontimes (z103--(x103,y1)));
800 tim107=xpart(p101 intersectiontimes (z103--(x103,y2l-5)));
801 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
802 ..subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle;
803 infill subpath(rundy(p100,tim104).zpet,rundy(p100,tim106)) of p100
804 ..subpath(rundy(p101,tim107),rundy(p101,tim105).zpet) of p101..cycle;
805 oblu:=f_obl;
806 bot z104=(x5l,y5l.c); z105=(x6l,y6l.c);
807 infill obl(6r,6l,5r)---obl(5r,6r,5l)---z5l...obl(104,5l.c,6l)---obl(105,5l,6l.c)...z6l---cycle;
808 labels(100,101,102,103,104,105);
809 endchar;
810
811 iff known chars.greek_Phi_SS:
812 bskchar "The sans-serif Greek letter Phi";
813 beginchar(chars.greek_Phi_SS,12u#,cap_height#,0); uni "non";
814 italcorr x_height#*slant;
815 adjust_fit(0,0);
816 pickup tiny.nib;
817 path p[]; numeric tim[], thc; oblu:=2oblu;
818 thc=if ((substring(0,5) of font_identifier_)="BSKHC"): cap_hair else: cap_curve fi;
819 pos1(thc,0); pos2(cap_hair,90); pos3(thc,180); pos4(cap_hair,270);
820 pos5(cap_stem,0); pos6(cap_stem,0);
821 lft x1l=u-o; rt x3l=w-u+o; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2-x4=.5u; .5[y2,y4]=top y1;
822 y2=1/3x_height if bold_face: +.5cap_hair fi; bot y5=0; top y6=h;
823 x5=x6=.5w;
824 {{
825 numeric old_serif; old_serif:=ser_height;
826 save ser_heigth;
827 ser_height:= if bold_face: .6\\fi old_serif;
828 cap_serifs_tl(6l); cap_serifs_tr(6r); cap_serifs_bl(5l); cap_serifs_br(5r);
829 }};
830 p1:=z1l{down}..z2l..z3l..z4l..{down}cycle;
831 p2:=z1r{up}..z4r..z3r..z2r..{up}cycle;
832 p3:=z5l.b{down}...z5...{up}z5r.b;
833 p4:=z6r.b{up}...z6...{down}z6l.b;
834 p5:=z6l.b--z5l.b;
835 p6:=z6r.b--z5r.b;
836 tim1=xpart(p1 intersectiontimes (z5r.b--z6r.b));
837 tim2=xpart(p1 intersectiontimes (z6r.b--(x6r.b,y1)));
838 tim3=xpart(p1 intersectiontimes (z6l.b--(x6l.b,y1)));
839 tim4=xpart(p1 intersectiontimes (z5l.b--z6l.b));
840 (tim5,tim6)=p2 intersectiontimes p5;
841 (tim7,tim8)=p2 intersectiontimes subpath(.5,1) of p5;
842 (tim9,tim10)=p2 intersectiontimes p6;
843 (tim11,tim12)=p2 intersectiontimes subpath(.5,1) of p6;
844 filldraw p3..subpath(rundy(p1,tim1),rundy(p1,tim2).zpet) of p1..p4..
845 subpath(rundy(p1,tim3),length(p1)) of p1..
846 subpath(0,rundy(p1,tim4).zpet) of p1..cycle;
847 infill subpath(0,rundy(p2,tim5).zpet) of p2 ..
848 subpath(rundy(p5,tim6),rundy(p5,tim8).zpet) of p5..
849 subpath(rundy(p2,tim7),length(p2)) of p2 & cycle;
850 infill subpath(rundy(p2,tim9),rundy(p2,tim11).zpet) of p2 ..
851 subpath(rundy(p6,tim12).zpet,rundy(p6,tim10)) of p6..cycle;
852 penlabels(1,2,3,4,5,6);
853 endchar;
854
855 charscription(14u,cap_height,0)(
856 path p[]; numeric tim[]; oblu:=2oblu;
857 pos1(cap_stem,0); pos2(cap_stem,0);
858 pos3(cap_hair,90); pos4(cap_hair,90);
859 pos5(cap_curve,0); pos6(cap_curve,180);
860 pos7(cap_hair,90); pos8(cap_hair,90);
861 x1=x2=.5w; top y2=h; bot y1=0;
862 y3l=y4l=top .55bar_height; y5=y6=.5[bar_height,x_height]; top y7r=top y8r=.55[x_height,h];
863 x3=x1l; x4=x1r; x3-x5=y5-y3r; x6-x4=y6-y4r;
864 lft x7l=u; rt x8r=w-u;
865 cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br(1r);
866 p1:=z3r{left}..{up}z5r..{left}z7r;
867 p2:=z7l{right}..{down}z5l..{right}z3l;
868 p3:=z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..
869 {right}z1r.a..z1r.c{left}..{up}z1r.b;
870 p4:=z2r.b{up}..{right}z2r.c..z2r.a---z2l.a..{right}z2l.c..{down}z2l.b;
871 p5:=z4l{right}..{up}z6l..{right}z8l;
872 p6:=z8r{left}..{down}z6r..{left}z4r;
873 filldraw subpath(0,rundy(p2,length(p2)).zpet) of p2..p3..
874 subpath(rundy(p5,0),infinity) of p5..
875 subpath(0,rundy(p6,length(p6)).zpet) of p6..(x1r,y4r+oblu)---p4
876 ---(x1l,y3r+oblu)..subpath(rundy(p1,0),infinity) of p1..cycle;
877 penlabels(1,2,3,4,5,6,7,8);
878 );
879
880 iff known chars.greek_Psi:
881 bskchar "The Greek letter Psi";
882 beginchar(chars.greek_Psi,14u#,cap_height#,0); uni "0x03A8";
883 italcorr .5[x_height#,cap_height#]*slant;
884 adjust_fit(0,0);
885 pickup tiny.nib;
886 usechar;
887 math_fit(-.7cap_height#*slant,0);
888 endchar;
889
890 iff known chars.greek_Psi_BB:
891 bskchar "The blackboard-bold Greek letter Psi";
892 beginchar(chars.greek_Psi_BB,14u#,cap_height#,0); uni "non";
893 italcorr .5[x_height#,cap_height#]*slant;
894 adjust_fit(0,0);
895 pickup tiny.nib;
896 usechar;
897 oblu:=1.25bbw;
898 p100=p1;
899 p101=p2;
900 p102=p5;
901 p103=p6;
902 z100=bsktouch(p100,bbs*down,subpath(0,1) of p101,up);
903 z101=bsktouch(subpath(0,1) of p100,bbs*down,p101,up);
904 z102=bsktouch(p102,bbs*up,subpath(0,1) of p103,down);
905 z103=bsktouch(subpath(0,1) of p102,bbs*up,p103,down);
906 tim100=xpart(p100 intersectiontimes (z100--(x100,h)));
907 tim101=xpart(p101 intersectiontimes (z100--(x100,0)));
908 tim102=xpart(p100 intersectiontimes (z101--(x101,h)));
909 tim103=xpart(p101 intersectiontimes (z101--(x101,0)));
910 tim104=xpart(p102 intersectiontimes (z102--(x102,x_height)));
911 tim105=xpart(p103 intersectiontimes (z102--(x102,h)));
912 tim106=xpart(p102 intersectiontimes (z103--(x103,0)));
913 tim107=xpart(p103 intersectiontimes (z103--(x103,h)));
914 infill subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100
915 ..subpath(rundy(p101,tim101),rundy(p101,tim103).zpet) of p101..cycle;
916 infill subpath(rundy(p102,tim106),rundy(p102,tim104).zpet) of p102
917 ..subpath(rundy(p103,tim105),rundy(p103,tim107).zpet) of p103..cycle;
918 oblu:=f_obl;
919 bot z104=(x1l,y1l.c); z105=(x2l,y2l.c);
920 infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(104,1l.c,2l)---obl(105,1l,2l.c)...z2l---cycle;
921 labels(100,101,102,103,104,105);
922 endchar;
923
924 iff known chars.greek_Psi_SS:
925 bskchar "The sans-serif Greek letter Psi";
926 beginchar(chars.greek_Psi_SS,13u#,cap_height#,0); uni "non";
927 italcorr .5[x_height#,cap_height#]*slant;
928 adjust_fit(0,0);
929 pickup tiny.nib;
930 path p[]; numeric tim[], thc; oblu:=2oblu;
931 thc=if ((substring(0,5) of font_identifier_)="BSKHC"): cap_hair else: cap_curve fi;
932 pos1(cap_stem,0); pos2(cap_stem,0);
933 pos3(cap_hair,90); pos4(cap_hair,90);
934 pos5(thc,0); pos6(thc,180);
935 pos7(cap_hair,90); pos8(cap_hair,90);
936 x1=x2=.5w; top y2=h; bot y1=0;
937 y3l=y4l=top .55bar_height; y5=y6=.5[bar_height,x_height]; top y7r=top y8r=.55[x_height,h];
938 x3=x1l; x4=x1r; x3-x5=y5-y3r; x6-x4=y6-y4r;
939 lft x7l=u; rt x8r=w-u;
940 cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br(1r);
941 p1:=z3r{left}..{up}z5r..{left}z7r;
942 p2:=z7l{right}..{down}z5l..{right}z3l;
943 p3:=z1l.b{down}...z1...{up}z1r.b;
944 p4:=z2r.b{up}...z2...{down}z2l.b;
945 p5:=z4l{right}..{up}z6l..{right}z8l;
946 p6:=z8r{left}..{down}z6r..{left}z4r;
947 filldraw subpath(0,rundy(p2,length(p2)).zpet) of p2..p3..
948 subpath(rundy(p5,0),infinity) of p5..
949 subpath(0,rundy(p6,length(p6)).zpet) of p6..(x1r,y4r+oblu)---p4
950 ---(x1l,y3r+oblu)..subpath(rundy(p1,0),infinity) of p1..cycle;
951 penlabels(1,2,3,4,5,6,7,8);
952 endchar;
953
954 charscription(14u,cap_height,0)(
955 path p[];
956 pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_curve,180); pos4(cap_hair,270);
957 pos5(cap_hair,0); pos6(cap_hair,180);
958 pos5'(cap_hair,0); pos6'(cap_hair,180);
959 lft x1l=u+o; x3l=w-x1l; y1=y3=x_height;
960 .5[x2,x4]=.5[x1,x3]; x2-x4=.5u; bot y2l=-o; top y4l=h+o;
961 .5[x5,x6]=x2; y5=y6=.5bar_height; x6-x5=.35(x3r-x1r);
962 z5'-z5=z6'-z6=o*down;
963 x7r=x6l; x7l=x5l; y7l=y7r=0;
964 bot y8r=bot y9r=0; rt x8l=w-u; lft x9l=u;
965 {{ numeric oldbeak; oldbeak:=beak; save beak; numeric beak; beak:=.65oldbeak;
966 p0=arm_bot_r_points(7r,8).alt; y8f:=.5[y8f,y8d];
967 p1=arm_bot_l_points(7l,9).alt; y9f:=.5[y9f,y9d];
968 }};
969 filldraw z5'l{z1-z5}..z1l..z4l..z3l..{z6-z3}z6'l..z8f...z8d...z8c..
970 z8l.o&z8l.o{up}..z8l---z8r--z8b...z8a---z7r..z6r{z3-z6}..
971 z3r..z4r..z1r..z5r{z5-z1}..z7l---z9a...z9b--z9r---z9l..
972 {down}z9l.o&z9l.o..z9c...z9d..z9f..cycle;
973 penlabels(1,2,3,4,5,5',6,6',7);
974 );
975
976 iff known chars.greek_Omega:
977 bskchar "The Greek letter Omega";
978 beginchar(chars.greek_Omega,14u#,cap_height#,0); uni "0x03A9";
979 italcorr x_height#*slant;
980 adjust_fit(0,0);
981 pickup tiny.nib;
982 usechar;
983 math_fit(0,.5bar_height#*slant);
984 endchar;
985
986 iff known chars.greek_Omega_BB:
987 bskchar "The blackboard-bold Greek letter Omega";
988 beginchar(chars.greek_Omega_BB,14u#,cap_height#,0); uni "non";
989 italcorr x_height#*slant;
990 adjust_fit(0,0);
991 pickup tiny.nib;
992 usechar;
993 numeric tim[];
994 oblu:=1.25bbw;
995 p100:=z5'l{z1-z5}..z1l..z4l..z3l..{z6-z3}z6'l;
996 p101:=z6r{z3-z6}..z3r..z4r..z1r..{z5-z1}z5r;
997 z100=bsktouch(subpath(0,1) of p100,bbs*right,p101,left);
998 z101=bsktouch(subpath(0,2) of p100,bbs*down,p101,up);
999 z102=bsktouch(subpath(2,infinity) of p100,bbs*down,p101,up);
1000 z103=bsktouch(p100,bbs*left,subpath(0,1) of p101,right);
1001 tim100=xpart(p100 intersectiontimes (z100--(0,y100)));
1002 tim101=xpart(p101 intersectiontimes (z100--(x4,y100)));
1003 tim102=xpart(p100 intersectiontimes (z101--(x101,h+u)));
1004 tim103=xpart(p101 intersectiontimes (z101--(x101,y1)));
1005 tim104=xpart(p100 intersectiontimes (z102--(x102,h+u)));
1006 tim105=xpart(p101 intersectiontimes (z102--(x102,y3)));
1007 tim106=xpart(p100 intersectiontimes (z103--(w,y103)));
1008 tim107=xpart(p101 intersectiontimes (z103--(x4,y103)));
1009 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
1010 ..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle;
1011 infill subpath(rundy(p100,tim104),rundy(p100,tim106).zpet) of p100
1012 ..subpath(rundy(p101,tim107),rundy(p101,tim105).zpet) of p101..cycle;
1013 labels(100,101,102,103);
1014 endchar;
1015
1016 iff known chars.greek_Omega_SS:
1017 bskchar "The sans-serif Greek letter Omega";
1018 beginchar(chars.greek_Omega_SS,14u#,cap_height#,0); uni "non";
1019 italcorr x_height#*slant;
1020 adjust_fit(0,0);
1021 pickup tiny.nib;
1022 path p[];
1023 pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_curve,180); pos4(cap_hair,270);
1024 pos5(cap_hair,0); pos6(cap_hair,180);
1025 pos5'(cap_hair,0); pos6'(cap_hair,180);
1026 pos8(cap_hair,-90); pos9(cap_hair,-90);
1027 lft x1l=u+o; x3l=w-x1l; y1=y3=x_height;
1028 .5[x2,x4]=.5[x1,x3]; x2-x4=.5u; bot y2l=-o; top y4l=h+o;
1029 .5[x5,x6]=x2; y5=y6=.5bar_height; x6-x5=.35(x3r-x1r);
1030 z5'-z5=z6'-z6=o*down;
1031 x7r=x6l; x7l=x5l; bot y7l=bot y7r=0;
1032 bot y8r=bot y9r=0; rt x8l=w-u; lft x9l=u;
1033 filldraw z5'l{z1-z5}..z1l..z4l..z3l..{z6-z3}z6'l..(x7r,y8l)---z8l+cap_stem*left
1034 ...z8...z8r+cap_stem*left---z7r..z6r{z3-z6}..z3r..z4r..z1r..z5r{z5-z1}
1035 ..z7l---z9r+cap_stem*right...z9...z9l+cap_stem*right---(x7l,y9l)..cycle;
1036 penlabels(1,2,3,4,5,5',6,6',7,8,9);
1037 endchar;
1038
1039 charscription(14u,cap_height,0)(
1040 path p[]; numeric tim[], theta;
1041 pos0(cap_hair,180); pos1(cap_hair,90); pos3(cap_hair,-90); pos0'(cap_hair,180);
1042 lft x0r=u; y0=2/3[x_height,h]; top y1r=h+o; bot y3=0; x1=4u; x3=.5w-u;
1043 y0'=h-y0; x3-x0'=x1-x0;
1044 y2=x_height; rt x2=w-u-.5cap_curve;
1045 p0:=z0..z1..z2..{left}z3..z0'; theta=angle(direction 2 of p0)+90; pos2(cap_curve,theta);
1046 p1:=z0r..z1r..z2r..z3r{left}..z0'r;
1047 p2:=z0'l..z3l{right}..z2l..z1l..z0l;
1048 pos4(cap_hair,theta-90); pos5(cap_hair,theta-90);
1049 z4=p0 intersectionpoint ((0,1/2[x_height,h])--(w,1/2[x_height,h]));
1050 z5=p0 intersectionpoint ((0,1/2[x_height,bar_height])--(w,1/2[x_height,bar_height]));
1051 pos6(cap_stem,theta-100); pos7(cap_stem,theta-80);
1052 pos6'(.5[cap_hair,cap_stem],theta-90); pos7'(.5[cap_hair,cap_stem],theta-90);
1053 x4-x6=.4w; z6r=z4l+whatever*dir(theta+5);
1054 z7l=z5r-abs(z6r-z4l)*dir(theta+5);
1055 z6'l=z6l+1/3(z4l-z6l)+.5hair*dir(theta-90);
1056 z7'r=z7r+1/3(z5r-z7r)+.5hair*dir(theta+90);
1057 p3:=reverse(z4l---z6'l..z6l&z6l..z6r..z6'r---z4r);
1058 p4:=z5r---z7'r..z7r&z7r..z7l..z7'l---z5l;
1059 (tim0,tim1)=p2 intersectiontimes p4;
1060 (tim2,tim3-1)=p2 intersectiontimes subpath(1,infinity) of p4;
1061 (tim4,tim5)=p2 intersectiontimes p3;
1062 (tim6,tim7-1)=p2 intersectiontimes subpath(1,infinity) of p3;
1063 oblu:=2oblu;
1064 filldraw subpath(0,rundy(p2,tim0).zpet) of p2
1065 ..subpath(rundy(p4,tim1),rundy(p4,tim3).zpet) of p4
1066 ..subpath(rundy(p2,tim2),rundy(p2,tim4).zpet) of p2
1067 ..subpath(rundy(p3,tim5),rundy(p3,tim7).zpet) of p3
1068 ..subpath(rundy(p2,tim6),infinity) of p2..p1..cycle;
1069 penlabels(0,0',1,2,3,4,5,6,6',7,7');
1070 );
1071
1072 iff known chars.greek_Sampi:
1073 bskchar "The Greek letter Sampi";
1074 beginchar(chars.greek_Sampi,14u#,cap_height#,0); uni "0x03E0";
1075 italcorr x_height#*slant;
1076 adjust_fit(0,0);
1077 pickup tiny.nib;
1078 usechar;
1079 math_fit(-x_height#*slant,0);
1080 endchar;
1081
1082 iff known chars.greek_Sampi_BB:
1083 bskchar "The blackboard-bold Greek letter Sampi";
1084 beginchar(chars.greek_Sampi_BB,14u#,cap_height#,0); uni "non";
1085 adjust_fit(0,0);
1086 pickup tiny.nib;
1087 usechar;
1088 p100=subpath(1,3) of p1;
1089 p101=subpath(1,3) of p2;
1090 z100=bsktouch(subpath(0,1) of p100,bbs*down,p101,up);
1091 z101=bsktouch(p100,bbs*up,subpath(0,1) of p101,down);
1092 tim100=xpart(p100 intersectiontimes (z100--(x100,2h)));
1093 tim101=xpart(p101 intersectiontimes (z100--(x100,y2)));
1094 tim102=xpart(p100 intersectiontimes (z101--(x101,y3r-u-5)));
1095 tim103=xpart(p101 intersectiontimes (z101--(x101,y2)));
1096 oblu:=bbw;
1097 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
1098 ..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle;
1099 labels(100,101);
1100 endchar;
1101
1102 iff known chars.greek_Sampi_SS:
1103 bskchar "The sans-serif Greek letter Sampi";
1104 beginchar(chars.greek_Sampi_SS,13u#,cap_height#,0); uni "non";
1105 adjust_fit(0,0);
1106 pickup tiny.nib;
1107 path p[]; numeric tim[], theta;
1108 pos0(cap_hair,180); pos1(cap_hair,90); pos3(cap_hair,-90); pos0'(cap_hair,180);
1109 lft x0r=u; y0=2/3[x_height,h]; top y1r=h+o; bot y3=0; x1=4u; x3=.5w-u;
1110 y0'=h-y0; x3-x0'=x1-x0;
1111 y2=x_height; rt x2=w-u-.5cap_curve;
1112 p0:=z0..z1..z2..{left}z3..z0'; theta=angle(direction 2 of p0)+90; pos2(cap_curve,theta);
1113 p1:=z0r..z1r..z2r..z3r{left}..z0'r;
1114 p2:=z0'l..z3l{right}..z2l..z1l..z0l;
1115 pos4(cap_hair,theta-90); pos5(cap_hair,theta-90);
1116 z4=p0 intersectionpoint ((0,1/2[x_height,h])--(w,1/2[x_height,h]));
1117 z5=p0 intersectionpoint ((0,1/2[x_height,bar_height])--(w,1/2[x_height,bar_height]));
1118 pos6(cap_hair,theta-100); pos7(cap_hair,theta-80);
1119 pos6'(cap_hair,theta-90); pos7'(cap_hair,theta-90);
1120 x4-x6=.4w; z6r=z4l+whatever*dir(theta+10);
1121 z7l=z5r-abs(z6r-z4l)*dir(theta+5);
1122 z6'l=z6l+1/3(z4l-z6l);
1123 z7'r=z7r+1/3(z5r-z7r);
1124 p3:=reverse(z4l---z6l&z6l..z6r---z4r);
1125 p4:=z5r---z7r&z7r..z7l---z5l;
1126 (tim0,tim1)=p2 intersectiontimes p4;
1127 (tim2,tim3-1)=p2 intersectiontimes subpath(1,infinity) of p4;
1128 (tim4,tim5)=p2 intersectiontimes p3;
1129 (tim6,tim7-1)=p2 intersectiontimes subpath(1,infinity) of p3;
1130 oblu:=2oblu;
1131 filldraw subpath(0,rundy(p2,tim0).zpet) of p2
1132 ..subpath(rundy(p4,tim1),rundy(p4,tim3).zpet) of p4
1133 ..subpath(rundy(p2,tim2),rundy(p2,tim4).zpet) of p2
1134 ..subpath(rundy(p3,tim5),rundy(p3,tim7).zpet) of p3
1135 ..subpath(rundy(p2,tim6),infinity) of p2..p1..cycle;
1136 penlabels(0,0',1,2,3,4,5,6,6',7,7');
1137 endchar;
1138
1139 charscription(14u,cap_height,0)(
1140 pos1(cap_stem,0); pos2(cap_stem,0);
1141 pos3(cap_stem,0); pos4(cap_stem,0); pos5(cap_stem,0); pos6(cap_stem,0);
1142 bot y1=bot y3=bar_height; top y2=top y4=h; bot y5=0; y6=y2l.c;
1143 lft x1l=lft x2l=2u; rt x3r=rt x4r=w-2u; x5=x6=.5w;
1144 cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l);
1145 cap_serifs_tl(4l); cap_serifs_tr(4r); cap_serifs_br(3r);
1146 cap_serifs_bl(5l); cap_serifs_br(5r);
1147 {{ numeric old_jut; old_jut:=cap_jut; save cap_jut; cap_jut:=.75old_jut;
1148 cap_serifs_bl(3l); cap_serifs_br(1r);
1149 }};
1150 filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..{right}z1r.a
1151 ..z1r.c{left}..z1r.b---z2r.b..z2r.c---obl(6l,2r.c,5l)---z5l.b..{left}z5l.c
1152 ..z5l.a{right}..z5+ser_boule*up..{right}z5r.a..z5r.c{left}..z5r.b
1153 ---obl(6r,5r,4l.c)---z4l.c..z4l.b---z3l.b{down}..{left}z3l.c..z3l.a{right}
1154 ..z3+ser_boule*up..{right}z3r.a..z3r.c{left}..z3r.b---z4r.b..{right}z4r.c
1155 ..z4r.a---z2r.a---z2l.a..{right}z2l.c..z2l.b---cycle;
1156 penlabels(1,2,3,4,5,6);
1157 );
1158
1159 iff known chars.greek_Varsampi:
1160 bskchar "The Archaic Greek letter Sampi";
1161 beginchar(chars.greek_Varsampi,14u#,cap_height#,0); uni "0x0372";
1162 italcorr cap_height#*slant;
1163 adjust_fit(cap_serif_fit#,cap_serif_fit#);
1164 pickup tiny.nib;
1165 usechar;
1166 math_fit(-bar_height#*slant,u#);
1167 endchar;
1168
1169 iff known chars.greek_Varsampi_BB:
1170 bskchar "The blackboard-bold Archaic Greek letter Sampi";
1171 beginchar(chars.greek_Varsampi_BB,14u#,cap_height#,0); uni "non";
1172 italcorr cap_height#*slant;
1173 adjust_fit(cap_serif_fit#,cap_serif_fit#);
1174 pickup tiny.nib;
1175 usechar;
1176 bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c);
1177 bot z102=(x3r,y3r.c); top z103=(x4r,y4r.c);
1178 infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle;
1179 infill obl(4l,4r,3l)---obl(3l,4l,3r)---z3r...obl(102,3r.c,4r)---obl(103,3r,4r.c)...z4r---cycle;
1180 infill ifobl(6r,6l,5r,5l,,)---ifobl(5l,5r,6l,6r,,)--cycle;
1181 endchar;
1182
1183 iff known chars.greek_Varsampi_SS:
1184 bskchar "The sans-serif Archaic Greek letter Sampi";
1185 beginchar(chars.greek_Varsampi_SS,14u#,cap_height#,0); uni "non";
1186 italcorr cap_height#*slant;
1187 adjust_fit(cap_serif_fit#,cap_serif_fit#);
1188 pickup tiny.nib;
1189 numeric thc;
1190 thc=if ((substring(0,5) of font_identifier_)="BSKHC"): cap_hair else: cap_stem fi;
1191 pos1(thc,0); pos2(thc,0);
1192 pos3(thc,0); pos4(thc,0); pos5(cap_stem,0); pos6(cap_stem,0);
1193 bot y1=bot y3=bar_height; top y2=top y4=h; bot y5=0; y6=y2l.c;
1194 lft x1l=lft x2l=2u; rt x3r=rt x4r=w-2u; x5=x6=.5w;
1195 cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l);
1196 cap_serifs_tl(4l); cap_serifs_tr(4r); cap_serifs_br(3r);
1197 cap_serifs_bl(5l); cap_serifs_br(5r);
1198 {{ numeric old_jut; old_jut:=cap_jut; save cap_jut; cap_jut:=.75old_jut;
1199 cap_serifs_bl(3l); cap_serifs_br(1r);
1200 }};
1201 filldraw z1l.b{down}...z1...z1r.b---z2r.b..z2r.c---obl(6l,2r.c,5l)---z5l.b...z5
1202 ...z5r.b---obl(6r,5r,4l.c)---z4l.c..z4l.b---z3l.b...z3...z3r.b---z4r.b
1203 ...z4---z2...z2l.b---cycle;
1204 penlabels(1,2,3,4,5,6);
1205 endchar;
1206
1207 charscription(14u,cap_height,desc_depth)(
1208 path p[]; numeric tim[]; oblu:=2oblu;
1209 pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_curve,180); pos4(cap_hair,270);
1210 pos5(cap_stem,0); pos6(cap_stem,0);
1211 lft x1l=u-o; rt x3l=w-u+o; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2-x4=.5u; bot y2l=-o; top y4l=h+o;
1212 x5=x6=x2; y5=y2; bot y6=-d;
1213 cap_serifs_bl(6l); cap_serifs_br(6r);
1214 p0=z1l{down}..z2l..z3l..z4l..{down}z1l;
1215 p1=z5l---z6l.b..{left}z6l.c..{right}z6l.a..z6+ser_boule*up..{right}z6r.a..z6r.c{left}..z6r.b---z5r;
1216 (tim0,tim1)=p0 intersectiontimes subpath(0,1) of p1;
1217 (tim2,tim3-1)=p0 intersectiontimes subpath(1,infinity) of p1;
1218 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
1219 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
1220 ..subpath(rundy(p0,tim2),infinity) of p0&cycle;
1221 infill z1r{up}..z4r..z3r..z2r..{up}cycle;
1222 penlabels(1,2,3,4,5,6);
1223 );
1224
1225 iff known chars.greek_Qoppa:
1226 bskchar "The Archaic Greek letter Qoppa";
1227 beginchar(chars.greek_Qoppa,14u#,cap_height#,desc_depth#); uni "0x03D8";
1228 italcorr x_height#*slant;
1229 adjust_fit(0,0);
1230 pickup tiny.nib;
1231 usechar;
1232 math_fit(-.5cap_height#*slant,ic#-2u#);
1233 endchar;
1234
1235 iff known chars.greek_Qoppa_BB:
1236 bskchar "The blackboard-bold Archaic Greek letter Qoppa";
1237 beginchar(chars.greek_Qoppa_BB,14u#,cap_height#,desc_depth#); uni "non";
1238 italcorr x_height#*slant;
1239 adjust_fit(0,0);
1240 pickup tiny.nib;
1241 usechar;
1242 path p[]; numeric tim[];
1243 p100:=z4r..z1r{down}..z2r..z3r..cycle;
1244 p101:=reverse z4l..z1l{down}..z2l..z3l..cycle;
1245 oblu:=1.25bbw;
1246 z100=bsktouch(subpath(0,1) of p100,bbs*up,p101,down);
1247 z101=bsktouch(subpath(1,2) of p100,bbs*down,p101,up);
1248 z102=bsktouch(subpath(3,4) of p100,bbs*up,p101,down);
1249 z103=bsktouch(subpath(2,3) of p100,bbs*down,p101,up);
1250 tim100=xpart(p100 intersectiontimes (z100--(x100,y1)));
1251 tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5)));
1252 tim102=xpart(p100 intersectiontimes (z101--(x101,y1)));
1253 tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5)));
1254 tim104=xpart(p100 intersectiontimes (z102--(x102,y1)));
1255 tim105=xpart(p101 intersectiontimes (z102--(x102,y4l+5)));
1256 tim106=xpart(p100 intersectiontimes (z103--(x103,y1)));
1257 tim107=xpart(p101 intersectiontimes (z103--(x103,y2l-5)));
1258 bot z104=(x6l,y6l.c);
1259 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
1260 ..subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle;
1261 infill subpath(rundy(p100,tim104).zpet,rundy(p100,tim106)) of p100
1262 ..subpath(rundy(p101,tim107),rundy(p101,tim105).zpet) of p101..cycle;
1263 oblu:=f_obl;
1264 infill ifobl(5l,5r,6l,6r,,)---obl(6r,5r,6l)---z6l...obl(104,6l.c,5l)---cycle;
1265 labels(100,101,102,103,104);
1266 endchar;
1267
1268 iff known chars.greek_Qoppa_SS:
1269 bskchar "The sans-serif Archaic Greek letter Qoppa";
1270 beginchar(chars.greek_Qoppa_SS,14u#,cap_height#,desc_depth#); uni "non";
1271 italcorr x_height#*slant;
1272 adjust_fit(0,0);
1273 pickup tiny.nib;
1274 path p[]; numeric tim[]; oblu:=2oblu;
1275 pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_curve,180); pos4(cap_hair,270);
1276 pos5(cap_stem,0); pos6(cap_stem,0);
1277 lft x1l=u-o; rt x3l=w-u+o; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2-x4=.5u; bot y2l=-o; top y4l=h+o;
1278 x5=x6=x2; y5=y2r; bot y6=-d;
1279 cap_serifs_bl(6l); cap_serifs_br(6r);
1280 p0=z1l{down}..z2l..z3l..z4l..{down}z1l;
1281 p1=z5l---z6l.b..z6..z6r.b---z5r;
1282 (tim0,tim1)=p0 intersectiontimes subpath(0,1) of p1;
1283 (tim2,tim3-1)=p0 intersectiontimes subpath(1,infinity) of p1;
1284 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
1285 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
1286 ..subpath(rundy(p0,tim2),infinity) of p0&cycle;
1287 infill z1r{up}..z4r..z3r..z2r..{up}cycle;
1288 penlabels(1,2,3,4,5,6);
1289 endchar;
1290
1291 charscription(13.3u,cap_height,.75desc_depth)(
1292 path p[]; numeric tim[], sersh;
1293 sersh=.15tiny;
1294 pos1(cap_curve,0); pos2(cap_stem,90); pos3(cap_hair,180); pos4(cap_hair,270);
1295 pos6(cap_stem,90); pos7(cap_hair,0); pos8(cap_stem,-90); pos8'(.9cap_stem,-90);
1296 lft x1l=u-o; rt x3r=w-u; y1=y3=.5h; x2=x4=.5[x1,x3]; bot y2l=-o; top y4l=h+o;
1297 y6=y2; rt x7r=w-u; bot y8r=-d; x7-x6=.5(y6-y8); x8=.5[x2,x6]; y7=.5[y6,y8];
1298 z8'r=z8r+cap_stem*right;
1299 p0:=z1r{down}..z2r..z3r..z4r..{down}cycle;
1300 p1:=z1l{down}..z2l..z3l..z4l..{down}cycle;
1301 z5'=((.5w,y3+.2h)--(2w,y3+.2h)) intersectionpoint p0; tim1= ypart(((.5w,y3+.2h)--(2w,y3+.2h)) intersectiontimes reverse p0);
1302 z5'a=z5'+serif_o*right; z5'b=(x5'a-sersh,h+o); z5'c=(.35[x4,x3r],y3);
1303 z5'd=(z5'c--z5'b) intersectionpoint p1; z5'e=.35[z5'b,z5'd];
1304 tim3=ypart(((.5w,y5'e+.15ser_height)--(w,y5'e+.15ser_height)) intersectiontimes p1);
1305 filldraw subpath(-1,tim1) of reverse p0..z5'a--z5'b---z5'e..subpath (tim3,5) of p1
1306 ---z6l..{down}z7l..z8'l..z8l..z8r---z8'r..{up}z7r..z6r---cycle;
1307 penlabels(1,2,3,4,6,7,8,8'); labels(5,5',5'a,5'b,5'c,5'd,5'e);
1308 );
1309
1310 iff known chars.greek_Stigma:
1311 bskchar "The Greek letter Stigma";
1312 beginchar(chars.greek_Stigma,13.3u#,cap_height#,.75desc_depth#); uni "0x03DA";
1313 italcorr cap_height#*slant;
1314 adjust_fit(0,0);
1315 pickup tiny.nib;
1316 usechar;
1317 math_fit(-.5cap_height#*slant,0);
1318 endchar;
1319
1320 iff known chars.greek_Stigma_BB:
1321 bskchar "The blackboard-bold Greek letter Stigma";
1322 beginchar(chars.greek_Stigma_BB,13.3u#,cap_height#,.75desc_depth#); uni "non";
1323 italcorr cap_height#*slant;
1324 adjust_fit(0,0);
1325 pickup tiny.nib;
1326 usechar;
1327 p100:=subpath(-1,1) of p0---z6r..{down}z7r;
1328 p101:=reverse (subpath(-1,1) of p1---z6l..{down}z7l);
1329 oblu:=1.25bbw;
1330 z100=bsktouch(subpath(0,1) of p100,bbs*up,p101,down);
1331 z101=bsktouch(p100,bbs*left,subpath(0,1) of p101,right);
1332 tim100=xpart(p100 intersectiontimes (z100--(x100,y1)));
1333 tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5)));
1334 tim102=xpart(p100 intersectiontimes (z101--(w,y101)));
1335 tim103=xpart(p101 intersectiontimes (z101--(0,y101)));
1336 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
1337 ..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle;
1338 labels(100,101);
1339 endchar;
1340
1341 iff known chars.greek_Stigma_SS:
1342 bskchar "The sans-serif Greek letter Stigma";
1343 beginchar(chars.greek_Stigma_SS,13.3u#,cap_height#,.75desc_depth#); uni "non";
1344 italcorr cap_height#*slant;
1345 adjust_fit(0,0);
1346 pickup tiny.nib;
1347 path p[]; numeric tim[], sersh;
1348 sersh=.15tiny;
1349 pos1(cap_curve,0); pos2(cap_stem,90); pos4(cap_hair,270);
1350 pos3(if ((substring(0,5) of font_identifier_)="BSKHC"):1.2\\fi cap_hair,180);
1351 pos6(cap_stem,90); pos7(cap_hair,0); pos8(cap_stem,-90); pos8'(.9cap_stem,-90);
1352 lft x1l=u-o; rt x3r=w-u; y1=y3=.5h; x2=x4=.5[x1,x3]; bot y2l=-o; top y4l=h+o;
1353 y6=y2; rt x7r=w-u; bot y8r=-d; x7-x6=.5(y6-y8); x8=.5[x2,x6]; y7=.5[y6,y8];
1354 z8'r=z8r+if ((substring(0,5) of font_identifier_)="BSKHC"):.5\\ fi cap_stem*right;
1355 if ((substring(0,5) of font_identifier_)="BSKHC"):
1356 p0:=z1r{down}..z2r..z3r..{left}z4r..{down}cycle;
1357 p1:=z1l{down}..z2l..z3l..{left}z4l..{down}cycle;
1358 else:
1359 p0:=z1r{down}..z2r..z3r..z4r..{down}cycle;
1360 p1:=z1l{down}..z2l..z3l..z4l..{down}cycle;
1361 fi
1362 tim1= ypart(((.5w,y3+.2h)--(2w,y3+.2h)) intersectiontimes reverse p0);
1363 tim3= ypart(((.5w,y3+.2h)--(2w,y3+.2h)) intersectiontimes p1);
1364 filldraw subpath(-1,tim1) of reverse p0..subpath (tim3,5) of p1
1365 ---z6l..{down}z7l..z8'l..z8l..z8r---z8'r..{up}z7r..z6r---cycle;
1366 penlabels(1,2,3,4,6,7,8,8');
1367 endchar;
1368
1369 iff known chars.greek_alpha:
1370 bskchar "The Greek letter alpha";
1371 beginchar(chars.greek_alpha,10.5u#,x_height#,0); uni "0x03B1";
1372 italcorr x_height#*slant;
1373 adjust_fit(0,0);
1374 pickup tiny.nib;
1375 numeric tim[]; path p[]; oblu:=2oblu;
1376 pos0(hair,-90); pos1(.5[stem,hair],0); pos2(.5[stem,hair],0);
1377 pos3(hair,-90); pos4(curve,180); pos5(hair,90);
1378 pos6(hair,0); pos7(hair,90); pos8(stem,180);
1379 top y0l=h; x0=w-u;
1380 rt x1r=w-1.5u; x2=x1-stem; top y1=h-u; y2=.5bar_height;
1381 x3=.5x2; x5=.55x1; bot y3r=-o; top y5r=h+o;
1382 lft x4r=u; y4=bar_height; y6=.55bar_height; x6=x2;
1383 x7=w-2u; bot y7l=-o; lft x8l=w-u; y8=.75curve;
1384 z8'=z8+.2stem*right+o*up; z8''=z8+.5(stem-currentbreadth)*dir225;
1385 p0=z0r{left}..z1r...z2r..z3r..z4r..z5r..z6r..{right}z7r..z8''..z8r;
1386 p1=z8r..z8'..z8l..z7l{left}..z6l..z5l..z4l..z3l..z2l---z1l..z0l;
1387 (tim0,tim1-5)=p0 intersectiontimes subpath (5,infinity) of p0;
1388 (tim2,tim3)=p1 intersectiontimes p0;
1389 (tim4-4,tim5-6)=subpath(4,infinity) of p0 intersectiontimes subpath (6,infinity) of p1;
1390 (tim6,tim7-7)=subpath(0,6) of p1 intersectiontimes subpath (7,infinity) of p1;
1391 filldraw subpath(0,rundy(p0,tim0).zpet) of p0..subpath(rundy(p0,tim1),infinity) of p0
1392 ..subpath(0,rundy(p1,tim2).zpet) of p1
1393 ..subpath(rundy(p0,tim3),rundy(p0,(tim4,.5bar_height)).zpet) of p0
1394 ..subpath(rundy(p1,(tim5,.5bar_height)),infinity) of p1..cycle;
1395 infill subpath (rundy(p1,tim6),rundy(p1,tim7).zpet) of p1..cycle;
1396 penlabels(0,1,2,3,4,5,6,7,8); labels(8',8'');
1397 math_fit(mft,.5u#);
1398 endchar;
1399
1400 iff known chars.greek_alpha_BB:
1401 bskchar "The blackboard-bold Greek letter alpha";
1402 beginchar(chars.greek_alpha_BB,10.5u#,x_height#,0); uni "non";
1403 italcorr x_height#*slant;
1404 adjust_fit(0,0);
1405 pickup tiny.nib;
1406 numeric tim[]; path p[]; oblu:=2oblu;
1407 pos0(hair,-90); pos1(.5[stem,hair],0); pos2(.5[stem,hair],0);
1408 pos3(hair,-90); pos4(cap_stem,180); pos5(hair,90);
1409 pos6(hair,0); pos7(hair,90); pos8(stem,180);
1410 top y0l=h; x0=w-u;
1411 rt x1r=w-1.5u; x2=x1-stem; top y1=h-u; y2=.5bar_height;
1412 lft x3=.5x2; lft x5=.55x1; bot y3r=-o; top y5r=h+o;
1413 lft x4r=u; y4=bar_height; y6=.55bar_height; x6=x2;
1414 x7=w-2u; bot y7l=-o; lft x8l=w-u; y8=.75curve;
1415 z8'=z8+.2stem*right+o*up; z8''=z8+.5(stem-currentbreadth)*dir225;
1416 p0=z0r{left}..z1r...z2r..z3r..z4r..z5r..z6r..{right}z7r..z8''..z8r;
1417 p1=z8r..z8'..z8l..z7l{left}..z6l..z5l..z4l..z3l..z2l---z1l..z0l;
1418 (tim0,tim1-5)=p0 intersectiontimes subpath (5,infinity) of p0;
1419 (tim2,tim3)=p1 intersectiontimes p0;
1420 (tim4-4,tim5-6)=subpath(4,infinity) of p0 intersectiontimes subpath (6,infinity) of p1;
1421 (tim6,tim7-7)=subpath(0,6) of p1 intersectiontimes subpath (7,infinity) of p1;
1422 filldraw subpath(0,rundy(p0,tim0).zpet) of p0..subpath(rundy(p0,tim1),infinity) of p0
1423 ..subpath(0,rundy(p1,tim2).zpet) of p1
1424 ..subpath(rundy(p0,tim3),rundy(p0,(tim4,.5bar_height)).zpet) of p0
1425 ..subpath(rundy(p1,(tim5,.5bar_height)),infinity) of p1..cycle;
1426 infill subpath (rundy(p1,tim6),rundy(p1,tim7).zpet) of p1..cycle;
1427 p100=subpath(3,5) of p0;
1428 p101=subpath(5,7) of p1;
1429 z100=bsktouch(p100,up,p101,down);
1430 z101=bsktouch(p100,down,p101,up);
1431 tim100=xpart(p100 intersectiontimes (z100--(x100,y3r-u-5)));
1432 tim101=xpart(p101 intersectiontimes (z100--(x100,y2)));
1433 tim102=xpart(p100 intersectiontimes (z101--(x101,y5r+u+5)));
1434 tim103=xpart(p101 intersectiontimes (z101--(x101,y4)));
1435 oblu:=bbw;
1436 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
1437 ..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle;
1438 penlabels(0,1,2,3,4,5,6,7,8); labels(8',8'',100,101);
1439 endchar;
1440
1441 iff known chars.greek_alpha_SS:
1442 bskchar "The sans-serif Greek letter alpha";
1443 beginchar(chars.greek_alpha_SS,10.5u#,x_height#,0); uni "non";
1444 italcorr x_height#*slant;
1445 adjust_fit(0,0);
1446 pickup tiny.nib;
1447 numeric tim[]; path p[]; oblu:=2oblu;
1448 pos0(hair,0); pos1(.5[stem,hair],0); pos2(.5[stem,hair],0);
1449 pos3(hair,-90); pos4(curve,180); pos5(hair,90);
1450 pos6(hair,0); pos7(hair,0); pos8(stem,180);
1451 top y0l=h; x0r=w-u;
1452 rt x1r=w-1.5u; x2=x1-stem; top y1=h-u; y2=.5bar_height;
1453 x3=.5x2; x5=.55x1; bot y3r=-o; top y5r=h+o;
1454 lft x4r=u; y4=bar_height; y6=.75bar_height; x6=x2;
1455 x7=w-u; bot y7l=-o; lft x8l=w-u; y8=.75curve;
1456 z8'=z8+.2stem*right+o*up; z8''=z8+.5(stem-currentbreadth)*dir225;
1457 p0=z0r..z1r...z2r..z3r..z4r..z5r..z6r..{z7-z6}z7r;
1458 p1=z7l{z6-z7}..z6l..z5l..z4l..z3l..z2l---z1l..z0l;
1459 (tim0,tim1-5)=p0 intersectiontimes subpath (5,infinity) of p0;
1460 (tim2,tim3)=p1 intersectiontimes p0;
1461 (tim4-4,tim5-4)=subpath(4,infinity) of p0 intersectiontimes subpath (3,infinity) of p1;
1462 (tim6,tim7-4)=subpath(0,3) of p1 intersectiontimes subpath (4,infinity) of p1;
1463 filldraw subpath(0,rundy(p0,tim0).zpet) of p0..subpath(rundy(p0,tim1),infinity) of p0
1464 ..subpath(0,rundy(p1,tim2).zpet) of p1
1465 ..subpath(rundy(p0,tim3),rundy(p0,(tim4,.5bar_height)).zpet) of p0
1466 ..subpath(rundy(p1,(tim5,.5bar_height)),infinity) of p1..cycle;
1467 infill subpath (rundy(p1,tim6),rundy(p1,tim7).zpet) of p1..cycle;
1468 penlabels(0,1,2,3,4,5,6,7,8); labels(8',8'');
1469 endchar;
1470
1471 iff known chars.greek_beta:
1472 bskchar "The Greek letter beta";
1473 beginchar(chars.greek_beta,9u#,asc_height#,desc_depth#); uni "0x03B2";
1474 italcorr bar_height#*slant;
1475 adjust_fit(0,0);
1476 pickup tiny.nib;
1477 numeric tim[]; path p[]; oblu:=2oblu;
1478 pos1(hair,180); pos2(hair,180);
1479 pos3(hair,90); pos4(stem,0); pos5(hair,180); pos5'(hair,120); pos5''(.5[hair,stem],-30);
1480 pos6(curve,-30); pos7(hair,-90); pos8(stem,180);
1481 lft x1r=lft x2r=u; y1=-d; y2=.5[h,x_height];
1482 x3=.5w-stem; top y3r=h+o; rt x4r=w-2.5u; rt x6r=w-u;
1483 y5=.25[x_height,bar_height]; y4=.5[x_height,h]; y6=.5[y5,0];
1484 x5=x3; x7=.5[x2l,x6]; bot y7r=-o;
1485 x5'=x5''=.5[x4,x5]; .5[y5',y5'']=y5; y5'-y5''=.5(x4-x5);
1486 x8r=x2l+stem; y8=.25bar_height;
1487 z8'=z8+.2stem*right+o*down; z8''=z8+.5(stem-currentbreadth)*dir135;
1488 p0=z1r---z2r..z3r..z4r..z5''r..z5r..z5'r..z6r..{left}z7r..z8r..z8''..z8l{down}..z8';
1489 p1=z8'..z7l{right}..z6l..z5'l..z5l..z5''l..z4l..z3l..z2l---z1l;
1490 (tim0,tim1-5)=subpath (0,4) of p0 intersectiontimes subpath (5,infinity) of p0;
1491 (tim2,tim3-4)=subpath(0,3) of p1 intersectiontimes subpath(4,infinity) of p1;
1492 tim4-3=xpart(subpath(3,5) of p0 intersectiontimes p1);
1493 (tim5-6,tim6-5)=subpath(6,infinity) of p0 intersectiontimes subpath (5,infinity) of p1;
1494 tim7=xpart(subpath(0,3) of p1 intersectiontimes subpath (4,infinity) of p1);
1495 filldraw subpath(0,rundy(p0,(tim0,hair)).zpet) of p0
1496 ..subpath(rundy(p0,(tim1,hair)),infinity) of p0
1497 ..subpath(0,rundy(p1,tim2).zpet) of p1
1498 ..subpath(rundy(p0,tim4),rundy(p0,tim5).zpet) of p0
1499 ..subpath(rundy(p1,tim6),infinity) of p1..cycle;
1500 oblu:=f_obl;
1501 infill subpath(rundy(p1,tim6).zpet,rundy(p1,tim7)) of p1..cycle;
1502 penlabels(0,1,2,3,4,5,5',5'',6,7,8); labels(8',8'');
1503 math_fit(desc_depth#*slant,ic#);
1504 endchar;
1505
1506 iff known chars.greek_beta_BB:
1507 bskchar "The blackboard-bold Greek letter beta";
1508 beginchar(chars.greek_beta_BB,9.5u#,asc_height#,desc_depth#); uni "non";
1509 italcorr bar_height#*slant;
1510 adjust_fit(0,0);
1511 pickup tiny.nib;
1512 numeric tim[]; path p[]; oblu:=2oblu;
1513 pos1(.8cap_stem,180); pos2(.8cap_stem,180);
1514 pos3(hair,90); pos4(stem,0); pos5(hair,180); pos5'(hair,120); pos5''(.5[hair,stem],-30);
1515 pos6(cap_stem,-30); pos7(hair,-90); pos8(stem,180);
1516 lft x1r=lft x2r=u; y1=-d; y2=.5[h,x_height];
1517 x3=.5w-stem; top y3r=h+o; rt x4r=w-2.5u; rt x6r=w-u;
1518 y5=.25[x_height,bar_height]; y4=.5[x_height,h]; y6=.5[y5,0];
1519 x5=x3; x7=.5[x2l,x6]; bot y7r=-o;
1520 x5'=x5''=.5[x4,x5]; .5[y5',y5'']=y5; y5'-y5''=.5(x4-x5);
1521 x8r=x2l+stem; y8=.25bar_height;
1522 z8'=z8+.2stem*right+o*down; z8''=z8+.5(stem-currentbreadth)*dir135;
1523 p0=z1r---z2r..z3r..z4r..z5''r..z5r..z5'r..z6r..{left}z7r..z8r..z8''..z8l{down}..z8';
1524 p1=z8'..z7l{right}..z6l..z5'l..z5l..z5''l..z4l..z3l..z2l---z1l;
1525 (tim0,tim1-5)=subpath (0,4) of p0 intersectiontimes subpath (5,infinity) of p0;
1526 (tim2,tim3-4)=subpath(0,3) of p1 intersectiontimes subpath(4,infinity) of p1;
1527 tim4-3=xpart(subpath(3,5) of p0 intersectiontimes p1);
1528 (tim5-6,tim6-5)=subpath(6,infinity) of p0 intersectiontimes subpath (5,infinity) of p1;
1529 tim7=xpart(subpath(0,3) of p1 intersectiontimes subpath (4,infinity) of p1);
1530 filldraw subpath(0,rundy(p0,(tim0,hair)).zpet) of p0
1531 ..subpath(rundy(p0,(tim1,hair)),infinity) of p0
1532 ..subpath(0,rundy(p1,tim2).zpet) of p1
1533 ..subpath(rundy(p0,tim4),rundy(p0,tim5).zpet) of p0
1534 ..subpath(rundy(p1,tim6),infinity) of p1..z1+tiny*down..cycle;
1535 oblu:=f_obl;
1536 infill subpath(rundy(p1,tim6).zpet,rundy(p1,tim7)) of p1..cycle;
1537 p100=subpath(0,2) of p0;
1538 p101=subpath(7,infinity) of p1;
1539 p102=subpath(5,infinity) of p0;
1540 p103=subpath(0,4) of p1;
1541 z100=bsktouch(p100,down,p101,up);
1542 z101=bsktouch(p102,up,p103,down);
1543 tim100=xpart(p100 intersectiontimes (z100--(x100,y3r+u)));
1544 tim101=xpart(p101 intersectiontimes (z100--(x100,y2)));
1545 tim102=xpart(p102 intersectiontimes (z101--(x101,-d)));
1546 tim103=xpart(p103 intersectiontimes (z101--(x101,y6)));
1547 oblu:=.8bbw;
1548 infill subpath(0,rundy(p100,tim100).zpet) of p100
1549 ..subpath(rundy(p101,tim101),infinity) of p101..z1+tiny*down..cycle;
1550 infill subpath(rundy(p0,tim1),rundy(p0,tim102+5).zpet) of p0
1551 ..subpath(rundy(p103,tim103),rundy(p103,tim2).zpet) of p103..cycle;
1552 penlabels(0,1,2,3,4,5,5',5'',6,7,8); labels(8',8'',100,101);
1553 endchar;
1554
1555 iff known chars.greek_beta_SS:
1556 bskchar "The sans-serif Greek letter beta";
1557 beginchar(chars.greek_beta_SS,9u#,asc_height#,desc_depth#); uni "non";
1558 italcorr bar_height#*slant;
1559 adjust_fit(0,0);
1560 pickup tiny.nib;
1561 numeric tim[]; path p[]; oblu:=2oblu;
1562 pos1(hair,180); pos2(hair,180);
1563 pos3(hair,90); pos4(stem,0); pos5(hair,180); pos5'(hair,120); pos5''(.5[hair,stem],-30);
1564 pos6(curve,-30); pos7(hair,-90); pos8(hair,-90);
1565 lft x1r=lft x2r=u; y1=-d; y2=.5[h,x_height];
1566 x3=.5w-stem; top y3r=h+o; rt x4r=w-2.5u; rt x6r=w-u;
1567 y5=.25[x_height,bar_height]; y4=.5[x_height,h]; y6=.5[y5,0];
1568 x5=x3; x7=.5[x2l,x6]; bot y7r=-o;
1569 x5'=x5''=.5[x4,x5]; .5[y5',y5'']=y5; y5'-y5''=.5(x4-x5);
1570 x8r=x2l+stem; y8r=y7r;
1571 z8'=z8+.2stem*right+o*down; z8''=z8+.5(stem-currentbreadth)*dir135;
1572 p0=z1r---z2r..z3r..z4r..z5''r..z5r..z5'r..z6r..{left}z7r..z8r..{right}z8l;
1573 p1=z8l---z7l..z6l..z5'l..z5l..z5''l..z4l..z3l..z2l---z1l;
1574 (tim0,tim1-5)=subpath (0,4) of p0 intersectiontimes subpath (5,infinity) of p0;
1575 (tim2,tim3-4)=subpath(0,3) of p1 intersectiontimes subpath(4,infinity) of p1;
1576 tim4-3=xpart(subpath(3,5) of p0 intersectiontimes p1);
1577 (tim5-6,tim6-5)=subpath(6,infinity) of p0 intersectiontimes subpath (5,infinity) of p1;
1578 tim7=xpart(subpath(0,3) of p1 intersectiontimes subpath (4,infinity) of p1);
1579 filldraw subpath(0,rundy(p0,(tim0,hair)).zpet) of p0
1580 ..subpath(rundy(p0,(tim1,hair)),infinity) of p0
1581 ..subpath(0,rundy(p1,tim2).zpet) of p1
1582 ..subpath(rundy(p0,tim4),rundy(p0,tim5).zpet) of p0
1583 ..subpath(rundy(p1,tim6),infinity) of p1..cycle;
1584 oblu:=f_obl;
1585 infill subpath(rundy(p1,tim6).zpet,rundy(p1,tim7)) of p1..cycle;
1586 penlabels(0,1,2,3,4,5,5',5'',6,7,8); labels(8',8'');
1587 endchar;
1588
1589 iff known chars.greek_beta_curved:
1590 bskchar "The Greek letter beta (curved version)";
1591 beginchar(chars.greek_beta_curved,9u#,asc_height#,desc_depth#); uni "non";
1592 italcorr bar_height#*slant;
1593 adjust_fit(0,0);
1594 pickup tiny.nib;
1595 numeric tim[]; path p[]; oblu:=2oblu;
1596 pos0(curve,180); pos1(hair,180); pos2(hair,180);
1597 pos3(hair,90); pos4(stem,0); pos5(hair,180); pos5'(hair,120); pos5''(.5[hair,stem],-30);
1598 pos6(curve,-30); pos7(hair,-90); pos8(stem,180);
1599 lft x1r=lft x2r=u; y1=-d+curve; y2=.5[h,x_height]; y0=-d; x0l=x1r-o;
1600 x3=.5w-stem; top y3r=h+o; rt x4r=w-2.5u; rt x6r=w-u;
1601 y5=.25[x_height,bar_height]; y4=.5[x_height,h]; y6=.5[y5,0];
1602 x5=x3; x7=.5[x2l,x6]; bot y7r=-o;
1603 x5'=x5''=.5[x4,x5]; .5[y5',y5'']=y5; y5'-y5''=.5(x4-x5);
1604 x8r=x2l+stem; y8=.25bar_height;
1605 z8'=z8+.2stem*right+o*down; z8''=z8+.5(stem-currentbreadth)*dir135;
1606 p0=z1r---z2r..z3r..z4r..z5''r..z5r..z5'r..z6r..{left}z7r..z8r..z8''..z8l{down}..z8';
1607 p1=z8'..z7l{right}..z6l..z5'l..z5l..z5''l..z4l..z3l..z2l---z1l;
1608 (tim0,tim1-5)=subpath (0,4) of p0 intersectiontimes subpath (5,infinity) of p0;
1609 (tim2,tim3-4)=subpath(0,3) of p1 intersectiontimes subpath(4,infinity) of p1;
1610 tim4-3=xpart(subpath(3,5) of p0 intersectiontimes p1);
1611 (tim5-6,tim6-5)=subpath(6,infinity) of p0 intersectiontimes subpath (5,infinity) of p1;
1612 tim7=xpart(subpath(0,3) of p1 intersectiontimes subpath (4,infinity) of p1);
1613 filldraw z0r..subpath(0,rundy(p0,(tim0,hair)).zpet) of p0
1614 ..subpath(rundy(p0,(tim1,hair)),infinity) of p0
1615 ..subpath(0,rundy(p1,tim2).zpet) of p1
1616 ..subpath(rundy(p0,tim4),rundy(p0,tim5).zpet) of p0
1617 ..subpath(rundy(p1,tim6),infinity) of p1..z0l..z0r&cycle;
1618 oblu:=f_obl;
1619 infill subpath(rundy(p1,tim6).zpet,rundy(p1,tim7)) of p1..cycle;
1620 penlabels(0,1,2,3,4,5,5',5'',6,7,8); labels(8',8'');
1621 math_fit(desc_depth#*slant,ic#);
1622 endchar;
1623
1624 iff known chars.greek_varbeta:
1625 bskchar "The Greek letter beta---alternative";
1626 beginchar(chars.greek_varbeta,9.5u#,asc_height#,0); uni "0x03D0";
1627 italcorr bar_height#*slant;
1628 adjust_fit(0,0);
1629 pickup tiny.nib;
1630 numeric tim[]; path p[]; oblu:=2oblu;
1631 pos1(stem,180); pos2(hair,90); pos3(hair,0); pos4(hair,180);
1632 pos4'(hair,120); pos4''(.5[hair,stem],-30);
1633 pos5(curve,-30); pos6(hair,-90);
1634 lft x1r=u; y1=.5h;
1635 x2=x4=.5w-.5stem; top y2r=h+o; rt x3r=w-2.5u; rt x5r=w-u;
1636 y4=.25[x_height,bar_height]; y3=.5[x_height,h]; y5=.5[y4,0];
1637 x6=.5[x1l,x5]; bot y6r=-o;
1638 x4'=x4''=.5[x3,x4]; .5[y4',y4'']=y4; y4'-y4''=.5(x3-x4);
1639 p0=z1r..z2r..z3r..z4''r..z4r..z4'r..z5r..{left}z6r..cycle;
1640 p1=z1l..z6l{right}..z5l..z4'l..z4l..z4''l..z3l..z2l..cycle;
1641 (tim0,tim1-5)=subpath (0,4) of p0 intersectiontimes subpath (5,length p0) of p0;
1642 (tim2,tim3-4)=subpath(0,3) of p1 intersectiontimes subpath(4,length p1) of p1;
1643 tim4-2=xpart(subpath(2,4) of p0 intersectiontimes p1);
1644 (tim5-5,tim6-4)=subpath(5,length p0) of p0 intersectiontimes subpath (4,length p1) of p1;
1645 tim7=xpart(subpath(0,3) of p1 intersectiontimes subpath (4,length p1) of p1);
1646 filldraw subpath(0,rundy(p0,(tim0,hair)).zpet) of p0
1647 ..subpath(rundy(p0,(tim1,hair)),length p0) of p0&cycle;
1648 infill subpath(0,rundy(p1,tim2).zpet) of p1
1649 ..subpath(rundy(p0,tim4),rundy(p0,tim5).zpet) of p0
1650 ..subpath(rundy(p1,tim6),length p1) of p1..cycle;
1651 oblu:=f_obl;
1652 infill subpath(rundy(p1,tim6).zpet,rundy(p1,tim7)) of p1..cycle;
1653 penlabels(0,1,2,3,4,4',4'',5,6);
1654 math_fit(-.5asc_height#*slant,ic#);
1655 endchar;
1656
1657 iff known chars.greek_varbeta_BB:
1658 bskchar "The blackboard-bold Greek letter beta---alternative";
1659 beginchar(chars.greek_varbeta_BB,10u#,asc_height#,0); uni "non";
1660 italcorr bar_height#*slant;
1661 adjust_fit(0,0);
1662 pickup tiny.nib;
1663 numeric tim[]; path p[]; oblu:=2oblu;
1664 pos1(cap_stem,180); pos2(hair,90); pos3(hair,0); pos4(hair,180);
1665 pos4'(hair,120); pos4''(.5[hair,stem],-30);
1666 pos5(cap_stem,-30); pos6(hair,-90);
1667 lft x1r=u; y1=.5h;
1668 x2=x4=.5w; top y2r=h+o; rt x3r=w-2.5u; rt x5r=w-u;
1669 y4=.25[x_height,bar_height]; y3=.5[x_height,h]; y5=.5[y4,0];
1670 x6=.5[x1l,x5]; bot y6r=-o;
1671 x4'=x4''=.5[x3,x4]; .5[y4',y4'']=y4; y4'-y4''=.5(x3-x4);
1672 p0=z1r..z2r..z3r..z4''r..z4r..z4'r..z5r..{left}z6r..cycle;
1673 p1=z1l..z6l{right}..z5l..z4'l..z4l..z4''l..z3l..z2l..cycle;
1674 (tim0,tim1-5)=subpath (0,4) of p0 intersectiontimes subpath (5,length p0) of p0;
1675 (tim2,tim3-4)=subpath(0,3) of p1 intersectiontimes subpath(4,length p1) of p1;
1676 tim4-2=xpart(subpath(2,4) of p0 intersectiontimes p1);
1677 (tim5-5,tim6-4)=subpath(5,length p0) of p0 intersectiontimes subpath (4,length p1) of p1;
1678 tim7=xpart(subpath(0,3) of p1 intersectiontimes subpath (4,length p1) of p1);
1679 filldraw subpath(0,rundy(p0,(tim0,hair)).zpet) of p0
1680 ..subpath(rundy(p0,(tim1,hair)),length p0) of p0&cycle;
1681 infill subpath(0,rundy(p1,tim2).zpet) of p1
1682 ..subpath(rundy(p0,tim4),rundy(p0,tim5).zpet) of p0
1683 ..subpath(rundy(p1,tim6),length p1) of p1..cycle;
1684 oblu:=f_obl;
1685 infill subpath(rundy(p1,tim6).zpet,rundy(p1,tim7)) of p1..cycle;
1686 p100=subpath(-1,1) of p0;
1687 p101=subpath(-1,1) of p1;
1688 p102=subpath(5,infinity) of p0;
1689 p103=subpath(0,3) of p1;
1690 z100=bsktouch(p100,down,p101,up);
1691 z101=bsktouch(p100,up,p101,down);
1692 z102=bsktouch(p102,up,p103,down);
1693 tim100=xpart(p100 intersectiontimes (z100--(x100,2h)));
1694 tim101=xpart(p101 intersectiontimes (z100--(x100,y1)));
1695 tim102=xpart(p100 intersectiontimes (z101--(x101,y6r-u-5)));
1696 tim103=xpart(p101 intersectiontimes (z101--(x101,y1)));
1697 tim104=xpart(p102 intersectiontimes (z102--(x102,-d)));
1698 tim105=xpart(p103 intersectiontimes (z102--(x102,y5)));
1699 oblu:=.8bbw;
1700 infill subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100
1701 ..subpath(rundy(p101,tim101),rundy(p101,tim103).zpet) of p101..cycle;
1702 infill subpath(rundy(p0,tim1),rundy(p0,tim104+5).zpet) of p0
1703 ..subpath(rundy(p103,tim105),rundy(p103,tim2).zpet) of p103..cycle;
1704 penlabels(0,1,2,3,4,4',4'',5,6); labels(100,101,102);
1705 endchar;
1706
1707 iff known chars.greek_varbeta_SS:
1708 bskchar "The sans-serif Greek letter beta---alternative";
1709 beginchar(chars.greek_varbeta_SS,9.5u#,asc_height#,0); uni "non";
1710 italcorr bar_height#*slant;
1711 adjust_fit(0,0);
1712 pickup tiny.nib;
1713 numeric tim[]; path p[]; oblu:=2oblu;
1714 pos1(stem,180); pos2(hair,90); pos3(hair,0); pos4(hair,180);
1715 pos4'(hair,120); pos4''(.5[hair,stem],-30);
1716 pos5(curve,-30); pos6(hair,-90);
1717 lft x1r=u; y1=.5h;
1718 x2=x4=.5w-.5stem; top y2r=h+o; rt x3r=w-2.5u; rt x5r=w-u;
1719 y4=.25[x_height,bar_height]; y3=.5[x_height,h]; y5=.5[y4,0];
1720 x6=.5[x1l,x5]; bot y6r=-o;
1721 x4'=x4''=.5[x3,x4]; .5[y4',y4'']=y4; y4'-y4''=.5(x3-x4);
1722 p0=z1r..z2r..z3r..z4''r..z4r..z4'r..z5r..{left}z6r..cycle;
1723 p1=z1l..z6l{right}..z5l..z4'l..z4l..z4''l..z3l..z2l..cycle;
1724 (tim0,tim1-5)=subpath (0,4) of p0 intersectiontimes subpath (5,length p0) of p0;
1725 (tim2,tim3-4)=subpath(0,3) of p1 intersectiontimes subpath(4,length p1) of p1;
1726 tim4-2=xpart(subpath(2,4) of p0 intersectiontimes p1);
1727 (tim5-5,tim6-4)=subpath(5,length p0) of p0 intersectiontimes subpath (4,length p1) of p1;
1728 tim7=xpart(subpath(0,3) of p1 intersectiontimes subpath (4,length p1) of p1);
1729 filldraw subpath(0,rundy(p0,(tim0,hair)).zpet) of p0
1730 ..subpath(rundy(p0,(tim1,hair)),length p0) of p0&cycle;
1731 infill subpath(0,rundy(p1,tim2).zpet) of p1
1732 ..subpath(rundy(p0,tim4),rundy(p0,tim5).zpet) of p0
1733 ..subpath(rundy(p1,tim6),length p1) of p1..cycle;
1734 oblu:=f_obl;
1735 infill subpath(rundy(p1,tim6).zpet,rundy(p1,tim7)) of p1..cycle;
1736 penlabels(0,1,2,3,4,4',4'',5,6);
1737 endchar;
1738
1739 iff known chars.greek_gamma:
1740 bskchar "The Greek letter gamma";
1741 beginchar(chars.greek_gamma,11u#,x_height#,desc_depth#); uni "0x03B3";
1742 italcorr x_height#*slant;
1743 adjust_fit(0,0);
1744 pickup tiny.nib;
1745 numeric tim[]; path p[]; oblu:=2oblu;
1746 pos0(hair,150);
1747 pos1(stem,90); pos2(hair,0); pos3(hair,0); pos4(hair,-90); pos5(hair,180);
1748 pos6(hair,180); pos7(hair,135);
1749 x1=.5[u,x2]; top y1r=h+o; lft x0r=u; y0=bar_height; z0'=(x0r,y0l);
1750 x2=.75w; x3=w-2.5u; y3=-3/4d; y2=.5bar_height; bot y4r=-d; y3-y4=2(x3-x4);
1751 .3[x5,x3]=x4; y5=y3;
1752 x6r=x2r; y6=y2;
1753 top y7r=h; rt x7=w-u;
1754 p0=z0r..z1r..z2r...z3r..z4r..z5r..z6r..{dir45}z7r;
1755 p1=z7l{dir-135}..z6l..z5l..z4l..z3l...z2l..z1l..z0l;
1756 (tim0,tim1-5)=subpath(0,3) of p0 intersectiontimes subpath(5,infinity) of p0;
1757 (tim2,tim3-1)=subpath(0,2) of p1 intersectiontimes subpath (1,3) of p0;
1758 (tim4-4,tim5-4)=subpath(4,infinity) of p0 intersectiontimes subpath(4,infinity) of p1;
1759 filldraw subpath(0,rundy(p0,(tim0,.7(y7r-y2))).zpet) of p0
1760 ..subpath(rundy(p0,(tim1,.7(y7r-y2))),infinity) of p0
1761 ..subpath(0,rundy(p1,tim2).zpet) of p1
1762 ..subpath(rundy(p0,tim3),rundy(p0,tim4).zpet) of p0
1763 ..subpath(rundy(p1,tim5),infinity) of p1
1764 &z0l..z0'..cycle;
1765 penlabels(0,1,2,3,4,5,6,7); labels(0');
1766 math_fit(-bar_height#*slant-.5u#,0);
1767 endchar;
1768
1769 iff known chars.greek_gamma_BB:
1770 bskchar "The blackboard-bold Greek letter gamma";
1771 beginchar(chars.greek_gamma_BB,11u#,x_height#,desc_depth#); uni "0x213D";
1772 italcorr x_height#*slant;
1773 adjust_fit(0,0);
1774 pickup tiny.nib;
1775 numeric tim[]; path p[]; oblu:=2oblu;
1776 pos0(hair,150);
1777 pos1(stem,90); pos2(hair,0); pos3(hair,0); pos4(hair,-90); pos5(hair,180);
1778 pos6(hair,180); pos7(hair,135);
1779 x1=.5[u,x2]; top y1r=h+o; lft x0r=u; y0=bar_height; z0'=(x0r,y0l);
1780 x2=.75w; x3=w-2.5u; y3=-3/4d; y2=.5bar_height; bot y4r=-d; y3-y4=2(x3-x4);
1781 .3[x5,x3]=x4; y5=y3;
1782 x6r=x2r; y6=y2;
1783 top y7r=h; rt x7=w-u;
1784 p0=z0r..z1r..z2r...z3r..z4r..z5r..z6r..{dir45}z7r;
1785 p1=z7l{dir-135}..z6l..z5l..z4l..z3l...z2l..z1l..z0l;
1786 (tim0,tim1-5)=subpath(0,3) of p0 intersectiontimes subpath(5,infinity) of p0;
1787 (tim2,tim3-1)=subpath(0,2) of p1 intersectiontimes subpath (1,3) of p0;
1788 (tim4-4,tim5-4)=subpath(4,infinity) of p0 intersectiontimes subpath(4,infinity) of p1;
1789 filldraw subpath(0,rundy(p0,(tim0,.7(y7r-y2))).zpet) of p0
1790 ..subpath(rundy(p0,(tim1,.7(y7r-y2))),infinity) of p0
1791 ..subpath(0,rundy(p1,tim2).zpet) of p1
1792 ..subpath(4,rundy(p0,tim4).zpet) of p0 shifted ((cap_stem-hair-currentbreadth)*left)
1793 ..z1l..z0l&z0l..z0'..cycle;
1794 infill subpath(rundy(p1,1),rundy(p1,tim2).zpet) of p1..subpath(rundy(p0,tim3),4) of p0..subpath(4,rundy(p0,6).zpet) of p0 shifted ((cap_stem-hair-currentbreadth)*left)..cycle;
1795 penlabels(0,1,2,3,4,5,6,7); labels(0');
1796 endchar;
1797
1798 iff known chars.greek_gamma_SS:
1799 bskchar "The sans-serif Greek letter gamma";
1800 beginchar(chars.greek_gamma_SS,11u#,x_height#,desc_depth#); uni "non";
1801 italcorr x_height#*slant;
1802 adjust_fit(0,0);
1803 pickup tiny.nib;
1804 numeric tim[]; path p[]; oblu:=2oblu;
1805 pos0(hair,150);
1806 pos1(stem,90); pos2(hair,0); pos3(hair,0); pos4(hair,-90); pos5(hair,180);
1807 pos6(hair,180); pos7(hair,135);
1808 x1=.5[u,x2]; top y1r=h+o; lft x0r=u; y0=bar_height; z0'=(x0r,y0l);
1809 x2=.75w; x3r=x6l; y3=-3/4d; y2=.5bar_height; bot y4r=-d; y3-y4=2(x3-x4);
1810 .3[x5,x3]=x4; y5=y3;
1811 x6r=x2r; y6=y2;
1812 top y7r=h; rt x7=w-u;
1813 p0=z0r..z1r..z2r...z3r..z4r..z5r..z6r..{dir45}z7r;
1814 p1=z7l{dir-135}..z6l..z5l..z4l..z3l...z2l..z1l..z0l;
1815 (tim0,tim1-5)=subpath(0,3) of p0 intersectiontimes subpath(5,infinity) of p0;
1816 (tim2,tim3-1)=subpath(0,2) of p1 intersectiontimes subpath (1,3) of p0;
1817 (tim4-4,tim5-4)=subpath(4,infinity) of p0 intersectiontimes subpath(4,infinity) of p1;
1818 filldraw subpath(0,rundy(p0,(tim0,.7(y7r-y2))).zpet) of p0
1819 ..subpath(rundy(p0,(tim1,.7(y7r-y2))),infinity) of p0
1820 ..subpath(0,rundy(p1,1).zpet) of p1---z3r..z4r...z5r---z2l
1821 ..subpath(rundy(p1,5),infinity) of p1..cycle;
1822 penlabels(0,1,2,3,4,5,6,7); labels(0');
1823 endchar;
1824
1825 iff known chars.greek_gamma_curved:
1826 bskchar "The Greek letter gamma (curved version)";
1827 beginchar(chars.greek_gamma_curved,11u#,x_height#,desc_depth#); uni "non";
1828 italcorr x_height#*slant-.5u#;
1829 adjust_fit(0,0);
1830 pickup tiny.nib;
1831 numeric tim[]; path p[]; oblu:=2oblu;
1832 pos0(stem,150);
1833 pos1(hair,90); pos2(stem,0); pos3(.9stem,0); pos4(hair,-90); pos5(hair,180);
1834 pos6(hair,180); pos7(hair,90); pos8(stem,0);
1835 x1=.5[u,x2]; top y1r=h+o; lft x0r=u; y0=y1-stem; z0'=(x0r,y0l);
1836 x3=x2=.5w-.5stem; y3=-2/3d; y2=bar_height; bot y4r=-d; y3-y4=4/3(x3-x4);
1837 .3[x5,x3]=x4; y5=-1/2d; x6=.35[x2l,x8]; y6=y2;
1838 x7=x8-stem; top y7r=.25[h,bar_height]; rt x8r=w-u; y8=y7-stem;
1839 z8'=z8+.2stem*down+o*left; z8''=z8+.5(stem-currentbreadth)*dir45;
1840 p0=z0r..z1r..z2r---z3r..z4r..z5r..z6r..{right}z7r..{down}z8r..z8'..{up}z8l;
1841 p1=z8l{up}..{left}z7l..z6l..z5l..z4l..z3l---z2l..z1l..z0l;
1842 (tim0,tim1-5)=subpath(0,3) of p0 intersectiontimes subpath(5,infinity) of p0;
1843 (tim2,tim3-1)=p1 intersectiontimes subpath(1,3) of p0;
1844 (tim4-4,tim5-5)=subpath(4,infinity) of p0 intersectiontimes subpath(5,infinity) of p1;
1845 (tim6,tim7-5)=subpath(0,4) of p1 intersectiontimes subpath(5,infinity) of p1;
1846 filldraw subpath(0,rundy(p0,(tim0,y7r-y2)).zpet) of p0
1847 ..subpath(rundy(p0,(tim1,y7r-y2)),infinity) of p0
1848 ..subpath(0,rundy(p1,tim2).zpet) of p1
1849 ..subpath(rundy(p0,tim3),rundy(p0,tim4).zpet) of p0
1850 ..subpath(rundy(p1,tim5),infinity) of p1
1851 &z0l..z0'..cycle;
1852 oblu:=x3l-x5;
1853 infill subpath(rundy(p1,tim6),rundy(p1,tim7).zpet) of p1..cycle;
1854 penlabels(0,1,2,3,4,5,6,7,8); labels(0',8',8'');
1855 math_fit(-.5u#,ic#-3u#);
1856 endchar;
1857
1858 iff known chars.greek_digamma:
1859 bskchar "The Greek letter digamma";
1860 beginchar(chars.greek_digamma,9u#,x_height#,desc_depth#); uni "0x03DD";
1861 italcorr x_height#*slant-.5u#;
1862 adjust_fit(cap_serif_fit#,0);
1863 pickup tiny.nib;
1864 pos1(hair,0); pos2(hair,0); pos3(curve,100);
1865 pos3'(stem,90); pos4(stem,90); pos5(curve,90); pos5'(stem,80);
1866 lft x1l=lft x2l=u; bot y1=-d; top y2=h-hair; top y3r=top y3'r=h; rt x3l=w-1.25u;
1867 x3'=1/3[x2,x3]; x4=x1r; y4=.25bar_height; y5'r=y4r; y5=y5';
1868 x5-x4=.85(x3-x2); x5'=1/3[x4,x5];
1869 y2r:=y2r-stem+currentbreadth;
1870 bskpoints(1,2,0,hair);
1871 filldraw z1l---obl(2l,1l,3'r)---z3'r..{dir-10}z3r..{dir200}z3l..z3'l
1872 ---obl(2r,3'l,1r)---obl(4r,2r,5'r)---z5'r..{right}z5r..z5l{dir190}
1873 ..z5'l---obl(4l,5'l,1r)---z1rr..cycle;
1874 penlabels(1,2,3,3',4,5,5'); labels(1rr);
1875 math_fit(0,-.5u#);
1876 endchar;
1877
1878 iff known chars.greek_digamma_BB:
1879 bskchar "The blackboard-bold Greek letter digamma";
1880 beginchar(chars.greek_digamma_BB,9.5u#,x_height#,desc_depth#); uni "non";
1881 italcorr x_height#*slant;
1882 adjust_fit(cap_serif_fit#,0);
1883 pickup tiny.nib;
1884 pos1(.8cap_stem,0); pos2(.8cap_stem,0); pos3(curve,100);
1885 pos3'(stem,90); pos4(stem,90); pos5(curve,90); pos5'(stem,80);
1886 lft x1l=lft x2l=u; bot y1=-d; top y2=h-hair; top y3r=top y3'r=h; rt x3l=w-1.25u;
1887 x3'=1/3[x2,x3]; x4=x1r; y4=.25bar_height; y5'r=y4r; y5=y5';
1888 x5-x4=.85(x3-x2); x5'=1/3[x4,x5];
1889 y2r:=y2r-stem+currentbreadth;
1890 bskpoints(1,2,0,hair);
1891 filldraw z1l---obl(2l,1l,3'r)---z3'r..{dir-10}z3r..{dir200}z3l..z3'l
1892 ---obl(2r,3'l,1r)---obl(4r,2r,5'r)---z5'r..{right}z5r..z5l{dir190}
1893 ..z5'l---obl(4l,5'l,1r)---z1rr..cycle;
1894 penlabels(1,2,3,3',4,5,5'); labels(1rr);
1895 z100=(x2r,y2);
1896 infill ifobl(2l,2r,1l,1r,,)---z1rr..z1l---cycle;
1897 endchar;
1898
1899 iff known chars.greek_digamma_SS:
1900 bskchar "The sans-serif Greek letter digamma";
1901 beginchar(chars.greek_digamma_SS,9u#,x_height#,desc_depth#); uni "non";
1902 italcorr x_height#*slant;
1903 adjust_fit(cap_serif_fit#,0);
1904 pickup tiny.nib;
1905 pos1(hair,0); pos2(hair,0); pos3(curve,100);
1906 pos3'(stem,90); pos4(stem,90); pos5(curve,90); pos5'(stem,80);
1907 lft x1l=lft x2l=u; bot y1=-d; top y2=h-.2hair; top y3r=top y3'r=h; rt x3l=w-1.25u;
1908 x3'=1/3[x2,x3]; x4=x1r; y4=.25bar_height; y5'r=y4r; y5=y5';
1909 x5-x4=.85(x3-x2); x5'=1/3[x4,x5];
1910 y2r:=y2r-stem+currentbreadth;
1911 bskpoints(1,2,0,hair);
1912 filldraw z1l---obl(2l,1l,3'r)---z3'r..{dir-10}z3r..{dir200}z3l..z3'l
1913 ---obl(2r,3'l,1r)---obl(4r,2r,5'r)---z5'r..{right}z5r..z5l{dir190}
1914 ..z5'l---obl(4l,5'l,1r)---z1rr..cycle;
1915 penlabels(1,2,3,3',4,5,5'); labels(1rr);
1916 endchar;
1917
1918 iff known chars.greek_delta:
1919 bskchar "The Greek letter delta";
1920 beginchar(chars.greek_delta,9u#,asc_height#,0); uni "0x03B4";
1921 italcorr .5[x_height#,asc_height#]*slant;
1922 adjust_fit(0,0);
1923 pickup tiny.nib;
1924 numeric tim[]; path p[]; oblu:=2oblu;
1925 pos1(curve,0); pos2(hair,90); pos3(stem,180); pos4(hair,270); pos5(hair,180);
1926 pos6(stem,180); pos7(hair,180); pos8(hair,90); pos9(stem,0);
1927 lft x1l=u; rt x3l=w-u; y1=y3=.5y4; .5[x1,x3]=x2; x4=x2-stem;
1928 bot y2l=-o; y4l=.9x_height; z5l=z3r; y6=x_height; x6=.25[x3,x4];
1929 y7=h-curve; x7=x4; top y8r=h+o; x8=.5[x4,x6];
1930 rt x9r=w-u; y9''-y8r=2/3(x8-x9);
1931 z9'=z9+.2stem*down+o*left; z9''=z9+.5(stem-currentbreadth)*dir45;
1932 p0=z3r..z6r..z7r..{right}z8r..z9''..z9r{down}..z9'..z9l..{left}z8l;
1933 p1=z8l{left}....z7l..z6l..z3l..z2l..{up}z1l..z4l..z5l;
1934 z0=bsktouch(subpath(0,2) of p0,left,subpath(5,infinity) of p1,right);
1935 tim0=xpart(subpath(0,2) of p0 intersectiontimes (z0--(w,y0)));
1936 tim1-5=xpart(subpath(5,infinity) of p1 intersectiontimes (z0--(x4,y0)));
1937 filldraw subpath(0,rundy(p1,tim1).zpet) of p1..subpath(rundy(p0,tim0),infinity) of p0..cycle;
1938 infill z1r{up}..z4r..z5l..z2r..{up}cycle;
1939 penlabels(1,2,3,4,5,6,7,8,9); labels(9',9'');
1940 math_fit(mft,u#);
1941 endchar;
1942
1943 iff known chars.greek_delta_BB:
1944 bskchar "The blackboard-bold Greek letter delta";
1945 beginchar(chars.greek_delta_BB,9.5u#,asc_height#,0); uni "non";
1946 italcorr .5[x_height#,asc_height#]*slant;
1947 adjust_fit(0,0);
1948 pickup tiny.nib;
1949 numeric tim[]; path p[]; oblu:=2oblu;
1950 pos1(cap_stem,0); pos2(hair,90); pos3(cap_stem,180); pos4(hair,270); pos5(hair,180);
1951 pos6(.8cap_stem,180); pos7(hair,180); pos8(hair,90); pos9(stem,0);
1952 lft x1l=u; rt x3l=w-u; y1=y3=.5y4; .5[x1,x3]=lft x2; x4=x2-stem;
1953 bot y2l=-o; y4l=.9x_height; z5l=z3r; y6=x_height; x6=.25[x3,x4];
1954 y7=h-curve; x7=x4; top y8r=h+o; x8=.5[x4,x6];
1955 rt x9r=w-u; y9''-y8r=2/3(x8-x9);
1956 z9'=z9+.2stem*down+o*left; z9''=z9+.5(stem-currentbreadth)*dir45;
1957 p0=z3r..z6r..z7r..{right}z8r..z9''..z9r{down}..z9'..z9l..{left}z8l;
1958 p1=z8l{left}....z7l..z6l..z3l..z2l..{up}z1l..z4l..z5l;
1959 z0=bsktouch(subpath(0,2) of p0,left,subpath(5,infinity) of p1,right);
1960 tim0=xpart(subpath(0,2) of p0 intersectiontimes (z0--(w,y0)));
1961 tim1-5=xpart(subpath(5,infinity) of p1 intersectiontimes (z0--(x4,y0)));
1962 filldraw subpath(0,rundy(p1,tim1).zpet) of p1..subpath(rundy(p0,tim0),infinity) of p0..cycle;
1963 infill z1r{up}..z4r..z5l..z2r..{up}cycle;
1964 p100=subpath(4,6) of p1;
1965 p101=subpath(0,3) of (z4r..{down}z1r..z2r..z5l..cycle);
1966 p102=subpath(1,4) of p1;
1967 p103=subpath(0,2) of p0;
1968 z100=bsktouch(p100,up,p101,down);
1969 z101=bsktouch(p100,down,p101,up);
1970 z102=bsktouch(p102,up,p101,down);
1971 z103=bsktouch(p102,left,p103,right);
1972 tim100=xpart(p100 intersectiontimes (z100--(x100,y2l-5)));
1973 tim101=xpart(p101 intersectiontimes (z100--(x100,y1)));
1974 tim102=xpart(p100 intersectiontimes (z101--(x101,y4l+5)));
1975 tim103=xpart(p101 intersectiontimes (z101--(x101,y1)));
1976 tim104=xpart(p102 intersectiontimes (z102--(if boldmath:x2 else:x102 fi,y2l-5)));
1977 tim105=xpart(p101 intersectiontimes (z102--(if boldmath:x2 else:x102 fi,y1)));
1978 tim106=xpart(p102 intersectiontimes (z103--(w,y103)));
1979 tim107=xpart(p103 intersectiontimes (z103--(0,y103)));
1980 tim108=xpart(p103 intersectiontimes ((x2,y3)--(w,y3)));
1981 oblu:=bbw;
1982 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
1983 ..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle;
1984 infill subpath(rundy(p102,tim106),rundy(p102,tim104).zpet) of p102
1985 ..subpath(rundy(p101,tim105),rundy(p101,3).zpet) of p101
1986 ..subpath(rundy(p103,tim108),rundy(p103,tim107).zpet) of p103..cycle;
1987 penlabels(1,2,3,4,5,6,7,8,9); labels(9',9'',100,101,102,103);
1988 endchar;
1989
1990 iff known chars.greek_delta_SS:
1991 bskchar "The sans-serif Greek letter delta";
1992 beginchar(chars.greek_delta_SS,9u#,asc_height#,0); uni "non";
1993 italcorr .5[x_height#,asc_height#]*slant;
1994 adjust_fit(0,0);
1995 pickup tiny.nib;
1996 numeric tim[]; path p[]; oblu:=2oblu;
1997 pos1(curve,0); pos2(hair,90); pos3(stem,180); pos4(hair,270); pos5(hair,180);
1998 pos6(stem,180); pos7(hair,180); pos8(hair,90); pos9(hair,90);
1999 lft x1l=u; rt x3l=w-u; y1=y3=.5y4; .5[x1,x3]=x2; x4=x2-stem;
2000 bot y2l=-o; y4l=.9x_height; z5l=z3r; y6=x_height; x6=.25[x3,x4];
2001 y7=h-curve; x7=x4; top y8r=h+o; x8=.5[x4,x6];
2002 rt x9r=w-u; top y9r=bot y8r;
2003 p0=z3r..z6r..z7r..{right}z8r---z9r..z9l---z8l;
2004 p1=z8l{left}....z7l..z6l..z3l..z2l..{up}z1l..z4l..z5l;
2005 z0=bsktouch(subpath(0,2) of p0,left,subpath(5,infinity) of p1,right);
2006 tim0=xpart(subpath(0,2) of p0 intersectiontimes (z0--(w,y0)));
2007 tim1-5=xpart(subpath(5,infinity) of p1 intersectiontimes (z0--(x4,y0)));
2008 filldraw subpath(0,rundy(p1,tim1).zpet) of p1..subpath(rundy(p0,tim0),infinity) of p0..cycle;
2009 infill z1r{up}..z4r..z5l..z2r..{up}cycle;
2010 penlabels(1,2,3,4,5,6,7,8,9);
2011 endchar;
2012
2013 iff known chars.greek_epsilon:
2014 bskchar "The Greek letter epsilon";
2015 beginchar(chars.greek_epsilon,7.2u#,x_height#,0); uni "0x03F5";
2016 italcorr x_height#*slant;
2017 adjust_fit(0,0);
2018 pickup tiny.nib;
2019 numeric tim[]; path p[]; oblu:=2oblu;
2020 pos1(stem,0); pos2(hair,90); pos3(stem,180);
2021 pos4(hair,-90); pos5(vair,-45);
2022 pos6(hair,90); pos7(hair,90);
2023 rt x1=w-u; top y2r=h+o; x2=.5w+u; lft x3r=u;
2024 y3=bar_height-.5stem; y1=.35[x_height,bar_height];
2025 x4=x2+o; bot y4r=-o;
2026 rt x5=w-u; y5=.15bar_height;
2027 y6=y7=y3; x6=x3; x7=x1l;
2028 z1'=z1+.2stem*down+o*left; z1''=z1+.5(stem-currentbreadth)*dir45;
2029 bskpoints(6,7,hair,hair);
2030 p0=z5l..z4l..z3l{up}..z2l..{down}z1l..z1'..z1r..z1''..z2r..{down}z3r..z4r..z5r;
2031 p1=z6l---z7ll..z7r---z6r;
2032 (tim0,tim1)=p0 intersectiontimes p1;
2033 (tim2-1,tim3)=subpath(1,infinity) of p1 intersectiontimes p0;
2034 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2035 ..subpath(rundy(p1,tim1),rundy(p1,tim2).zpet) of p1
2036 ..subpath(rundy(p0,tim3),infinity) of p0..cycle;
2037 penlabels(0,1,2,3,4,5,6,7); labels(1',1'',7ll);
2038 math_fit(mft,ic#-u#);
2039 endchar;
2040
2041 iff known chars.greek_epsilon_BB:
2042 bskchar "The blackboard-bold Greek letter epsilon";
2043 beginchar(chars.greek_epsilon_BB,7.2u#,x_height#,0); uni "non";
2044 italcorr x_height#*slant;
2045 adjust_fit(0,0);
2046 pickup tiny.nib;
2047 numeric tim[]; path p[]; oblu:=2oblu;
2048 pos1(stem,0); pos2(hair,90); pos3(cap_stem,180);
2049 pos4(hair,-90); pos5(vair,-45);
2050 pos6(hair,90); pos7(hair,90);
2051 rt x1=w-u; top y2r=h+o; x2=.5w+u; lft x3r=u;
2052 y3=bar_height-.5stem; y1=.35[x_height,bar_height];
2053 x4=x2+o; bot y4r=-o;
2054 rt x5=w-u; y5=.15bar_height;
2055 y6=y7=y3; x6=x3; x7=x1l;
2056 z1'=z1+.2stem*down+o*left; z1''=z1+.5(stem-currentbreadth)*dir45;
2057 bskpoints(6,7,hair,hair);
2058 p0=z5l..z4l..z3l{up}..z2l..{down}z1l..z1'..z1r..z1''..z2r..{down}z3r..z4r..z5r;
2059 p1=z6l---z7ll..z7r---z6r;
2060 (tim0,tim1)=p0 intersectiontimes p1;
2061 (tim2-1,tim3)=subpath(1,infinity) of p1 intersectiontimes p0;
2062 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2063 ..subpath(rundy(p1,tim1),rundy(p1,tim2).zpet) of p1
2064 ..subpath(rundy(p0,tim3),infinity) of p0..cycle;
2065 p100=subpath(8,10) of p0;
2066 p101=subpath(1,3) of p0;
2067 z100=bsktouch(p100,up,p101,down);
2068 z101=bsktouch(p100,down,p101,up);
2069 tim100=xpart(p100 intersectiontimes (z100--(x100,y4r-u-5)));
2070 tim101=xpart(p101 intersectiontimes (z100--(x100,y3)));
2071 tim102=xpart(p100 intersectiontimes (z101--(x101,y2r+u+5)));
2072 tim103=xpart(p101 intersectiontimes (z101--(x101,y3)));
2073 oblu:=bbw;
2074 infill subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100
2075 ..subpath(rundy(p101,tim101),rundy(p101,tim103).zpet) of p101..cycle;
2076 penlabels(0,1,2,3,4,5,6,7); labels(1',1'',7ll,100,101);
2077 endchar;
2078
2079 iff known chars.greek_epsilon_SS:
2080 bskchar "The sans-serif Greek letter epsilon";
2081 beginchar(chars.greek_epsilon_SS,7.2u#,x_height#,0); uni "non";
2082 italcorr x_height#*slant;
2083 adjust_fit(0,0);
2084 pickup tiny.nib;
2085 numeric tim[]; path p[]; oblu:=2oblu;
2086 pos1(hair,90); pos2(hair,90); pos3(stem,180);
2087 pos4(hair,-90); pos5(vair,-45);
2088 pos6(hair,90); pos7(hair,90);
2089 rt x1=w-u; top y2r=h+o; x2=.5w+u; lft x3r=u; top y1r=y2r;
2090 y3=bar_height-.5stem;
2091 x4=x2+o; bot y4r=-o;
2092 rt x5=w-u; y5=.15bar_height;
2093 y6=y7=y3; x6=x3; x7=x1l;
2094 bskpoints(6,7,hair,hair);
2095 p0=z5l..z4l..z3l{up}..z2l...{right}z1l..z1r{left}...z2r..{down}z3r..z4r..z5r;
2096 p1=z6l---z7ll..z7r---z6r;
2097 (tim0,tim1)=p0 intersectiontimes p1;
2098 (tim2-1,tim3)=subpath(1,infinity) of p1 intersectiontimes p0;
2099 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2100 ..subpath(rundy(p1,tim1),rundy(p1,tim2).zpet) of p1
2101 ..subpath(rundy(p0,tim3),infinity) of p0..cycle;
2102 penlabels(0,1,2,3,4,5,6,7); labels(7ll);
2103 endchar;
2104
2105 iff known chars.greek_epsilon_turned:
2106 bskchar "The turned Greek letter epsilon";
2107 beginchar(chars.greek_epsilon_turned,7.2u#,x_height#,0); uni "non";
2108 italcorr x_height#*slant-u#;
2109 adjust_fit(0,0);
2110 pickup tiny.nib;
2111 numeric tim[]; path p[]; oblu:=2oblu;
2112 pos1(stem,180); pos2(hair,-90); pos3(stem,0);
2113 pos4(hair,90); pos5(vair,135);
2114 pos6(hair,-90); pos7(hair,-90);
2115 lft x1=u; bot y2r=-o; x2=.5w-u; rt x3r=w-u;
2116 y3=x_height-bar_height+.5stem; y1=x_height-.35[x_height,bar_height];
2117 x4=x2-o; top y4r=h+o;
2118 lft x5=u; y5=x_height-.15bar_height;
2119 y6=y7=y3; x6=x3; x7=x1l;
2120 z1'=z1+.2stem*up+o*right; z1''=z1+.5(stem-currentbreadth)*dir225;
2121 bskpoints(6,7,hair,hair);
2122 p0=z5l..z4l..z3l{down}..z2l..{up}z1l..z1'..z1r..z1''..z2r..{up}z3r..z4r..z5r;
2123 p1=z6l---z7ll..z7r---z6r;
2124 (tim0,tim1)=p0 intersectiontimes p1;
2125 (tim2-1,tim3)=subpath(1,infinity) of p1 intersectiontimes p0;
2126 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2127 ..subpath(rundy(p1,tim1),rundy(p1,tim2).zpet) of p1
2128 ..subpath(rundy(p0,tim3),infinity) of p0..cycle;
2129 penlabels(0,1,2,3,4,5,6,7); labels(1',1'',7ll);
2130 math_fit(-.5u#,.5u#);
2131 endchar;
2132
2133 iff known chars.greek_epsilon_turned_BB:
2134 bskchar "The blackboard-bold turned Greek letter epsilon";
2135 beginchar(chars.greek_epsilon_turned_BB,7.2u#,x_height#,0); uni "non";
2136 italcorr x_height#*slant;
2137 adjust_fit(0,0);
2138 pickup tiny.nib;
2139 numeric tim[]; path p[]; oblu:=2oblu;
2140 pos1(stem,180); pos2(hair,-90); pos3(cap_stem,0);
2141 pos4(hair,90); pos5(vair,135);
2142 pos6(hair,-90); pos7(hair,-90);
2143 lft x1=u; bot y2r=-o; x2=.5w-u; rt x3r=w-u;
2144 y3=x_height-bar_height+.5stem; y1=x_height-.35[x_height,bar_height];
2145 x4=x2-o; top y4r=h+o;
2146 lft x5=u; y5=x_height-.15bar_height;
2147 y6=y7=y3; x6=x3; x7=x1l;
2148 z1'=z1+.2stem*up+o*right; z1''=z1+.5(stem-currentbreadth)*dir225;
2149 bskpoints(6,7,hair,hair);
2150 p0=z5l..z4l..z3l{down}..z2l..{up}z1l..z1'..z1r..z1''..z2r..{up}z3r..z4r..z5r;
2151 p1=z6l---z7ll..z7r---z6r;
2152 (tim0,tim1)=p0 intersectiontimes p1;
2153 (tim2-1,tim3)=subpath(1,infinity) of p1 intersectiontimes p0;
2154 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2155 ..subpath(rundy(p1,tim1),rundy(p1,tim2).zpet) of p1
2156 ..subpath(rundy(p0,tim3),infinity) of p0..cycle;
2157 p100=subpath(8,10) of p0;
2158 p101=subpath(1,3) of p0;
2159 z100=bsktouch(p100,down,p101,up);
2160 z101=bsktouch(p100,up,p101,down);
2161 tim100=xpart(p100 intersectiontimes (z100--(x100,y4r+u+5)));
2162 tim101=xpart(p101 intersectiontimes (z100--(x100,y3)));
2163 tim102=xpart(p100 intersectiontimes (z101--(x101,y2r-u-5)));
2164 tim103=xpart(p101 intersectiontimes (z101--(x101,y3)));
2165 oblu:=bbw;
2166 infill subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100
2167 ..subpath(rundy(p101,tim101),rundy(p101,tim103).zpet) of p101..cycle;
2168 penlabels(0,1,2,3,4,5,6,7); labels(1',1'',7ll,100,101);
2169 endchar;
2170
2171 iff known chars.greek_epsilon_turned_SS:
2172 bskchar "The sans-serif turned Greek letter epsilon";
2173 beginchar(chars.greek_epsilon_turned_SS,7.2u#,x_height#,0); uni "non";
2174 italcorr x_height#*slant;
2175 adjust_fit(0,0);
2176 pickup tiny.nib;
2177 numeric tim[]; path p[]; oblu:=2oblu;
2178 pos1(hair,-90); pos2(hair,-90); pos3(stem,0);
2179 pos4(hair,90); pos5(vair,135);
2180 pos6(hair,-90); pos7(hair,-90);
2181 lft x1=u; bot y2r=-o; x2=.5w-u; rt x3r=w-u; bot y1r=y2r;
2182 y3=x_height-bar_height+.5stem;
2183 x4=x2-o; top y4r=h+o;
2184 lft x5=u; y5=x_height-.15bar_height;
2185 y6=y7=y3; x6=x3; x7=x1l;
2186 bskpoints(6,7,hair,hair);
2187 p0=z5l..z4l..z3l{down}..z2l...{left}z1l..z1r{right}...z2r..{up}z3r..z4r..z5r;
2188 p1=z6l---z7ll..z7r---z6r;
2189 (tim0,tim1)=p0 intersectiontimes p1;
2190 (tim2-1,tim3)=subpath(1,infinity) of p1 intersectiontimes p0;
2191 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2192 ..subpath(rundy(p1,tim1),rundy(p1,tim2).zpet) of p1
2193 ..subpath(rundy(p0,tim3),infinity) of p0..cycle;
2194 penlabels(0,1,2,3,4,5,6,7); labels(7ll);
2195 endchar;
2196
2197 iff known chars.greek_varepsilon:
2198 bskchar "The Greek letter epsilon---alternative";
2199 beginchar(chars.greek_varepsilon,8u#,x_height#,0); uni "0x03B5";
2200 italcorr x_height#*slant;
2201 adjust_fit(0,0);
2202 pickup tiny.nib;
2203 numeric tim[]; path p[]; oblu:=2oblu;
2204 pos1(stem,0); pos2(hair,90); pos3(.5[hair,stem],180);
2205 pos4(hair,0); pos4'(hair,60); pos4''(.5[hair,stem],-150);
2206 pos5(curve,180); pos6(hair,-90); pos7(vair,-45);
2207 rt x1=w-u; top y2r=h+o; x2=.5w+u; lft x3r=1.75u;
2208 y3=.65[x_height,bar_height]; y1=.5[x_height,bar_height];
2209 1/3[y4,y3]=bar_height; x4=x2-hair; y5=.5bar_height;
2210 lft x5r=u; x6=x2+o; bot y6r=-o;
2211 rt x7=w-u; y7=.25bar_height;
2212 x4'=x4''=.5[x3,x4]; .5[y4',y4'']=y4; y4'-y4''=.5(x4-x3);
2213 z1'=z1+.2curve*down+o*left; z1''=z1+.5(curve-currentbreadth)*dir45;
2214 p0=z7l..z6l..z5l..z4'l..z4l{down}..z4''l..z3l{up}..z2l..{down}z1l;
2215 p1=z1l{down}..z1'..z1r..z1''..z2r..{down}z3r..z4''r..{up}z4r..z4'r..{down}z5r..z6r..z7r;
2216 (tim0,tim1-7)=subpath(0,6) of p1 intersectiontimes subpath (7,infinity) of p1;
2217 (tim2,tim3-5)=p0 intersectiontimes subpath(5,7) of p1;
2218 (tim4,tim5-4)=p1 intersectiontimes subpath(4,infinity) of p0;
2219 (tim6,tim7-4)=subpath(0,4) of p0 intersectiontimes subpath(4,infinity) of p0;
2220 filldraw subpath(0,rundy(p1,(tim0,hair)).zpet) of p1
2221 ..subpath(rundy(p1,(tim1,hair)),infinity) of p1
2222 ..{direction infinity of p1}z7r..{direction 0 of p0}z7l
2223 ..subpath(0,rundy(p0,tim2).zpet) of p0
2224 ..subpath(rundy(p1,tim3),rundy(p1,(tim4,1.2hair)).zpet) of p1
2225 ..subpath(rundy(p0,tim5),infinity) of p0..cycle;
2226 oblu:=.5f_obl;
2227 infill subpath(rundy(p0,tim6),rundy(p0,tim7).zpet) of p0 ..cycle;
2228 penlabels(0,1,2,3,4,4',4'',5,6,7); labels(1',1'');
2229 math_fit(mft,ic#-u#);
2230 endchar;
2231
2232 iff known chars.greek_varepsilon_BB:
2233 bskchar "The blackboard-bold Greek letter epsilon---alternative";
2234 beginchar(chars.greek_varepsilon_BB,8u#,x_height#,0); uni "non";
2235 italcorr x_height#*slant;
2236 adjust_fit(0,0);
2237 pickup tiny.nib;
2238 numeric tim[]; path p[]; oblu:=2oblu;
2239 pos1(stem,0); pos2(hair,90); pos3(.5[hair,cap_stem],180);
2240 pos4(hair,0); pos4'(hair,60); pos4''(.5[hair,stem],-150);
2241 pos5(cap_stem,180); pos6(hair,-90); pos7(vair,-45);
2242 rt x1=w-u; top y2r=h+o; x2=.5w+u; lft x3r=1.75u;
2243 y3=.65[x_height,bar_height]; y1=.5[x_height,bar_height];
2244 1/3[y4,y3]=bar_height; x4=x2; y5=.5bar_height;
2245 lft x5r=u; x6=x2+o; bot y6r=-o;
2246 rt x7=w-u; y7=.25bar_height;
2247 x4'=x4''=.5[x3,x4]; .5[y4',y4'']=y4; y4'-y4''=.5(x4-x3);
2248 z1'=z1+.2curve*down+o*left; z1''=z1+if boldmath: .75 else: .5\\fi(curve-currentbreadth)*dir45;
2249 p0=z7l..z6l..z5l..z4'l..z4l{down}..z4''l..z3l{up}..z2l..{down}z1l;
2250 p1=z1l{down}..z1'..z1r..z1''..z2r..{down}z3r..z4''r..{up}z4r..z4'r..{down}z5r..z6r..z7r;
2251 (tim0,tim1-7)=subpath(0,6) of p1 intersectiontimes subpath (7,infinity) of p1;
2252 (tim2,tim3-5)=p0 intersectiontimes subpath(5,7) of p1;
2253 (tim4,tim5-4)=p1 intersectiontimes subpath(4,infinity) of p0;
2254 (tim6,tim7-4)=subpath(0,4) of p0 intersectiontimes subpath(4,infinity) of p0;
2255 filldraw subpath(0,rundy(p1,(tim0,hair)).zpet) of p1
2256 ..subpath(rundy(p1,(tim1,hair)),infinity) of p1
2257 ..{direction infinity of p1}z7r..{direction 0 of p0}z7l
2258 ..subpath(0,rundy(p0,tim2).zpet) of p0
2259 ..subpath(rundy(p1,tim3),rundy(p1,(tim4,1.2hair)).zpet) of p1
2260 ..subpath(rundy(p0,tim5),infinity) of p0..cycle;
2261 oblu:=.5f_obl;
2262 infill subpath(rundy(p0,tim6),rundy(p0,tim7).zpet) of p0 ..cycle;
2263 p100=subpath(8,10) of p1;
2264 p101=subpath(1,4) of p0;
2265 p102=subpath(4,6) of p1;
2266 p103=subpath(5,7) of p0;
2267 z100=bsktouch(p100,up,p101,down);
2268 z101=bsktouch(p102,down,p103,up);
2269 tim100=xpart(p100 intersectiontimes (z100--(x100,y6r-u-5)));
2270 tim101=xpart(p101 intersectiontimes (z100--(x100,y5)));
2271 tim102=xpart(p100 intersectiontimes ((0,y4)--(x4',y4)));
2272 tim103=xpart(p101 intersectiontimes ((0,y4)--(x4',y4)));
2273 tim104=xpart(p102 intersectiontimes (z101--(x101,y2r+u+5)));
2274 tim105=xpart(p103 intersectiontimes (z101--(x101,y3)));
2275 tim106=xpart(p102 intersectiontimes ((0,y4)--(x4',y4)));
2276 tim107=xpart(p103 intersectiontimes ((0,y4)--(x4',y4)));
2277 oblu:=bbw;
2278 infill subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100
2279 ..subpath(rundy(p101,tim101),rundy(p101,tim103).zpet) of p101..cycle;
2280 oblu:=.5bbw;
2281 infill subpath(rundy(p102,tim104),rundy(p102,tim106).zpet) of p102
2282 ..subpath(rundy(p103,tim107),rundy(p103,tim105).zpet) of p103..cycle;
2283 penlabels(0,1,2,3,4,4',4'',5,6,7); labels(1',1'',100,101);
2284 endchar;
2285
2286 iff known chars.greek_varepsilon_SS:
2287 bskchar "The sans-serif Greek letter epsilon---alternative";
2288 beginchar(chars.greek_varepsilon_SS,8u#,x_height#,0); uni "non";
2289 italcorr x_height#*slant;
2290 adjust_fit(0,0);
2291 pickup tiny.nib;
2292 numeric tim[]; path p[]; oblu:=2oblu;
2293 pos1(stem,0); pos2(hair,90); pos3(.5[hair,stem],180);
2294 pos4(hair,0); pos4'(hair,60); pos4''(.5[hair,stem],-150);
2295 pos5(curve,180); pos6(hair,-90); pos7(vair,-45);
2296 rt x1=w-u; top y2r=h+o; x2=.5w+u; lft x3r=1.75u;
2297 y3=.65[x_height,bar_height]; y1=.5[x_height,bar_height];
2298 1/3[y4,y3]=bar_height; x4=x2-hair; y5=.5bar_height;
2299 lft x5r=u; x6=x2+o; bot y6r=-o;
2300 rt x7=w-u; y7=.25bar_height;
2301 x4'=x4''=.5[x3,x4]; .5[y4',y4'']=y4; y4'-y4''=.5(x4-x3);
2302 z1'=z1+.2curve*down+o*left; z1''=z1+.5(curve-currentbreadth)*dir45;
2303 p0=z7l..z6l..z5l..z4'l..z4l{down}..z4''l..z3l{up}..z2l..{down}z1l;
2304 p1=z1l{down}..z1r{up}..z2r..{down}z3r..z4''r..{up}z4r..z4'r..{down}z5r..z6r..z7r;
2305 (tim0,tim1-5)=subpath(0,6) of p1 intersectiontimes subpath (5,infinity) of p1;
2306 (tim2,tim3-3)=p0 intersectiontimes subpath(3,5) of p1;
2307 (tim4,tim5-4)=p1 intersectiontimes subpath(4,infinity) of p0;
2308 (tim6,tim7-4)=subpath(0,4) of p0 intersectiontimes subpath(4,infinity) of p0;
2309 filldraw subpath(0,rundy(p1,(tim0,hair)).zpet) of p1
2310 ..subpath(rundy(p1,(tim1,hair)),infinity) of p1
2311 ..{direction infinity of p1}z7r..{direction 0 of p0}z7l
2312 ..subpath(0,rundy(p0,tim2).zpet) of p0
2313 ..subpath(rundy(p1,tim3),rundy(p1,(tim4,1.2hair)).zpet) of p1
2314 ..subpath(rundy(p0,tim5),infinity) of p0..cycle;
2315 oblu:=.5f_obl;
2316 infill subpath(rundy(p0,tim6),rundy(p0,tim7).zpet) of p0 ..cycle;
2317 penlabels(0,1,2,3,4,4',4'',5,6,7); labels(1',1'');
2318 endchar;
2319
2320 iff known chars.greek_zeta:
2321 bskchar "The Greek letter zeta";
2322 beginchar(chars.greek_zeta,9u#,asc_height#,.5desc_depth#); uni "0x03B6";
2323 italcorr asc_height#*slant-1.25u#;
2324 adjust_fit(0,0);
2325 pickup tiny.nib;
2326 numeric tim[]; path p[]; oblu:=2oblu;
2327 pos1(hair,90); pos2(stem,180); pos0(hair,0); pos7(hair,180);
2328 pos3(curve,240); pos4(hair,180); pos5(hair,100); pos6(stem,0);
2329 pos8(hair,-90);
2330 lft x2r=u; top y1r=h-stem; y2=x_height-.5d; x1=.5w;
2331 rt x4r=w-u; y4=-.5d; x5=.5[x3,x4]; bot y5l=-d;
2332 rt x0r=w-2u; y0=y1-.5stem; x3=.5w; y3=.5bar_height-.5d;
2333 x6=x5-stem; y6=y5+.5stem; x7=x1-stem; top y7=h;
2334 x8=.5[x1,x0]; .5[y8,y1]=y0;
2335 z6'=z6+.2stem*up+o*left; z6''=z6+.5(stem-currentbreadth)*dir-45;
2336 p0=z7r{down}..z8r..z0r..z1r..z2r..z3r..z4r..z5r..z6''..z6'..z6l;
2337 p1=z6l..z5l..z4l..z3l..z2l..z1l..z0l..z8l..{up}z7l;
2338 (tim0,tim1-1)=p0 intersectiontimes subpath(1,infinity) of p0;
2339 (tim2,tim3)=p1 intersectiontimes subpath (0,1) of p0;
2340 (tim4-1,tim5-7)=subpath(1,infinity) of p0 intersectiontimes subpath(7,infinity) of p1;
2341 (tim6-7,tim7)=subpath(7,infinity) of p1 intersectiontimes subpath(0,6) of p1;
2342 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2343 ..subpath(rundy(p0,tim1),infinity) of p0
2344 ..subpath(0,rundy(p1,tim2).zpet) of p1
2345 ..subpath(rundy(p0,tim3),rundy(p0,(tim4,hair)).zpet) of p0
2346 ..subpath(rundy(p1,(tim5,hair)),infinity) of p1..cycle;
2347 infill subpath(rundy(p1,tim7),rundy(p1,tim6).zpet) of p1..cycle;
2348 penlabels(0,1,2,3,4,5,6,7,8); labels(0',0'',6',6'');
2349 math_fit(mft-.5u#,0);
2350 endchar;
2351
2352 iff known chars.greek_zeta_BB:
2353 bskchar "The blackboard-bold Greek letter zeta";
2354 beginchar(chars.greek_zeta_BB,9u#,asc_height#,.5desc_depth#); uni "non";
2355 italcorr asc_height#*slant-1.25u#;
2356 adjust_fit(0,0);
2357 pickup tiny.nib;
2358 numeric tim[]; path p[]; oblu:=2oblu;
2359 pos1(hair,90); pos2(.8cap_stem,180); pos0(hair,0); pos7(hair,180);
2360 pos3(cap_stem,240); pos4(hair,180); pos5(hair,100); pos6(stem,0);
2361 pos8(hair,-90);
2362 lft x2r=u; top y1r=h-stem; y2=x_height-.5d; x1=.5w;
2363 rt x4r=w-u; y4=-.5d; x5=.5[x3,x4]; bot y5l=-d;
2364 rt x0r=w-2u; y0=y1-.5stem; x3=.5w; top y3=.5bar_height-.5d+.25cap_stem;
2365 x6=x5-stem; y6=y5+.5stem; x7=x1-stem; top y7=h;
2366 x8=.5[x1,x0]; .5[y8,y1]=y0;
2367 z6'=z6+.2stem*up+o*left; z6''=z6+.5(stem-currentbreadth)*dir-45;
2368 p0=z7r{down}..z8r..z0r..z1r..z2r..z3r..z4r..z5r..z6''..z6'..z6l;
2369 p1=z6l..z5l..z4l..z3l..z2l..z1l..z0l..z8l..{up}z7l;
2370 (tim0,tim1-1)=p0 intersectiontimes subpath(1,infinity) of p0;
2371 (tim2,tim3)=p1 intersectiontimes subpath (0,1) of p0;
2372 (tim4-1,tim5-7)=subpath(1,infinity) of p0 intersectiontimes subpath(7,infinity) of p1;
2373 (tim6-7,tim7)=subpath(7,infinity) of p1 intersectiontimes subpath(0,6) of p1;
2374 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2375 ..subpath(rundy(p0,tim1),infinity) of p0
2376 ..subpath(0,rundy(p1,tim2).zpet) of p1
2377 ..subpath(rundy(p0,tim3),rundy(p0,(tim4,hair)).zpet) of p0
2378 ..subpath(rundy(p1,(tim5,hair)),infinity) of p1..cycle;
2379 infill subpath(rundy(p1,tim7),rundy(p1,tim6).zpet) of p1..cycle;
2380 p100=subpath(3,6) of p0;
2381 p101=subpath(2,5) of p1;
2382 z100=bsktouch(p100,dir15,p101,dir-135);
2383 z101=bsktouch(p100,dir-45,p101,dir135);
2384 tim100=xpart(p100 intersectiontimes (z100--(x100,y4)));
2385 tim101=xpart(p101 intersectiontimes (z100--(x100,y2)));
2386 tim102=xpart(p100 intersectiontimes (z101--(x101,y7)));
2387 tim103=xpart(p101 intersectiontimes (z101--(x101,y2)));
2388 oblu:=bbw;
2389 infill subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100
2390 ..subpath(rundy(p101,tim101),rundy(p101,tim103).zpet) of p101..cycle;
2391 penlabels(0,1,2,3,4,5,6,7,8); labels(0',0'',6',6'',100,101);
2392 endchar;
2393
2394 iff known chars.greek_zeta_SS:
2395 bskchar "The sans-serif Greek letter zeta";
2396 beginchar(chars.greek_zeta_SS,9u#,asc_height#,.5desc_depth#); uni "non";
2397 italcorr asc_height#*slant-1.25u#;
2398 adjust_fit(0,0);
2399 pickup tiny.nib;
2400 numeric tim[]; path p[]; oblu:=2oblu;
2401 pos1(hair,90); pos2(stem,180); pos0(hair,0); pos7(hair,180);
2402 pos3(curve,240); pos4(hair,180); pos5(hair,100); pos6(hair,90);
2403 pos8(hair,-90);
2404 lft x2r=u; top y1r=h-stem; y2=x_height-.5d; x1=.5w;
2405 rt x4r=w-u; y4=-.5d; x5=.5[x3,x4]; bot y5l=-d;
2406 rt x0r=w-2u; y0=y1-.5stem; x3=.5w; y3=.5bar_height-.5d;
2407 x6=x5-stem; y6=y5; x7=x1-stem; top y7=h;
2408 x8=.5[x1,x0]; .5[y8,y1]=y0;
2409 p0=z7r{down}..z8r..z0r..z1r..z2r..z3r..z4r..z5r---z6r;
2410 p1=z6l---z5l..z4l..z3l..z2l..z1l..z0l..z8l..{up}z7l;
2411 (tim0,tim1-1)=p0 intersectiontimes subpath(1,infinity) of p0;
2412 (tim2,tim3)=p1 intersectiontimes subpath (0,1) of p0;
2413 (tim4-1,tim5-7)=subpath(1,infinity) of p0 intersectiontimes subpath(7,infinity) of p1;
2414 (tim6-7,tim7)=subpath(7,infinity) of p1 intersectiontimes subpath(0,6) of p1;
2415 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2416 ..subpath(rundy(p0,tim1),infinity) of p0
2417 ..subpath(0,rundy(p1,tim2).zpet) of p1
2418 ..subpath(rundy(p0,tim3),rundy(p0,(tim4,hair)).zpet) of p0
2419 ..subpath(rundy(p1,(tim5,hair)),infinity) of p1..cycle;
2420 infill subpath(rundy(p1,tim7),rundy(p1,tim6).zpet) of p1..cycle;
2421 penlabels(0,1,2,3,4,5,6,7,8); labels(0',0'');
2422 endchar;
2423
2424 iff known chars.greek_eta:
2425 bskchar "The Greek letter eta";
2426 beginchar(chars.greek_eta,9.5u#,x_height#,desc_depth#); uni "0x03B7";
2427 italcorr x_height#*slant-.5u#;
2428 adjust_fit(0,0);
2429 pickup tiny.nib;
2430 numeric tim[]; path p[];
2431 pos1(vair,180); pos2(hair,90); pos3(stem,0); pos4(stem,0);
2432 pos5(stem,180); pos6(stem,180); pos7(hair,-90);
2433 top y2r=x_height+o;
2434 x3=x4; lft x1l=.5u; lft x3=1/3w;
2435 y3=y1-hair=bar_height;
2436 z2=z1+whatever*dir70; y4=hair; z4'=(x4r,y4r-hair);
2437 y5=y3; y6=-d; rt x5l=w-u; x6=x5; x7=.55[x5l,x3r]; top y7r=h+o;
2438 bskpoints(5,6,hair,hair);
2439 p0=z1l{z1-z4}..z2l..z3l---z4l...z4'...z4r---z3r..z7r..z5r
2440 ---z6r..z6ll---z5l..z7l..z3l;
2441 p1=z4r---z3r..z2r..{z4-z1}z1r;
2442 (tim0-7,tim1)=subpath (7,infinity) of p0 intersectiontimes p1;
2443 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2444 ..subpath(rundy(p1,tim1),infinity) of p1..cycle;
2445 penlabels(1,2,3,4,5,6,7,8,8',9,10); labels(6ll);
2446 math_fit(-u#,.5u#);
2447 endchar;
2448
2449 iff known chars.greek_eta_BB:
2450 bskchar "The blackboard-bold Greek letter eta";
2451 beginchar(chars.greek_eta_BB,9.5u#,x_height#,desc_depth#); uni "non";
2452 italcorr x_height#*slant-.5u#;
2453 adjust_fit(0,0);
2454 pickup tiny.nib;
2455 numeric tim[]; path p[];
2456 pos1(vair,180); pos2(hair,90); pos3(.8cap_stem,0); pos4(.8cap_stem,0);
2457 pos5(.8cap_stem,180); pos6(.8cap_stem,180); pos7(hair,-90);
2458 top y2r=x_height+o;
2459 x3=x4; lft x1l=.5u; lft x3=1/3w;
2460 y3=y1-hair=bar_height;
2461 z2=z1+whatever*dir70; y4=hair; z4'=(x4r,y4r-hair);
2462 y5=y3; y6=-d; rt x5l=w-u; x6=x5; x7=.55[x5l,x3r]; top y7r=h+o;
2463 bskpoints(5,6,hair,hair);
2464 p0=z1l{z1-z4}..z2l..z3l---z4l...z4'...z4r---z3r..z7r..z5r
2465 ---z6r..z6ll---z5l..z7l..z3l;
2466 p1=z4r---z3r..z2r..{z4-z1}z1r;
2467 (tim0-7,tim1)=subpath (7,infinity) of p0 intersectiontimes p1;
2468 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2469 ..subpath(rundy(p1,tim1),infinity) of p1..cycle;
2470 p100=subpath(1,3) of p0;
2471 p101=subpath(0,2) of p1;
2472 p102=subpath(7,9) of p0;
2473 p103=subpath(10,12) of p0;
2474 z100=bsktouch(p100,dir45,p101,dir-135);
2475 z101=bsktouch(p102,dir45,p103,dir-135);
2476 tim100=xpart(p100 intersectiontimes (z100--z1));
2477 tim101=xpart(p101 intersectiontimes (z100--(x100,y2r+u+5)));
2478 tim102=xpart(p102 intersectiontimes (z101--(x101-1,y5)));
2479 tim103=xpart(p103 intersectiontimes (z101--(x101-1,y2r+u+5)));
2480 oblu:=bbw;
2481 infill subpath(rundy(p100,tim100),infinity) of p100..z4'
2482 ..subpath(0,rundy(p101,tim101).zpet) of p101..cycle;
2483 infill subpath(rundy(p102,tim102),infinity) of p102
2484 ..subpath(0,rundy(p103,tim103).zpet) of p103..cycle;
2485 penlabels(1,2,3,4,5,6,7,8,8',9,10); labels(6ll,100,101);
2486 endchar;
2487
2488 iff known chars.greek_eta_SS:
2489 bskchar "The sans-serif Greek letter eta";
2490 beginchar(chars.greek_eta_SS,9.5u#,x_height#,desc_depth#); uni "non";
2491 italcorr x_height#*slant-.5u#;
2492 adjust_fit(0,0);
2493 pickup tiny.nib;
2494 numeric tim[]; path p[];
2495 pos1(vair,180); pos2(hair,90); pos3(stem,0); pos4(stem,0);
2496 pos5(stem,180); pos6(stem,180); pos7(hair,-90);
2497 top y2r=x_height+o;
2498 x3=x4; lft x1l=.5u; lft x3=1/3w;
2499 y3=y1-hair=bar_height;
2500 z2=z1+whatever*dir70; y4=hair; z4'=(x4r,y4r-hair);
2501 y5=y3; y6=-d; rt x5l=w-u; x6=x5; x7=.55[x5l,x3r]; top y7r=h+o;
2502 bskpoints(5,6,hair,hair);
2503 p0=z2l{right}..z3l---z4l...z4'...z4r---z3r..z7r..z5r
2504 ---z6r..z6ll---z5l..z7l..z3l;
2505 p1=z4r---z3r..{left}z2r;
2506 (tim0-7,tim1)=subpath (7,infinity) of p0 intersectiontimes p1;
2507 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2508 ..subpath(rundy(p1,tim1),infinity) of p1..cycle;
2509 penlabels(1,2,3,4,5,6,7,8,8',9,10); labels(6ll);
2510 endchar;
2511
2512 iff known chars.greek_heta:
2513 bskchar "The Greek letter heta";
2514 beginchar(chars.greek_heta,8u#,x_height#,0); uni "0x0371";
2515 italcorr x_height#*slant-.5u#;
2516 adjust_fit(0,0);
2517 pickup tiny.nib;
2518 numeric tim[]; path p[];
2519 pos1(vair,180); pos2(hair,90); pos3(stem,0); pos4(stem,0);
2520 pos5(bar,90); pos6(bar,90);
2521 top y2r=x_height+o;
2522 x3=x4; lft x1l=.5u; lft x3=3u;
2523 y3=y1-hair=y5=y6=bar_height;
2524 z2=z1+whatever*dir70; y4=hair; z4'=(x4r,y4r-hair);
2525 x5=x3r; rt x6=w-u;
2526 p0=z1l{z1-z4}..z2l..z3l---z4l...z4'...z4r---obl(5l,4r,6l)---z6l..z6r---z5r+oblu*right;
2527 p1=z4r---z3r..z2r..{z4-z1}z1r;
2528 filldraw p0..subpath(rundy(p1,1),infinity) of p1..cycle;
2529 penlabels(1,2,3,4,5,6); labels(4');
2530 math_fit(-u#,.5u#);
2531 endchar;
2532
2533 iff known chars.greek_heta_BB:
2534 bskchar "The blackboard-bold Greek letter heta";
2535 beginchar(chars.greek_heta_BB,8u#,x_height#,0); uni "non";
2536 italcorr x_height#*slant-.5u#;
2537 adjust_fit(0,0);
2538 pickup tiny.nib;
2539 numeric tim[]; path p[];
2540 pos1(vair,180); pos2(hair,90); pos3(.8cap_stem,0); pos4(.8cap_stem,0);
2541 pos5(bar,90); pos6(bar,90);
2542 top y2r=x_height+o;
2543 x3=x4; lft x1l=.5u; lft x3=3u;
2544 y3=y1-hair=y5=y6=bar_height;
2545 z2=z1+whatever*dir70; y4=cap_hair; z4'=(x4r,y4r-hair);
2546 x5=x3r; rt x6=w-u;
2547 p0=z1l{z1-z4}..z2l..z3l---z4l...z4'...z4r---obl(5l,4r,6l)---z6l..z6r---z5r+oblu*right;
2548 p1=z4r---z3r..z2r..{z4-z1}z1r;
2549 filldraw p0..subpath(rundy(p1,1),infinity) of p1..cycle;
2550 p100=subpath(1,3) of p0;
2551 p101=subpath(0,2) of p1;
2552 z100=bsktouch(p100,dir45,p101,dir-135);
2553 tim100=xpart(p100 intersectiontimes (z100--z1));
2554 tim101=xpart(p101 intersectiontimes (z100--(x100,y2r+u+5)));
2555 oblu:=bbw;
2556 infill subpath(rundy(p100,tim100),infinity) of p100..z4'
2557 ..subpath(0,rundy(p101,tim101).zpet) of p101..cycle;
2558 penlabels(1,2,3,4,5,6); labels(4',100);
2559 endchar;
2560
2561 iff known chars.greek_heta_SS:
2562 bskchar "The sans-serif Greek letter heta";
2563 beginchar(chars.greek_heta_SS,8u#,x_height#,0); uni "non";
2564 italcorr x_height#*slant-.5u#;
2565 adjust_fit(0,0);
2566 pickup tiny.nib;
2567 numeric tim[]; path p[];
2568 pos1(vair,180); pos2(hair,90); pos3(stem,0); pos4(stem,0);
2569 pos5(bar,90); pos6(bar,90);
2570 top y2r=x_height+o;
2571 x3=x4; lft x1l=.5u; lft x3=3u;
2572 y3=y1-hair=y5=y6=bar_height;
2573 z2=z1+whatever*dir70; y4=hair; z4'=(x4r,y4r-hair);
2574 x5=x3r; rt x6=w-u;
2575 p0=z2l{right}..z3l---z4l...z4'...z4r---obl(5l,4r,6l)---z6l..z6r---z5r+oblu*right;
2576 p1=z4r---z3r..{left}z2r;
2577 filldraw p0..subpath(rundy(p1,1),infinity) of p1..cycle;
2578 penlabels(1,2,3,4,5,6); labels(4');
2579 endchar;
2580
2581 iff known chars.greek_eta_curved:
2582 bskchar "The Greek letter eta (curved version)";
2583 beginchar(chars.greek_eta_curved,9.5u#,x_height#,desc_depth#); uni "non";
2584 italcorr x_height#*slant-.5u#;
2585 adjust_fit(0,0);
2586 pickup tiny.nib;
2587 numeric tim[]; path p[];
2588 pos1(vair,180); pos2(hair,90); pos3(stem,0); pos4(stem,0);
2589 pos5(stem,180); pos6(stem,180); pos7(hair,-90); pos8(hair,-90);
2590 pos8'(.5[hair,stem],-90);
2591 top y2r=x_height+o;
2592 x3=x4; lft x1l=.5u; lft x3=1/3w;
2593 y3=y1-hair=bar_height;
2594 z2=z1+whatever*dir70; y4=hair; z4'=(x4r,y4r-hair);
2595 y5=y3; y6=-d+4/3(x8-x6); rt x5l=w-u; x6l=x5r; x7=.55[x5l,x3r]; top y7r=h+o;
2596 x8=w; bot y8r=bot bot y8'r=-d; x8'=w+u;
2597 p0=z1l{z1-z4}..z2l..z3l---z4l..z4'..z4r---z3r..z7r..{down}z5r
2598 ...z6r..{right}z8r..z8'r..z8'l..z8l{left}..z6l...{up}z5l..z7l..z3l;
2599 p1=z4r---z3r..z2r..{z4-z1}z1r;
2600 (tim0-7,tim1)=subpath (7,infinity) of p0 intersectiontimes p1;
2601 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2602 ..subpath(rundy(p1,tim1),infinity) of p1..cycle;
2603 penlabels(1,2,3,4,5,6,7,8,8',9,10);
2604 math_fit(-u#,.5u#);
2605 endchar;
2606
2607 charscription(9.5u,asc_height,0)(
2608 numeric tim[]; path p[]; oblu:=2oblu;
2609 pos1(curve,0); pos2(hair,90); pos3(stem,180); pos4(hair,270);
2610 pos5(hair,90); pos6(.5[hair,stem],90); pos7(hair,90);
2611 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
2612 bot y2l=-o; top y4l=h+o;
2613 z5=z1+.25stem*down; z7=z3+.25stem*up; z6=.5[z5,z7];
2614 p0=z5l..z6l..z7l;
2615 p1=z5r..z6r..z7r;
2616 p2=z1r{up}..z4r..{down}z3r..z2r..{up}z1r;
2617 p3=z2r..{up}z1r..z4r..{down}z3r..z2r;
2618 (tim0,tim1)=subpath(0,1) of p0 intersectiontimes p2;
2619 (tim2-1,tim3)=subpath(1,2) of p0 intersectiontimes p2;
2620 (tim4,tim5)=subpath(0,1) of p1 intersectiontimes p3;
2621 (tim6-1,tim7)=subpath(1,2) of p1 intersectiontimes p3;
2622 filldraw z1l{down}..z2l..{up}z3l..z4l..{down}cycle;
2623 infill subpath(rundy(p0,tim0),rundy(p0,tim2).zpet) of p0
2624 ..subpath(rundy(p2,tim3),rundy(p2,tim1).zpet) of p2..cycle;
2625 infill subpath(rundy(p1,tim4),rundy(p1,tim6).zpet) of p1
2626 .. reverse subpath(rundy(p3,tim5),rundy(p3,tim7).zpet) of p3
2627 ..cycle;
2628 penlabels(1,2,3,4,5,6,7);
2629 );
2630
2631 iff known chars.greek_theta:
2632 bskchar "The Greek letter theta";
2633 beginchar(chars.greek_theta,9.5u#,asc_height#,0); uni "0x03B8";
2634 italcorr .75asc_height#*slant;
2635 adjust_fit(0,0);
2636 pickup tiny.nib;
2637 usechar;
2638 math_fit(-.5asc_height#*slant,ic#-1.5u#);
2639 endchar;
2640
2641 iff known chars.greek_theta_SS:
2642 bskchar "The sans-serif Greek letter theta";
2643 beginchar(chars.greek_theta_SS,9.5u#,asc_height#,0); uni "non";
2644 italcorr .75asc_height#*slant;
2645 adjust_fit(0,0);
2646 pickup tiny.nib;
2647 usechar;
2648 endchar;
2649
2650 iff known chars.greek_theta_BB:
2651 bskchar "The blackboard-bold Greek letter theta";
2652 beginchar(chars.greek_theta_BB,9.75u#,asc_height#,0); uni "non";
2653 italcorr .75asc_height#*slant;
2654 adjust_fit(0,0);
2655 pickup tiny.nib;
2656 numeric tim[]; path p[]; oblu:=2oblu;
2657 pos1(cap_stem,0); pos2(hair,90); pos3(.8cap_stem,180); pos4(hair,270);
2658 pos5(hair,90); pos6(.5[hair,stem],90); pos7(hair,90);
2659 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
2660 bot y2l=-o; top y4l=h+o;
2661 z5=z1+.25stem*down; z7=z3+.25stem*up; z6=.5[z5,z7];
2662 p0=z5l..z6l..z7l;
2663 p1=z5r..z6r..z7r;
2664 p2=z1r{up}..z4r..{down}z3r..z2r..{up}z1r;
2665 p3=z2r..{up}z1r..z4r..{down}z3r..z2r;
2666 (tim0,tim1)=subpath(0,1) of p0 intersectiontimes p2;
2667 (tim2-1,tim3)=subpath(1,2) of p0 intersectiontimes p2;
2668 (tim4,tim5)=subpath(0,1) of p1 intersectiontimes p3;
2669 (tim6-1,tim7)=subpath(1,2) of p1 intersectiontimes p3;
2670 filldraw z1l{down}..z2l..{up}z3l..z4l..{down}cycle;
2671 infill subpath(rundy(p0,tim0),rundy(p0,tim2).zpet) of p0
2672 ..subpath(rundy(p2,tim3),rundy(p2,tim1).zpet) of p2..cycle;
2673 infill subpath(rundy(p1,tim4),rundy(p1,tim6).zpet) of p1
2674 .. reverse subpath(rundy(p3,tim5),rundy(p3,tim7).zpet) of p3
2675 ..cycle;
2676 p100:=z4r..z1r{down}..z2r..z3r..cycle;
2677 p101:=reverse z4l..z1l{down}..z2l..z3l..cycle;
2678 oblu:=1.25bbw;
2679 z100=bsktouch(subpath(0,1) of p100,up,p101,down);
2680 z101=bsktouch(subpath(1,2) of p100,down,p101,up);
2681 z102=bsktouch(subpath(3,4) of p100,up,p101,down);
2682 z103=bsktouch(subpath(2,3) of p100,down,p101,up);
2683 tim100=xpart(p100 intersectiontimes (z100--(x100,y1)));
2684 tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5)));
2685 tim102=xpart(p100 intersectiontimes (z101--(x101,y1)));
2686 tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5)));
2687 tim104=xpart(p100 intersectiontimes (z102--(x102,y1)));
2688 tim105=xpart(p101 intersectiontimes (z102--(x102,y4l+5)));
2689 tim106=xpart(p100 intersectiontimes (z103--(x103,y1)));
2690 tim107=xpart(p101 intersectiontimes (z103--(x103,y2l-5)));
2691 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
2692 ..subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle;
2693 infill subpath(rundy(p100,tim104).zpet,rundy(p100,tim106)) of p100
2694 ..subpath(rundy(p101,tim107),rundy(p101,tim105).zpet) of p101..cycle;
2695 penlabels(1,2,3,4,5,6,7); labels(100,101,102,103);
2696 endchar;
2697
2698 iff known chars.greek_vartheta:
2699 bskchar "The Greek letter theta---alternative";
2700 beginchar(chars.greek_vartheta,9u#,asc_height#,0); uni "0x03D1";
2701 italcorr x_height#*slant;
2702 adjust_fit(serif_fit#,0);
2703 pickup tiny.nib;
2704 numeric tim[]; path p[]; oblu:=2oblu;
2705 pos1(vair,180); pos2(hair,90); pos3(stem,0); pos4(stem,0); pos5(hair,90);
2706 pos6(curve,180); pos7(hair,-90);
2707 pos8(hair,-30); pos8'(hair,30); pos9(hair,90);
2708 top y2r=x_height; bot y5l=-o; x5=.5[x4l,x6];
2709 x3=x4l; lft x1l=.5u; x3l-x1r=max(curve,1.5u);
2710 y2l-y1=1.5(x3-x1); y3=.35[y1,y2];
2711 z2=z1+whatever*dir60;
2712 y4-y5=y2-y3; rt x6l=w-1.75u; y6=bar_height;
2713 top y7=h+o; x7=x5;
2714 y8=2/3[x_height,h]; 1/4[x8,x6]=x7;
2715 y9=.35[x_height,bar_height]; x9=w-u;
2716 p0=z1r{up}..z2r..z3r..z4r..z5r..{up}z6r..{left}z7r..z8r..{z9-z3}z9r;
2717 p1=z9l{z3-z9}..z8l..{right}z7l..{down}z6l..z5l..z4l..z3l..z2l..{down}z1l;
2718 (tim0,tim1)=subpath(0,6) of p0 intersectiontimes subpath(0,1) of p1;
2719 (tim2-2,tim3-7)=subpath(2,infinity) of p1 intersectiontimes subpath(7,infinity) of p0;
2720 (tim4-2,tim5)=subpath (2,infinity) of p1 intersectiontimes subpath(0,1) of p1;
2721 tim6=xpart(p0 intersectiontimes subpath (0,1) of p1);
2722 tim7-7=ypart(subpath (0,6) of p0 intersectiontimes subpath(7,infinity) of p0);
2723 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2724 ..subpath(rundy(p1,tim1),rundy(p1,tim2).zpet) of p1
2725 ..{z9-z4}z9r..z9l{z4-z9}
2726 ..subpath(rundy(p1,(tim4,hair)),infinity) of p1..cycle;
2727 infill subpath (rundy(p0,tim6),rundy(p0,tim7).zpet) of p0..cycle;
2728 penlabels(1,2,3,4,5,6,7,8,9);
2729 math_fit(-bar_height#*slant+.25u#,ic#-u#);
2730 endchar;
2731
2732 iff known chars.greek_vartheta_BB:
2733 bskchar "The blackboard-bold Greek letter theta---alternative";
2734 beginchar(chars.greek_vartheta_BB,10u#,asc_height#,0); uni "non";
2735 italcorr x_height#*slant;
2736 adjust_fit(serif_fit#,0);
2737 pickup tiny.nib;
2738 numeric tim[]; path p[]; oblu:=2oblu;
2739 pos1(vair,180); pos2(hair,90); pos3(stem,0); pos4(stem,0); pos5(hair,90);
2740 pos6(cap_stem,180); pos7(hair,-90);
2741 pos8(hair,-30); pos8'(hair,30); pos9(hair,90);
2742 top y2r=x_height; bot y5l=-o; rt x5=.5[x4l,x6];
2743 x3=x4l; lft x1l=.5u; x3l-x1r=max(curve,1.5u);
2744 y2l-y1=1.5(x3-x1); y3=.35[y1,y2];
2745 z2=z1+whatever*dir60;
2746 y4-y5=y2-y3; rt x6l=w-1.75u; y6=bar_height;
2747 top y7=h+o; x7=x5;
2748 y8=2/3[x_height,h]; 1/4[x8,x6]=x7;
2749 y9=.35[x_height,bar_height]; x9=w-u;
2750 p0=z1r{up}..z2r..z3r..z4r..z5r..{up}z6r..{left}z7r..z8r..{z9-z3}z9r;
2751 p1=z9l{z3-z9}..z8l..{right}z7l..{down}z6l..z5l..z4l..z3l..z2l..{down}z1l;
2752 (tim0,tim1)=subpath(0,6) of p0 intersectiontimes subpath(0,1) of p1;
2753 (tim2-2,tim3-7)=subpath(2,infinity) of p1 intersectiontimes subpath(7,infinity) of p0;
2754 (tim4-2,tim5)=subpath (2,infinity) of p1 intersectiontimes subpath(0,1) of p1;
2755 tim6=xpart(p0 intersectiontimes subpath (0,1) of p1);
2756 tim7-7=ypart(subpath (0,6) of p0 intersectiontimes subpath(7,infinity) of p0);
2757 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2758 ..subpath(rundy(p1,tim1),rundy(p1,tim2).zpet) of p1
2759 ..{z9-z4}z9r..z9l{z4-z9}
2760 ..subpath(rundy(p1,(tim4,hair)),infinity) of p1..cycle;
2761 infill subpath (rundy(p0,tim6),rundy(p0,tim7).zpet) of p0..cycle;
2762 p100=subpath(4,6) of p0;
2763 p101=subpath(2,4) of p1;
2764 z100=bsktouch(p100,up,p101,down);
2765 z101=bsktouch(p100,down,p101,up);
2766 tim100=xpart(p100 intersectiontimes (z100--z8));
2767 tim101=xpart(p101 intersectiontimes (z100--(x100,y7l+u+5)));
2768 tim102=xpart(p100 intersectiontimes (z101--z3));
2769 tim103=xpart(p101 intersectiontimes (z101--(x101,y5l-u-5)));
2770 oblu:=bbw;
2771 infill subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100
2772 ..reverse subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle;
2773 penlabels(1,2,3,4,5,6,7,8,9); labels(100,101);
2774 endchar;
2775
2776 iff known chars.greek_vartheta_SS:
2777 bskchar "The sans-serif Greek letter theta---alternative";
2778 beginchar(chars.greek_vartheta_SS,9u#,asc_height#,0); uni "non";
2779 italcorr x_height#*slant;
2780 adjust_fit(serif_fit#,0);
2781 pickup tiny.nib;
2782 numeric tim[]; path p[]; oblu:=2oblu;
2783 pos1(vair,180); pos2(hair,0); pos3(stem,0); pos4(stem,0); pos5(hair,90);
2784 pos6(curve,180); pos7(hair,-90);
2785 pos8(hair,-30); pos8'(hair,30); pos9(hair,90);
2786 top y2=x_height; bot y5l=-o; x5=.5[x3,x6];
2787 if boldmath:lft x4l=x3l; else: x4l=x3; fi;
2788 lft x1l=.5u; x3l-x1r=max(curve,1.5u);
2789 y2l-y1=1.5(x3-x1); y3=.35[y1,y2];
2790 x2l=x3l;
2791 y4-y5=y2-y3; rt x6l=w-1.75u; y6=bar_height;
2792 top y7=h+o; x7=x5;
2793 y8=2/3[x_height,h]; 1/4[x8,x6]=x7;
2794 y9=.35[x_height,bar_height]; x9=w-u;
2795 p0=z2r---z3r..z4r..z5r..{up}z6r..{left}z7r..z8r..{z9-z3}z9r;
2796 p1=z9l{z3-z9}..z8l..{right}z7l..{down}z6l..z5l..z4l..z3l---z2l;
2797 (tim0,tim1)=subpath(0,5) of p0 intersectiontimes subpath(0,1) of p1;
2798 (tim2-2,tim3-6)=subpath(2,infinity) of p1 intersectiontimes subpath(6,infinity) of p0;
2799 (tim4-2,tim5)=subpath (2,infinity) of p1 intersectiontimes subpath(0,1) of p1;
2800 tim6=xpart(p0 intersectiontimes subpath (0,1) of p1);
2801 tim7-6=ypart(subpath (0,5) of p0 intersectiontimes subpath(6,infinity) of p0);
2802 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2803 ..subpath(rundy(p1,tim1),rundy(p1,tim2).zpet) of p1
2804 ..{z9-z4}z9r..z9l{z4-z9}
2805 ..subpath(rundy(p1,(tim4,hair)),infinity) of p1..cycle;
2806 infill subpath (rundy(p0,tim6),rundy(p0,tim7).zpet) of p0..cycle;
2807 penlabels(1,2,3,4,5,6,7,8,9);
2808 endchar;
2809
2810 iff known chars.greek_iota:
2811 bskchar "The Greek letter iota";
2812 beginchar(chars.greek_iota,6u#,x_height#,0); uni "0x03B9";
2813 adjust_fit(serif_fit#,0);
2814 pickup tiny.nib;
2815 path p[];
2816 pos1(stem,0); pos2(stem,0); pos2'(1.1stem,0);
2817 pos3(hair,90); pos4(hair,0);
2818 lft x1l=x2l=1.5u; top y1=h; y2=.5y4; y2'=bar_height; x2'l=.25[x1,x1l];
2819 rt x4r=w-u; top y4=.5bar_height; bot y3l=0; x3=.5[x4,x2];
2820 drop_serif(1,jut); x1b:=.5[x1a,x1l];
2821 p0=z2r..z2'r..z1r;
2822 filldraw z1r..{x1l-x1r,-.25serif_drop}z1.a&z1.a{z1b-z1a}..z1.b
2823 ..z2'l..{-direction 0 of p0}z2l..z3l..{up}z4r..{down}z4l
2824 ..z3r..p0&cycle;
2825 penlabels(1,2,2',3,4);
2826 math_fit(-x_height#*slant+u#,0);
2827 endchar;
2828
2829 iff known chars.greek_iota_BB:
2830 bskchar "The blackboard-bold Greek letter iota";
2831 beginchar(chars.greek_iota_BB,6.5u#,x_height#,0); uni "non";
2832 adjust_fit(serif_fit#,0);
2833 pickup tiny.nib;
2834 path p[];
2835 pos1(.8cap_stem,0); pos2(.8cap_stem,0); pos2'(.9cap_stem,0);
2836 pos3(hair,90); pos4(hair,0);
2837 lft x1l=x2l=1.5u; top y1=h; y2=.5y4; y2'=bar_height; x2'l=.25[x1,x1l];
2838 rt x4r=w-u; top y4=.5bar_height; bot y3l=0; lft x3=.5[x4,x2];
2839 drop_serif(1,jut); x1b:=.5[x1a,x1l];
2840 p0=z2r..z2'r..z1r;
2841 filldraw z1r..{x1l-x1r,-.25serif_drop}z1.a&z1.a{z1b-z1a}..z1.b
2842 ..z2'l..{-direction 0 of p0}z2l..z3l..{up}z4r..{down}z4l
2843 ..z3r..p0&cycle;
2844 numeric tim[];
2845 p100=subpath(0,4) of (z1.a{z1b-z1a}..z1.b..z2'l..{-direction 0 of p0}z2l..z3l..{up}z4r);
2846 p101=subpath(1,infinity) of (z4l{down}..z3r..p0);
2847 z100=bsktouch(p100,up,p101,down);
2848 tim100=xpart(p100 intersectiontimes (z100--(x100,y3l-2u-5)));
2849 tim101=xpart(p101 intersectiontimes (z100--(x100,y4)));
2850 oblu:=bbw;
2851 infill subpath(rundy(p100,0),rundy(p100,(tim100,.8bbw)).zpet) of p100
2852 ..subpath(rundy(p101,(tim101,.8bbw)),rundy(p101,length(p101)).zpet) of p101
2853 ..z1l+tiny*down..cycle;
2854 penlabels(1,2,2',3,4); labels(100);
2855 endchar;
2856
2857 iff known chars.greek_iota_SS:
2858 bskchar "The sans-serif Greek letter iota";
2859 beginchar(chars.greek_iota_SS,6u#,x_height#,0); uni "non";
2860 adjust_fit(-.5u#,0);
2861 pickup tiny.nib;
2862 path p[];
2863 pos1(stem,0); pos2(stem,0); pos2'(1.1stem,0);
2864 pos3(hair,90); pos4(hair,0);
2865 lft x1l=x2l=1.5u; top y1=h; y2=.5y4; y2'=bar_height; x2'l=.25[x1,x1l];
2866 rt x4r=w-u; top y4=.5bar_height; bot y3l=0; x3=.5[x4,x2];
2867 drop_serif(1,jut);
2868 p0=z2r..z2'r..z1r;
2869 filldraw z1r{left}..{down}z1.b
2870 ..z2'l..{-direction 0 of p0}z2l..z3l..{up}z4r..{down}z4l
2871 ..z3r..p0&cycle;
2872 penlabels(1,2,2',3,4);
2873 endchar;
2874
2875 iff known chars.greek_iota_turned:
2876 bskchar "The turned Greek letter iota";
2877 beginchar(chars.greek_iota_turned,6u#,x_height#,0); uni "0x2129";
2878 adjust_fit(serif_fit#,0);
2879 italcorr x_height#*slant;
2880 pickup tiny.nib;
2881 path p[];
2882 pos1(stem,180); pos2(stem,180); pos2'(1.1stem,180);
2883 pos3(hair,-90); pos4(hair,180);
2884 rt x1l=x2l=w-1.5u; bot y1=0; y2=.5(x_height+y4); y2'=x_height-bar_height; x2'l=.25[x1,x1l];
2885 lft x4r=u; bot y4=x_height-.5bar_height; top y3l=h; x3=.5[x4,x2];
2886 z1a=z1l+(jut,.5serif_drop); z1b=(x1l,y1a+.25serif_drop); x1b:=.5[x1a,x1l];
2887 p0=z2r..z2'r..z1r;
2888 filldraw z1r..{x1l-x1r,.25serif_drop}z1.a&z1.a{z1b-z1a}..z1.b..z2'l
2889 ..{-direction 0 of p0}z2l..z3l..{down}z4r..{up}z4l..z3r..p0&cycle;
2890 penlabels(1,2,2',3,4); labels(1a,1b);
2891 math_fit(-bar_height#*slant,ic#-.75u#);
2892 endchar;
2893
2894 iff known chars.greek_iota_turned_BB:
2895 bskchar "The blackboard-bold turned Greek letter iota";
2896 beginchar(chars.greek_iota_turned_BB,6u#,x_height#,0); uni "non";
2897 adjust_fit(serif_fit#,0);
2898 italcorr x_height#*slant;
2899 pickup tiny.nib;
2900 path p[];
2901 pos1(.8cap_stem,180); pos2(.8cap_stem,180); pos2'(.9cap_stem,180);
2902 pos3(hair,-90); pos4(hair,180);
2903 rt x1l=x2l=w-1.5u; bot y1=0; y2=.5(x_height+y4); y2'=x_height-bar_height; x2'l=.25[x1,x1l];
2904 lft x4r=u; bot y4=x_height-.5bar_height; top y3l=h; x3=.5[x4,x2];
2905 z1a=z1l+(jut,.5serif_drop); z1b=(x1l,y1a+.25serif_drop); x1b:=.5[x1a,x1l];
2906 p0=z2r..z2'r..z1r;
2907 filldraw z1r..{x1l-x1r,.25serif_drop}z1.a&z1.a{z1b-z1a}..z1.b..z2'l
2908 ..{-direction 0 of p0}z2l..z3l..{down}z4r..{up}z4l..z3r..p0&cycle;
2909 numeric tim[];
2910 p100=subpath(0,4) of (z1.a{z1b-z1a}..z1.b..z2'l..{-direction 0 of p0}z2l..z3l..{down}z4r);
2911 p101=subpath(1,infinity) of (z4l{up}..z3r..p0);
2912 z100=bsktouch(p100,down,p101,up);
2913 tim100=xpart(p100 intersectiontimes (z100--(x100,y3l+2u+5)));
2914 tim101=xpart(p101 intersectiontimes (z100--(x100,y4)));
2915 oblu:=bbw;
2916 infill subpath(rundy(p100,0),rundy(p100,(tim100,.8bbw)).zpet) of p100
2917 ..subpath(rundy(p101,(tim101,.8bbw)),rundy(p101,length(p101)).zpet) of p101
2918 ..z1l+tiny*up..cycle;
2919 penlabels(1,2,2',3,4); labels(1a,1b,100);
2920 endchar;
2921
2922 iff known chars.greek_iota_turned_SS:
2923 bskchar "The sans-serif turned Greek letter iota";
2924 beginchar(chars.greek_iota_turned_SS,6u#,x_height#,0); uni "non";
2925 adjust_fit(0,-.5u#);
2926 italcorr x_height#*slant;
2927 pickup tiny.nib;
2928 path p[];
2929 pos1(stem,180); pos2(stem,180); pos2'(1.1stem,180);
2930 pos3(hair,-90); pos4(hair,180);
2931 rt x1l=x2l=w-1.5u; bot y1=0; y2=.5(x_height+y4); y2'=x_height-bar_height; x2'l=.25[x1,x1l];
2932 lft x4r=u; bot y4=x_height-.5bar_height; top y3l=h; x3=.5[x4,x2];
2933 z1a=z1l+(jut,.5serif_drop); z1b=(x1l,y1a+.25serif_drop);
2934 p0=z2r..z2'r..z1r;
2935 filldraw z1r{right}..z1.b{up}..z2'l
2936 ..{-direction 0 of p0}z2l..z3l..{down}z4r..{up}z4l..z3r..p0&cycle;
2937 penlabels(1,2,2',3,4); labels(1a,1b);
2938 endchar;
2939
2940 iff known chars.greek_kappa:
2941 bskchar "The Greek letter kappa";
2942 beginchar(chars.greek_kappa,8.5u#,x_height#,0); uni "0x03BA";
2943 italcorr x_height#*slant;
2944 adjust_fit(serif_fit#,0);
2945 pickup tiny.nib;
2946 numeric tim[]; path p[]; oblu:=2oblu;
2947 pos1(stem,0); pos2(stem,0); pos2'(1.1stem,0);
2948 pos3(hair,-90); pos4(hair,-90); pos5(stem,0);
2949 lft x1l=lft x2l=1.5u; top y1=h; y2=.25bar_height; y2'=bar_height; x2'l=.25[x1,x1l];
2950 x4l=.5u; y4r=y3; bot y3l=0; x3=.5[x4,x2];
2951 bot y5=0; rt x5r=w-2u; serifs_br(5r); z5'b=z5r.b+(hair-currentbreadth)*right;
2952 drop_serif(1,jut); x1b:=.5[x1a,x1l];
2953 pos6(hair,90); top y6r=h+o; x7-x6=y6-y7;
2954 pos7(curve,0); z7'=z7+.2curve*down+o*left; z7''=z7+.5(curve-currentbreadth)*dir45;
2955 y7=h-stem; rt x7r=w-.75u;
2956 pos2''(.5[hair,stem],angle(z6l-z2'r)+90); z2''r=z2'r;
2957 pos6'(hair,180); y6'=y7; z6'=whatever[z6,z2''];
2958 p0=z2r..z2'r..z1r;
2959 p1=z2''l{right}..{up}z6'l..z6l{right}..z7l..z7'..z7r{up}..z7''..{left}z6r..{down}z6'r..{left}z2''r;
2960 p2=z2'l---diag_serif(5r,2'l)..z5r---z5r.a..{left}z5r.c
2961 ..z5r.bb+(stem-currentbreadth)*right---z2'l+(stem-currentbreadth)*right;
2962 (tim0,tim1)=p0 intersectiontimes p2;
2963 (tim2,tim3-1)=p0 intersectiontimes subpath(1,infinity) of p1;
2964 filldraw z1r..{x1l-x1r,-.25serif_drop}z1.a&z1.a{z1b-z1a}..z1.b
2965 ..z2'l..{-direction 0 of p0}z2l..z3l..{z4-z3}z4l..{z3-z4}z4r..z3r
2966 ..subpath(0,rundy(p0,tim0).zpet) of p0
2967 ..subpath(rundy(p2,tim1),rundy(p2,(length p2,curve)).zpet) of p2
2968 ..subpath(rundy(p1,(0,curve)),rundy(p1,tim3).zpet) of p1
2969 ..subpath(rundy(p0,tim2),infinity) of p0&cycle;
2970 penlabels(1,2,2',2'',3,4,5,6,6',7); labels(7',7'');
2971 endchar;
2972
2973 iff known chars.greek_kappa_BB:
2974 bskchar "The blackboard-bold Greek letter kappa";
2975 beginchar(chars.greek_kappa_BB,9u#,x_height#,0); uni "non";
2976 italcorr x_height#*slant;
2977 adjust_fit(serif_fit#,0);
2978 pickup tiny.nib;
2979 numeric tim[]; path p[]; oblu:=2oblu;
2980 pos1(.8cap_stem,0); pos2(.8cap_stem,0); pos2'(.9cap_stem,0);
2981 pos3(hair,-90); pos4(hair,-90); pos5(.8cap_stem,0);
2982 lft x1l=lft x2l=1.5u; top y1=h; y2=.25bar_height; y2'=bar_height; x2'l=.25[x1,x1l];
2983 x4l=.5u; y4r=y3; bot y3l=0; rt x3=.4[x4,x2];
2984 bot y5=0; rt x5r=w-2u; serifs_br(5r); z5'b=z5r.b+(hair-currentbreadth)*right;
2985 drop_serif(1,jut); x1b:=.5[x1a,x1l];
2986 pos6(hair,90); top y6r=h+o; x7-x6=y6-y7;
2987 pos7(curve,0); z7'=z7+.2curve*down+o*left; z7''=z7+.5(curve-currentbreadth)*dir45;
2988 y7=h-stem; rt x7r=w-.75u;
2989 pos2''(.5[hair,stem],angle(z6l-z2'r)+90); z2''r=z2'r;
2990 pos6'(hair,180); y6'=y7; z6'=whatever[z6,z2''];
2991 p0=z2r..z2'r..z1r;
2992 p1=z2''l{right}..{up}z6'l..z6l{right}..z7l..z7'..z7r{up}..z7''..{left}z6r..{down}z6'r..{left}z2''r;
2993 p2=z2'l---diag_serif(5r,2'l)..z5r---z5r.a..{left}z5r.c
2994 ..z5r.bb+(.8cap_stem-currentbreadth)*right---z2'l+(.8cap_stem-currentbreadth)*right;
2995 (tim0,tim1)=p0 intersectiontimes p2;
2996 (tim2,tim3-1)=p0 intersectiontimes subpath(1,infinity) of p1;
2997 filldraw z1r..{x1l-x1r,-.25serif_drop}z1.a&z1.a{z1b-z1a}..z1.b
2998 ..z2'l..{-direction 0 of p0}z2l..z3l..{z4-z3}z4l..{z3-z4}z4r..z3r
2999 ..subpath(0,rundy(p0,tim0).zpet) of p0
3000 ..subpath(rundy(p2,tim1),rundy(p2,(length p2,curve)).zpet) of p2
3001 ..subpath(rundy(p1,(0,curve)),rundy(p1,tim3).zpet) of p1
3002 ..subpath(rundy(p0,tim2),infinity) of p0&cycle;
3003 p100=subpath(0,4) of (z1.a{z1b-z1a}..z1.b..z2'l..{-direction 0 of p0}z2l..z3l..{z4-z3}z4l);
3004 p101=subpath(1,infinity) of (z4r{z3-z4}..z3r..p0);
3005 z100=bsktouch(p100,down,p101,up);
3006 tim100=xpart(p100 intersectiontimes (z100--(x100,y2')));
3007 tim101=xpart(p101 intersectiontimes (z100--(x100,y3r-u-5)));
3008 oblu:=bbw;
3009 infill subpath(rundy(p100,0),rundy(p100,(tim100,.8bbw)).zpet) of p100
3010 ..subpath(rundy(p101,(tim101,.8bbw)),rundy(p101,length(p101)).zpet) of p101
3011 ..z1l+tiny*down..cycle;
3012 penlabels(1,2,2',2'',3,4,5,6,6',7); labels(7',7'',100);
3013 endchar;
3014
3015 iff known chars.greek_kappa_SS:
3016 bskchar "The sans-serif Greek letter kappa";
3017 beginchar(chars.greek_kappa_SS,8u#,x_height#,0); uni "non";
3018 italcorr x_height#*slant;
3019 adjust_fit(-.5u#,0);
3020 pickup tiny.nib;
3021 numeric tim[]; path p[]; oblu:=2oblu;
3022 pos1(stem,0); pos2(stem,0); pos2'(1.1stem,0);
3023 pos3(stem,0); pos4(hair,-90); pos5(stem,0);
3024 lft x1l=lft x2l=1.5u; top y1=h; y2=.25bar_height; y2'=bar_height; x2'l=.25[x1,x1l];
3025 x4l=.5u; y4r=y3; bot y3l=0; x3r=x2;
3026 bot y5=0; rt x5r=w-u; serifs_br(5r); z5'b=z5r.b+(hair-currentbreadth)*right;
3027 drop_serif(1,jut);
3028 pos6(hair,120); top y7r=h+o; x6=.5[x7,x2];
3029 pos7(hair,120);
3030 rt x7r=w-.75u; z7=z6+whatever*dir30;
3031 pos2''(.5[hair,stem],angle(z6l-z2'r)+90); z2''r=z2'r;
3032 p0=z2r..z2'r..z1r;
3033 p1=z2''l{right}...z6l...z7l&z7l{dir30}..z7r&z7r...z6r...{left}z2''r;
3034 p3:=diag_serif(5r,2'l);
3035 p2=z2'l---z5r
3036 ..z5r.bb+(stem-currentbreadth)*right---z2'l+(stem-currentbreadth)*right;
3037 (tim0,tim1)=p0 intersectiontimes p2;
3038 (tim2,tim3-1)=p0 intersectiontimes subpath(1,infinity) of p1;
3039 filldraw z1r{left}..{down}z1.b
3040 ..z2'l..{-direction 0 of p0}z2l...z3l..z3r
3041 ...subpath(0,rundy(p0,tim0).zpet) of p0
3042 ..subpath(rundy(p2,tim1),rundy(p2,(length p2,curve)).zpet) of p2
3043 ..subpath(rundy(p1,(0,curve)),rundy(p1,tim3).zpet) of p1
3044 ..subpath(rundy(p0,tim2),infinity) of p0&cycle;
3045 penlabels(1,2,2',2'',3,4,5,6,7);
3046 endchar;
3047
3048 iff known chars.greek_varkappa:
3049 bskchar "The Greek letter kappa---alternative";
3050 beginchar(chars.greek_varkappa,12u#,x_height#,0); uni "0x03F0";
3051 italcorr x_height#*slant;
3052 adjust_fit(serif_fit#,0);
3053 pickup tiny.nib;
3054 numeric tim[], theta; path p[]; oblu:=2oblu;
3055 x1=2u+.5stem; x2=w-2u-.5stem; bot y1=.4stem; top y2=h+o-.5stem;
3056 lft bot z1'r=(u,0); rt top z2'l=(w-u,h);
3057 theta:=angle(z2-z1);
3058 pos1(.8stem,theta-90); pos2(stem,theta-90);
3059 pos1'(stem,-90); pos2'(stem,-90);
3060 pos3(hair,theta-90); pos4(curve,75); pos5(hair,theta+90);
3061 pos6(hair,theta-90); pos7(curve,105); pos8(hair,theta+90);
3062 z3r=z1l; top y4r=h+o; x4=2u; lft x5r=u; y4-y5=1.2(x4-x5);
3063 z6l=z2r; bot y7l=-o; x7=w-x4; rt x8l=w-u; y8-y7=1.2(x8-x7);
3064 p0:=z1'l..z1l{dir(theta+10)}..{dir(theta-10)}z2l..z2'l..z2'r..z2r{dir(theta+170)}..{dir(theta+190)}z1r..z1'r..cycle;
3065 p1:=z3l{dir(theta+10)}..z4l{left}..{down}z5l--z5r{up}..z4r{right}..{dir(theta+180)}z3r;
3066 p2:=z6r{dir(theta+190)}..{right}z7r..{up}z8r..{down}z8l..z7l{left}..{dir(theta)}z6l;
3067 z10=bsktouch(subpath(3,infinity) of p1,right,p0,up);
3068 z11=bsktouch(subpath(5,infinity) of p0,right,subpath(1,infinity) of p2,up);
3069 tim0=xpart(subpath(0,2) of p0 intersectiontimes (z10--(x10,0)));
3070 tim1-1=xpart(subpath(1,infinity) of p1 intersectiontimes (z10--(0,y10)));
3071 tim2-1=xpart(subpath(1,infinity) of p2 intersectiontimes (z11--(w,bar_height)));
3072 tim3-5=xpart(subpath(5,infinity) of p0 intersectiontimes (z11--(x11,h)));
3073 filldraw subpath(rundy(p1,0),rundy(p1,tim1).zpet) of p1
3074 ..subpath(rundy(p0,tim0),rundy(p0,5).zpet) of p0
3075 ..subpath(rundy(p2,0),rundy(p2,tim2).zpet) of p2
3076 ..subpath(rundy(p0,tim3),length p0) of p0..cycle;
3077 penlabels(1,1',2,2',3,4,5,6,7,8); labels(10,11,12,13);
3078 math_fit(-.5u#,0);
3079 endchar;
3080
3081 iff known chars.greek_varkappa_BB:
3082 bskchar "The blackboard-bold Greek letter kappa---alternative";
3083 beginchar(chars.greek_varkappa_BB,12u#,x_height#,0); uni "non";
3084 italcorr x_height#*slant;
3085 adjust_fit(serif_fit#,0);
3086 pickup tiny.nib;
3087 numeric tim[], theta; path p[]; oblu:=2oblu;
3088 x1=2u+.4cap_stem; x2=w-2u-.4cap_stem; bot y1=.4cap_stem; top y2=h+o-.4cap_stem;
3089 lft bot z1'r=(u,0); rt top z2'l=(w-u,h);
3090 theta:=angle(z2-z1);
3091 pos1(.8cap_stem,theta-90); pos2(.8cap_stem,theta-90);
3092 pos1'(.8cap_stem,-90); pos2'(.8cap_stem,-90);
3093 pos3(hair,theta-90); pos4(curve,75); pos5(hair,theta+90);
3094 pos6(hair,theta-90); pos7(curve,105); pos8(hair,theta+90);
3095 z3r=z1l; top y4r=h+o; x4=2u; lft x5r=u; y4-y5=1.2(x4-x5);
3096 z6l=z2r; bot y7l=-o; x7=w-x4; rt x8l=w-u; y8-y7=1.2(x8-x7);
3097 p0:=z1'l..z1l{dir(theta+10)}..{dir(theta-10)}z2l..z2'l..z2'r..z2r{dir(theta+170)}..{dir(theta+190)}z1r..z1'r..cycle;
3098 p1:=z3l{dir(theta+10)}..z4l{left}..{down}z5l--z5r{up}..z4r{right}..{dir(theta+180)}z3r;
3099 p2:=z6r{dir(theta+190)}..{right}z7r..{up}z8r..{down}z8l..z7l{left}..{dir(theta)}z6l;
3100 z10=bsktouch(subpath(3,infinity) of p1,right,p0,up);
3101 z11=bsktouch(subpath(5,infinity) of p0,right,subpath(1,infinity) of p2,up);
3102 tim0=xpart(subpath(0,2) of p0 intersectiontimes (z10--(x10,0)));
3103 tim1-1=xpart(subpath(1,infinity) of p1 intersectiontimes (z10--(0,y10)));
3104 tim2-1=xpart(subpath(1,infinity) of p2 intersectiontimes (z11--(w,bar_height)));
3105 tim3-5=xpart(subpath(5,infinity) of p0 intersectiontimes (z11--(x11,h)));
3106 filldraw subpath(rundy(p1,0),rundy(p1,tim1).zpet) of p1
3107 ..subpath(rundy(p0,tim0),rundy(p0,5).zpet) of p0
3108 ..subpath(rundy(p2,0),rundy(p2,tim2).zpet) of p2
3109 ..subpath(rundy(p0,tim3),length p0) of p0..cycle;
3110 penlabels(1,1',2,2',3,4,5,6,7,8); labels(10,11,12,13);
3111 infill subpath(rundy(p0,0),rundy(p0,4).zpet) of p0
3112 ..subpath(rundy(p0,5),rundy(p0,length p0).zpet) of p0..cycle;
3113 endchar;
3114
3115 iff known chars.greek_varkappa_SS:
3116 bskchar "The sans-serif Greek letter kappa---alternative";
3117 beginchar(chars.greek_varkappa_SS,11u#,x_height#,0); uni "non";
3118 italcorr x_height#*slant;
3119 adjust_fit(0,0);
3120 pickup tiny.nib;
3121 numeric tim[], theta; path p[]; oblu:=2oblu;
3122 x1=2u+.5stem; x2=w-2u-.5stem; bot y1=.4stem; top y2=h+o-.5stem;
3123 lft bot z1'r=(u,0); rt top z2'l=(w-u,h);
3124 theta:=angle(z2-z1);
3125 pos1(.8stem,theta-90); pos2(stem,theta-90);
3126 pos1'(stem,-90); pos2'(stem,-90);
3127 pos3(hair,theta-90); pos4(curve,0); pos5(hair,theta+90);
3128 pos6(hair,theta-90); pos7(curve,0); pos8(hair,theta+90);
3129 z3r=z1l; top y4r=h; x4=2u; lft x5r=u; y4-y5=1.2(x4-x5);
3130 z6l=z2r; bot y7l=0; x7=w-x4; rt x8l=w-u; y8-y7=1.2(x8-x7);
3131 p0:=z1'l..z1l{dir(theta+10)}..{dir(theta-10)}z2l..z2'l..z2'r..z2r{dir(theta+170)}..{dir(theta+190)}z1r..z1'r..cycle;
3132 p1:=z3l{dir(theta+10)}..{up}z4l..z4r{down}..{dir(theta+180)}z3r;
3133 p2:=z6r{dir(theta+190)}..{down}z7r..{up}z7l..{dir(theta)}z6l;
3134 z10=bsktouch(subpath(2,infinity) of p1,right,p0,up);
3135 z11=bsktouch(subpath(5,infinity) of p0,right,subpath(1,infinity) of p2,up);
3136 tim0=xpart(subpath(0,2) of p0 intersectiontimes (z10--(x10,0)));
3137 tim1-1=xpart(subpath(1,infinity) of p1 intersectiontimes (z10--(0,y10)));
3138 tim2-1=xpart(subpath(1,infinity) of p2 intersectiontimes (z11--(w,bar_height)));
3139 tim3-5=xpart(subpath(5,infinity) of p0 intersectiontimes (z11--(x11,h)));
3140 filldraw subpath(rundy(p1,0),rundy(p1,tim1).zpet) of p1
3141 ..subpath(rundy(p0,tim0),rundy(p0,5).zpet) of p0
3142 ..subpath(rundy(p2,0),rundy(p2,tim2).zpet) of p2
3143 ..subpath(rundy(p0,tim3),length p0) of p0..cycle;
3144 penlabels(1,1',2,2',3,4,5,6,7,8); labels(10,11,12,13);
3145 endchar;
3146
3147 iff known chars.greek_lambda:
3148 bskchar "The Greek letter lambda";
3149 beginchar(chars.greek_lambda,10u#,asc_height#,0); uni "0x03BB";
3150 adjust_fit(serif_fit#,0);
3151 pickup tiny.nib;
3152 numeric tim[], thstem; path p[]; oblu:=2oblu;
3153 x1r=w-1.5u; y1r=curve; x2l=2.5u; top y2l=h-curve;
3154 thstem:=stem/sind(angle(z2l-z1r));
3155 pos1(thstem,0); pos2(thstem,0);
3156 pos3(hair,90); pos4(hair,90); pos5(hair+o,90);
3157 pos6(hair,0); pos7(stem,0); pos8(curve,-10);
3158 bot y1'=0; z1'=whatever[z2l,z1l]+.5(x1-x1l)*right;
3159 bot y3l=-o; x3=w; top y4r=h+o;
3160 lft x5=o; y5r=y4r; x4=.5x2l;
3161 y6=x_height; z6r=whatever[z1r,z2r];
3162 y7=curve; bot y8r=0; lft x7l=u; lft x8l=u;
3163 p0=z2l---z1l..z1'..{right}z3l..{left}z3r..z1r---z2r..z4r---z5r..z5l---z4l;
3164 p1=z6l{dir225}..{down}z7l---z8l..z8r---z7r{up}..{dir45}z6r;
3165 (tim0,tim1)=p0 intersectiontimes p1;
3166 (tim2,tim3-1)=p0 intersectiontimes subpath(1,infinity) of p1;
3167 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3168 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
3169 ..subpath(rundy(p0,tim2),infinity) of p0..cycle;
3170 penlabels(0,1,2,3,4,5,6,7,8); labels(1',5',5'');
3171 endchar;
3172
3173 iff known chars.greek_lambda_BB:
3174 bskchar "The blackboard-bold Greek letter lambda";
3175 beginchar(chars.greek_lambda_BB,10u#,asc_height#,0); uni "non";
3176 adjust_fit(serif_fit#,0);
3177 pickup tiny.nib;
3178 numeric tim[], thstem; path p[]; oblu:=2oblu;
3179 x1r=w-1.5u; y1r=curve; x2l=2.5u; top y2l=h-curve;
3180 thstem:=.8cap_stem/sind(angle(z2l-z1r));
3181 pos1(thstem,0); pos2(thstem,0);
3182 pos3(hair,90); pos4(hair,90); pos5(hair+o,90);
3183 pos6(hair,0); pos7(stem,0); pos8(curve,-10);
3184 bot y1'=0; z1'=whatever[z2l,z1l]+.5(x1-x1l)*right;
3185 bot y3l=-o; x3=w; top y4r=h+o;
3186 lft x5=o; y5r=y4r; x4=.5x2l;
3187 y6=x_height; z6r=whatever[z1r,z2r];
3188 y7=curve; bot y8r=0; lft x7l=u; lft x8l=u;
3189 p0=z2l---z1l..z1'..{right}z3l..{left}z3r..z1r---z2r..z4r---z5r..z5l---z4l;
3190 p1=z6l{dir225}..{down}z7l---z8l..z8r---z7r{up}..{dir45}z6r;
3191 (tim0,tim1)=p0 intersectiontimes p1;
3192 (tim2,tim3-1)=p0 intersectiontimes subpath(1,infinity) of p1;
3193 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3194 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
3195 ..subpath(rundy(p0,tim2),infinity) of p0..cycle;
3196 p100=z3r{left}..z1r---z2r..z4r---z5r;
3197 p101=z5l---z4l..z2l---z1l..z1'..{right}z3l;
3198 z100=bsktouch(subpath(0,2) of p100,down,p101,up);
3199 z101=bsktouch(p100,down,subpath(1,2) of p101,up);
3200 tim100=xpart(p100 intersectiontimes (z100--(x100,y1)));
3201 tim101=xpart(p101 intersectiontimes (z100--(x100,y3l-5)));
3202 tim102=xpart(p100 intersectiontimes (z101--(x101,y4r+5)));
3203 tim103=xpart(p101 intersectiontimes (z101--(x101,y2l)));
3204 oblu:=bbw;
3205 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
3206 ..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle;
3207 penlabels(0,1,2,3,4,5,6,7,8); labels(1',5',5'',100,101);
3208 endchar;
3209
3210 iff known chars.greek_lambda_SS:
3211 bskchar "The sans-serif Greek letter lambda";
3212 beginchar(chars.greek_lambda_SS,10u#,asc_height#,0); uni "non";
3213 adjust_fit(0,0);
3214 pickup tiny.nib;
3215 numeric tim[], thstem; path p[]; oblu:=2oblu;
3216 x1r=w-1.5u; y1r=curve; x2l=2.5u; top y2l=h-curve;
3217 thstem:=stem/sind(angle(z2l-z1r));
3218 pos1(thstem,0); pos2(thstem,0);
3219 pos3(hair,90); pos4(thstem,0); pos5(hair+o,90);
3220 pos6(hair,0); pos7(stem,0); pos8(curve,-10);
3221 bot y1'=-o; z1'=whatever[z2l,z1l]+.5(x1-x1l)*right;
3222 bot y3l=-o; x3=w; top y4r=h;
3223 lft x5=o; y5r=y4r; z4r=whatever[z2r,z1r];
3224 y6=x_height; z6r=whatever[z1r,z2r];
3225 y7=curve; bot y8r=0; lft x7l=u; lft x8l=u;
3226 p0=z2l---z1l...z1'...z1r---z4r..z4l;
3227 p1=z6l{dir225}..{down}z7l---z8l..z8r---z7r{up}..{dir45}z6r;
3228 (tim0,tim1)=p0 intersectiontimes p1;
3229 (tim2,tim3-1)=p0 intersectiontimes subpath(1,infinity) of p1;
3230 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3231 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
3232 ..subpath(rundy(p0,tim2),infinity) of p0---cycle;
3233 penlabels(0,1,2,3,4,5,6,7,8); labels(1',5',5'');
3234 endchar;
3235
3236 iff known chars.greek_lambda_bar:
3237 bskchar "The Greek letter lambda with bar";
3238 beginchar(chars.greek_lambda_bar,10u#,asc_height#,0); uni "non";
3239 adjust_fit(serif_fit#,0);
3240 pickup tiny.nib;
3241 numeric tim[], thstem; path p[]; oblu:=2oblu; oblu.light:=f_obl;
3242 x1r=w-1.5u; y1r=curve; x2l=2.5u; top y2l=h-curve;
3243 thstem:=stem/sind(angle(z2l-z1r));
3244 pos1(thstem,0); pos2(thstem,0);
3245 pos3(hair,90); pos4(hair,90); pos5(hair+o,90);
3246 pos6(hair,0); pos7(stem,0); pos8(curve,-10);
3247 pos9(bar,90); pos10(bar,90);
3248 bot y1'=0; z1'=whatever[z2l,z1l]+.5(x1-x1l)*right;
3249 bot y3l=-o; x3=w; top y4r=h+o;
3250 lft x5=o; y5r=y4r; x4=.5x2l;
3251 y6=x_height; z6r=whatever[z1r,z2r];
3252 y7=curve; bot y8r=0; lft x7l=u; lft x8l=u;
3253 x10-x9=5u; y10=y9=.5[x_height,y2]; .5[z9,z10]=whatever[z1,z2];
3254 y9'r=y10'r=y9r; y9'l=y10'l=y9l;
3255 z9'l=whatever[z2l,z1l]; z9'r=whatever[z2l,z1l];
3256 z10'l=whatever[z2r,z1r]; z10'r=whatever[z2r,z1r];
3257 bskpoints(9,10,hair,hair);
3258 p0=z2l---obl(9'r,2l,9r)---z9rr..z9l---obl(9'l,9l,1l)---z1l..z1'..{right}z3l..{left}z3r
3259 ..z1r---obl(10'l,1r,10l)---z10ll..z10r---obl(10'r,10r,2r).light
3260 ---z2r..z4r---z5r..z5l---z4l;
3261 p1=z6l{dir225}..{down}z7l---z8l..z8r---z7r{up}..{dir45}z6r;
3262 (tim0,tim1)=p0 intersectiontimes p1;
3263 (tim2,tim3-1)=p0 intersectiontimes subpath(1,infinity) of p1;
3264 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3265 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
3266 ..subpath(rundy(p0,tim2),infinity) of p0..cycle;
3267 penlabels(0,1,2,3,4,5,6,7,8,9,9',10,10'); labels(1',5',5'',9rr,10ll);
3268 endchar;
3269
3270 iff known chars.greek_lambda_slash:
3271 bskchar "The Greek letter lambda with slash";
3272 beginchar(chars.greek_lambda_slash,10u#,asc_height#,0); uni "non";
3273 adjust_fit(serif_fit#,0);
3274 pickup tiny.nib;
3275 numeric tim[], thstem, theta; path p[]; oblu:=2oblu; oblu.light:=f_obl;
3276 x1r=w-1.5u; y1r=curve; x2l=2.5u; top y2l=h-curve;
3277 thstem:=stem/sind(angle(z2l-z1r));
3278 pos1(thstem,0); pos2(thstem,0);
3279 pos3(hair,90); pos4(hair,90); pos5(hair+o,90);
3280 pos6(hair,0); pos7(stem,0); pos8(curve,-10);
3281 bot y1'=0; z1'=whatever[z2l,z1l]+.5(x1-x1l)*right;
3282 bot y3l=-o; x3=w; top y4r=h+o;
3283 lft x5=o; y5r=y4r; x4=.5x2l;
3284 y6=x_height; z6r=whatever[z1r,z2r];
3285 y7=curve; bot y8r=0; lft x7l=u; lft x8l=u;
3286 x10-x9=4.5u; y10-y9=stem; y9=.5[x_height,y2]; .5[z9,z10]=whatever[z1,z2];
3287 theta:=angle(z10-z9)+90;
3288 pos9(bar,theta); pos10(bar,theta);
3289 z9'l=whatever[z9l,z10l]=whatever[z2l,z1l]; z9'r=whatever[z9r,z10r]=whatever[z2l,z1l];
3290 z10'l=whatever[z9l,z10l]=whatever[z2r,z1r]; z10'r=whatever[z9r,z10r]=whatever[z2r,z1r];
3291 bskpoints(9,10,hair,hair);
3292 p0=z2l---obl(9'r,2l,9r)---z9rr..z9l---obl(9'l,9l,1l)---z1l..z1'..{right}z3l..{left}z3r
3293 ..z1r---obl(10'l,1r,10l)---z10ll..z10r---obl(10'r,10r,2r).light
3294 ---z2r..z4r---z5r..z5l---z4l;
3295 p1=z6l{dir225}..{down}z7l---z8l..z8r---z7r{up}..{dir45}z6r;
3296 (tim0,tim1)=p0 intersectiontimes p1;
3297 (tim2,tim3-1)=p0 intersectiontimes subpath(1,infinity) of p1;
3298 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3299 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
3300 ..subpath(rundy(p0,tim2),infinity) of p0..cycle;
3301 penlabels(0,1,2,3,4,5,6,7,8,9,9',10,10'); labels(1',5',5'',9rr,10ll);
3302 endchar;
3303
3304 iff known chars.greek_lambda_curved:
3305 bskchar "The Greek letter lambda (curved version)";
3306 beginchar(chars.greek_lambda_curved,10u#,asc_height#,0); uni "non";
3307 adjust_fit(serif_fit#,0);
3308 pickup tiny.nib;
3309 numeric tim[], thstem; path p[]; oblu:=2oblu;
3310 x1r=w-1.5u; y1r=curve; x2l=2.5u; top y2l=h-curve;
3311 thstem:=stem/sind(angle(z2l-z1r));
3312 pos1(thstem,0); pos2(thstem,0);
3313 pos3(hair,90); pos4(hair,90); pos5(stem,180);
3314 pos6(hair,0); pos7(stem,0); pos8(curve,-10);
3315 bot y1'=0; z1'=whatever[z2l,z1l]+.5(x1-x1l)*right;
3316 bot y3l=-o; x3=w; top y4r=h+o;
3317 lft x5r=0; y5=y4-curve; x4=.5[x2l,x5r];
3318 y6=x_height; z6r=whatever[z1r,z2r];
3319 y7=curve; bot y8r=0; lft x7l=u; lft x8l=u;
3320 z5'=z5+.2curve*up+o*right; z5''=z5+.5(curve-currentbreadth)*dir225;
3321 p0=z2l---z1l..z1'..{right}z3l..{left}z3r..z1r---z2r..{left}z4r..z5r..z5''..z5l..z5'..{right}z4l;
3322 p1=z6l{dir225}..{down}z7l---z8l..z8r---z7r{up}..{dir45}z6r;
3323 (tim0,tim1)=p0 intersectiontimes p1;
3324 (tim2,tim3-1)=p0 intersectiontimes subpath(1,infinity) of p1;
3325 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3326 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
3327 ..subpath(rundy(p0,tim2),infinity) of p0..cycle;
3328 penlabels(0,1,2,3,4,5,6,7,8); labels(1',5',5'');
3329 endchar;
3330
3331 iff known chars.greek_lambda_curved_bar:
3332 bskchar "The Greek letter lambda with bar (curved version)";
3333 beginchar(chars.greek_lambda_curved_bar,10u#,asc_height#,0); uni "non";
3334 adjust_fit(serif_fit#,0);
3335 pickup tiny.nib;
3336 numeric tim[], thstem; path p[]; oblu:=2oblu; oblu.light:=f_obl;
3337 x1r=w-1.5u; y1r=curve; x2l=2.5u; top y2l=h-curve;
3338 thstem:=stem/sind(angle(z2l-z1r));
3339 pos1(thstem,0); pos2(thstem,0);
3340 pos3(hair,90); pos4(hair,90); pos5(stem,180);
3341 pos6(hair,0); pos7(stem,0); pos8(curve,-10);
3342 pos9(bar,90); pos10(bar,90);
3343 bot y1'=0; z1'=whatever[z2l,z1l]+.5(x1-x1l)*right;
3344 bot y3l=-o; x3=w; top y4r=h+o;
3345 lft x5r=0; y5=y4-curve; x4=.5[x2l,x5r];
3346 y6=x_height; z6r=whatever[z1r,z2r];
3347 y7=curve; bot y8r=0; lft x7l=u; lft x8l=u;
3348 z5'=z5+.2curve*up+o*right; z5''=z5+.5(curve-currentbreadth)*dir225;
3349 x10-x9=5u; y10=y9=.5[x_height,y2]; .5[z9,z10]=whatever[z1,z2];
3350 y9'r=y10'r=y9r; y9'l=y10'l=y9l;
3351 z9'l=whatever[z2l,z1l]; z9'r=whatever[z2l,z1l];
3352 z10'l=whatever[z2r,z1r]; z10'r=whatever[z2r,z1r];
3353 bskpoints(9,10,hair,hair);
3354 p0=z2l---obl(9'r,2l,9r)---z9rr..z9l---obl(9'l,9l,1l)---z1l..z1'..{right}z3l..{left}z3r
3355 ..z1r---obl(10'l,1r,10l)---z10ll..z10r---obl(10'r,10r,2r).light
3356 ---z2r..{left}z4r..z5r..z5''..z5l..z5'..{right}z4l;
3357 p1=z6l{dir225}..{down}z7l---z8l..z8r---z7r{up}..{dir45}z6r;
3358 (tim0,tim1)=p0 intersectiontimes p1;
3359 (tim2,tim3-1)=p0 intersectiontimes subpath(1,infinity) of p1;
3360 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3361 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
3362 ..subpath(rundy(p0,tim2),infinity) of p0..cycle;
3363 penlabels(0,1,2,3,4,5,6,7,8); labels(1',5',5'');
3364 endchar;
3365
3366 iff known chars.greek_lambda_curved_slash:
3367 bskchar "The Greek letter lambda with slash (curved version)";
3368 beginchar(chars.greek_lambda_curved_slash,10u#,asc_height#,0); uni "non";
3369 adjust_fit(serif_fit#,0);
3370 pickup tiny.nib;
3371 numeric tim[], thstem; path p[]; oblu:=2oblu; oblu.light:=f_obl;
3372 x1r=w-1.5u; y1r=curve; x2l=2.5u; top y2l=h-curve;
3373 thstem:=stem/sind(angle(z2l-z1r));
3374 pos1(thstem,0); pos2(thstem,0);
3375 pos3(hair,90); pos4(hair,90); pos5(stem,180);
3376 pos6(hair,0); pos7(stem,0); pos8(curve,-10);
3377 bot y1'=0; z1'=whatever[z2l,z1l]+.5(x1-x1l)*right;
3378 bot y3l=-o; x3=w; top y4r=h+o;
3379 lft x5r=0; y5=y4-curve; x4=.5[x2l,x5r];
3380 y6=x_height; z6r=whatever[z1r,z2r];
3381 y7=curve; bot y8r=0; lft x7l=u; lft x8l=u;
3382 x10-x9=4.5u; y10-y9=stem; y9=.5[x_height,y2]; .5[z9,z10]=whatever[z1,z2];
3383 theta:=angle(z10-z9)+90;
3384 pos9(bar,theta); pos10(bar,theta);
3385 z9'l=whatever[z9l,z10l]=whatever[z2l,z1l]; z9'r=whatever[z9r,z10r]=whatever[z2l,z1l];
3386 z10'l=whatever[z9l,z10l]=whatever[z2r,z1r]; z10'r=whatever[z9r,z10r]=whatever[z2r,z1r];
3387 bskpoints(9,10,hair,hair);
3388 z5'=z5+.2curve*up+o*right; z5''=z5+.5(curve-currentbreadth)*dir225;
3389 p0=z2l---obl(9'r,2l,9r)---z9rr..z9l---obl(9'l,9l,1l)---z1l..z1'..{right}z3l..{left}z3r
3390 ..z1r---obl(10'l,1r,10l)---z10ll..z10r---obl(10'r,10r,2r).light
3391 ---z2r..{left}z4r..z5r..z5''..z5l..z5'..{right}z4l;
3392 p1=z6l{dir225}..{down}z7l---z8l..z8r---z7r{up}..{dir45}z6r;
3393 (tim0,tim1)=p0 intersectiontimes p1;
3394 (tim2,tim3-1)=p0 intersectiontimes subpath(1,infinity) of p1;
3395 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3396 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
3397 ..subpath(rundy(p0,tim2),infinity) of p0..cycle;
3398 penlabels(0,1,2,3,4,5,6,7,8); labels(1',5',5'');
3399 endchar;
3400
3401 iff known chars.greek_mu:
3402 bskchar "The Greek letter mu";
3403 beginchar(chars.greek_mu,10.5u#,x_height#,desc_depth#); uni "0x03BC";
3404 italcorr x_height#*slant-.75u#;
3405 adjust_fit(0,0);
3406 pickup tiny.nib;
3407 numeric tim[]; path p[]; oblu:=2hair;
3408 pos1(stem,0); pos2(stem,0); pos2'(stem,0);
3409 pos3(stem,0);
3410 pos6(hair,0); pos7(hair,90); pos8(hair,180); pos9(stem,180);
3411 pos10(stem,0); pos11(stem,0); pos12(hair,90); pos13(.5[stem,hair],90);
3412 lft x1l=lft x2l=1.5u; top y1=h; y2=0;
3413 x3l=if slant=0: x2l else: x2 fi; bot y3=-d+o;
3414 rt x10r=w-2u; y6=y8=bar_height; bot y7l=-o; x7=.5w;
3415 x6=x2; top y9=h; x9=x10;
3416 z8r=z10l; x11=x10; y11=curve; rt x13=w-.5u; bot y12l=bot bot y13l=-o; x12=.5[x13,x10];
3417 bskpoints(9,10,hair,hair); bskpoints(3,1,hair,hair);
3418 p0=z1r..z1l---z3l..z3rr---z1r;
3419 p1=z12l{right}..z13l..z13r..{left}z12r..z11r---z9l..{down}z9rr---z10l..z7r..{up}z6r;
3420 p2=z6l{down}..z7l..{up}z8l;
3421 p3=z10l{down}..z11l..{right}z12l;
3422 z0=bsktouch(subpath(2,infinity) of p0,right,p2,down);
3423 tim0-2=xpart(subpath(2,infinity) of p0 intersectiontimes (z0--(0,x0)));
3424 tim1=xpart(p2 intersectiontimes (z0--(x0,h)));
3425 z14=bsktouch(p2,down,p3,left);
3426 tim2=xpart(p2 intersectiontimes (z14--(x14,h)));
3427 tim3=xpart(p3 intersectiontimes (z14--(w,y14)));
3428 (tim4,tim5-2)=p1 intersectiontimes subpath(2,infinity) of p0;
3429 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3430 ..subpath(rundy(p2,tim1),rundy(p2,tim2).zpet) of p2
3431 ..subpath(rundy(p3,tim3),infinity) of p3
3432 ..subpath(0,rundy(p1,tim4).zpet) of p1
3433 ..subpath(rundy(p0,tim5),infinity) of p0..cycle;
3434 penlabels(1,2,3,6,7,8,9,10,11,12,13); labels(0,9rr,3rr,14);
3435 endchar;
3436
3437 iff known chars.greek_mu_BB:
3438 bskchar "The blackboard-bold Greek letter mu";
3439 beginchar(chars.greek_mu_BB,10.75u#,x_height#,desc_depth#); uni "non";
3440 italcorr x_height#*slant-.75u#;
3441 adjust_fit(0,0);
3442 pickup tiny.nib;
3443 numeric tim[]; path p[]; oblu:=2hair;
3444 pos1(.8cap_stem,0); pos2(.8cap_stem,0); pos2'(.8cap_stem,0);
3445 pos3(.8cap_stem,0);
3446 pos6(hair,0); pos7(hair,90); pos8(hair,180); pos9(.8cap_stem,180);
3447 pos10(.8cap_stem,0); pos11(.8cap_stem,0); pos12(hair,90); pos13(.5[stem,hair],90);
3448 lft x1l=lft x2l=1.5u; top y1=h; y2=0;
3449 x3l=if slant=0: x2l else: x2 fi; bot y3=-d+o;
3450 rt x10r=w-2u; y6=y8=bar_height; bot y7l=-o; x7=.5w;
3451 x6=x2; top y9=h; x9=x10;
3452 z8r=z10l; x11=x10; y11=curve; rt x13=w-.5u; bot y12l=bot bot y13l=-o; x12=.5[x13,x10];
3453 bskpoints(9,10,hair,hair); bskpoints(3,1,hair,hair);
3454 p0=z1r..z1l---z3l..z3rr---z1r;
3455 p1=z12l{right}..z13l..z13r..{left}z12r..z11r---z9l..{down}z9rr---z10l..z7r..{up}z6r;
3456 p2=z6l{down}..z7l..{up}z8l;
3457 p3=z10l{down}..z11l..{right}z12l;
3458 z0=bsktouch(subpath(2,infinity) of p0,right,p2,down);
3459 tim0-2=xpart(subpath(2,infinity) of p0 intersectiontimes (z0--(0,x0)));
3460 tim1=xpart(p2 intersectiontimes (z0--(x0,h)));
3461 z14=bsktouch(p2,down,p3,left);
3462 tim2=xpart(p2 intersectiontimes (z14--(x14,h)));
3463 tim3=xpart(p3 intersectiontimes (z14--(w,y14)));
3464 (tim4,tim5-2)=p1 intersectiontimes subpath(2,infinity) of p0;
3465 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3466 ..subpath(rundy(p2,tim1),rundy(p2,tim2).zpet) of p2
3467 ..subpath(rundy(p3,tim3),infinity) of p3
3468 ..subpath(0,rundy(p1,tim4).zpet) of p1
3469 ..subpath(rundy(p0,tim5),infinity) of p0..cycle;
3470 p100=subpath(3,5) of p1;
3471 p101=z9rr---z10l---z11l..{right}z12l;
3472 z100=bsktouch(p100,down,p101,up);
3473 tim100=xpart(p100 intersectiontimes (z100--(w,y100)));
3474 tim101=xpart(p101 intersectiontimes (z100--(0,y100)));
3475 oblu:=f_obl;
3476 infill subpath(rundy(p101,0),rundy(p101,tim101).zpet) of p101
3477 ..subpath(rundy(p100,tim100),rundy(p100, length p100).zpet) of p100..cycle;
3478 infill subpath(rundy(p0,1),rundy(p0,2).zpet) of p0
3479 ..subpath(rundy(p0,3),rundy(p0,4).zpet) of p0..cycle;
3480 penlabels(1,2,3,6,7,8,9,10,11,12,13); labels(0,9rr,3rr,14,100);
3481 endchar;
3482
3483 iff known chars.greek_mu_SS:
3484 bskchar "The sans-serif Greek letter mu";
3485 beginchar(chars.greek_mu_SS,10.5u#,x_height#,desc_depth#); uni "non";
3486 italcorr x_height#*slant-.75u#;
3487 adjust_fit(0,0);
3488 pickup tiny.nib;
3489 numeric tim[]; path p[]; oblu:=2hair;
3490 pos1(stem,0); pos2(stem,0); pos2'(stem,0);
3491 pos3(stem,0);
3492 pos6(hair,0); pos7(hair,90); pos8(hair,180); pos9(stem,180);
3493 pos10(stem,0); pos11(stem,0); pos12(hair,90); pos13(.5[stem,hair],90);
3494 lft x1l=lft x2l=1.5u; top y1=h; y2=0;
3495 x3l=if slant=0: x2l else: x2 fi; bot y3=-d+o;
3496 rt x10r=w-2u; y6=y8=bar_height; bot y7l=-o; x7=.5w;
3497 x6=x2; top y9=h; x9=x10;
3498 z8r=z10l; x11=x10; y11=curve; rt x13=w-.5u; bot y12l=bot bot y13l=-o; x12=.5[x13,x10];
3499 bskpoints(9,10,hair,hair); bskpoints(3,1,hair,hair);
3500 p0=z1r..z1l---z3l..z3rr---z1r;
3501 p1=z12l{right}..z13l..z13r..{left}z12r..z11r---z9l..{down}z9rr---z10l..z7r..{up}z6r;
3502 p2=z6l{down}..z7l..{up}z8l;
3503 p3=z10l{down}..z11l..{right}z12l;
3504 z0=bsktouch(subpath(2,infinity) of p0,right,p2,down);
3505 tim0-2=xpart(subpath(2,infinity) of p0 intersectiontimes (z0--(0,x0)));
3506 tim1=xpart(p2 intersectiontimes (z0--(x0,h)));
3507 z14=bsktouch(p2,down,p3,left);
3508 tim2=xpart(p2 intersectiontimes (z14--(x14,h)));
3509 tim3=xpart(p3 intersectiontimes (z14--(w,y14)));
3510 (tim4,tim5-2)=p1 intersectiontimes subpath(2,infinity) of p0;
3511 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3512 ..subpath(rundy(p2,tim1),1) of p2
3513 ..subpath(rundy(p1,4),rundy(p1,tim4).zpet) of p1
3514 ..subpath(rundy(p0,tim5),infinity) of p0..cycle;
3515 penlabels(1,2,3,6,7,8,9,10,11,12,13); labels(0,9rr,3rr,14);
3516 endchar;
3517
3518 iff known chars.greek_mu_curved:
3519 bskchar "The Greek letter mu (curved version)";
3520 beginchar(chars.greek_mu_curved,11u#,x_height#,desc_depth#); uni "non";
3521 adjust_fit(serif_fit#,0);
3522 pickup tiny.nib;
3523 numeric tim[]; path p[]; oblu:=2hair;
3524 pos1(stem,0); pos2(stem,0); pos2'(1.1stem,0);
3525 pos3(stem,0); pos4(hair,90); pos5(stem,70);
3526 pos6(hair,0); pos7(hair,90); pos8(hair,180); pos9(curve,180);
3527 pos10(stem,0); pos11(stem,0); pos12(hair,90); pos13(.5[stem,hair],90);
3528 lft x1l=x2l=1.5u; top y1=h; y2=0; y2'=bar_height; x2'l=.25[x1,x1l];
3529 x3=x2; y3=-d+1.5curve; bot y4l=-d; x4-x3r=y3-y4; y5l=y4; x5-x4=stem;
3530 drop_serif(1,jut); x1b:=.5[x1a,x1l];
3531 rt x10r=w-2u; y6=y8=bar_height; bot y7l=-o; x7=.5w;
3532 x6=x2; top y9''=x_height+o; x9-x8=.35(y8-y9);
3533 z9'=z9+.2curve*down+o*left; z9''=z9+.5(curve-currentbreadth)*dir135;
3534 z8l=z10l; x11r=x10; y11=curve; rt x13=w-.5u; bot y12l=bot bot y13l=-o; x12=.5[x13,x10];
3535 p0=z1r..{x1l-x1r,-.25serif_drop}z1.a&z1.a{z1b-z1a}..z1.b..z2'l
3536 ..z2l..z3l..{right}z4l..z5l..z5r..z4r{left}..z3r..z2r..z2'r..z1r;
3537 p1=z12l{right}..z13l..z13r..{left}z12r..z11r..z10r..z9l..{down}z9r..z9'..{down}z8r..z7r..{up}z6r;
3538 p2=z6l{down}..z7l..{up}z8l;
3539 p3=z10l{down}..z11l..{right}z12l;
3540 z0=bsktouch(subpath(5,infinity) of p0,right,p2,down);
3541 tim0-5=xpart(subpath(5,infinity) of p0 intersectiontimes (z0--(0,x0)));
3542 tim1=xpart(p2 intersectiontimes (z0--(x0,h)));
3543 z14=bsktouch(p2,down,p3,left);
3544 tim2=xpart(p2 intersectiontimes (z14--(x14,h)));
3545 tim3=xpart(p3 intersectiontimes (z14--(w,y14)));
3546 (tim4,tim5-5)=p1 intersectiontimes subpath(5,infinity) of p0;
3547 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3548 ..subpath(rundy(p2,tim1),rundy(p2,tim2).zpet) of p2
3549 ..subpath(rundy(p3,tim3),infinity) of p3
3550 ..subpath(0,rundy(p1,tim4).zpet) of p1
3551 ..subpath(rundy(p0,tim5),infinity) of p0..cycle;
3552 penlabels(1,2,2',3,4,5,6,7,8,9,10,11,12,13); labels(0,9',9'',14);
3553 endchar;
3554
3555 iff known chars.greek_nu:
3556 bskchar "The Greek letter nu";
3557 beginchar(chars.greek_nu,8.5u#,x_height#,0); uni "0x03BD";
3558 italcorr x_height#*slant;
3559 adjust_fit(serif_fit#,0);
3560 pickup tiny.nib;
3561 numeric tim[]; path p[]; oblu:=2oblu;
3562 pos1(stem,0); pos2(stem,0); pos2'(1.1stem,0);
3563 pos3(stem,-10);
3564 lft x1l=lft x2l=1.5u; top y1=h; bot y2=0; y2'=bar_height; x2'l=.25[x1,x1l];
3565 rt x3r=w-u; top y3l=h;
3566 drop_serif(1,jut); x1b:=.5[x1a,x1l];
3567 p0=z2r..z2'r..z1r;
3568 tim0=xpart(p0 intersectiontimes ((0,y2r+hair-currentbreadth)--(w,y2r+hair-currentbreadth)));
3569 p1=z3l{down}..point tim0 of p0;
3570 filldraw z2r..{up}z3r..subpath(0,rundy(p1,1).zpet) of p1
3571 ..subpath(rundy(p0,tim0),infinity) of p0&z1r..{x1l-x1r,-.25serif_drop}z1.a
3572 &z1.a{z1b-z1a}..z1.b..z2'l..{-direction 0 of p0}z2l--cycle;
3573 penlabels(1,2,2',3);
3574 math_fit(-x_height#*slant+u#,-u#);
3575 endchar;
3576
3577 iff known chars.greek_nu_BB:
3578 bskchar "The blackboard-bold Greek letter nu";
3579 beginchar(chars.greek_nu_BB,9u#,x_height#,0); uni "non";
3580 italcorr x_height#*slant;
3581 adjust_fit(serif_fit#,0);
3582 pickup tiny.nib;
3583 numeric tim[]; path p[]; oblu:=2oblu;
3584 pos1(.8cap_stem,0); pos2(.8cap_stem,0); pos2'(.9cap_stem,0);
3585 pos3(stem,-10);
3586 lft x1l=lft x2l=1.5u; top y1=h; bot y2=0; y2'=bar_height; x2'l=.25[x1,x1l];
3587 rt x3r=w-u; top y3l=h;
3588 drop_serif(1,jut); x1b:=.5[x1a,x1l];
3589 p0=z2r..z2'r..z1r;
3590 tim0=xpart(p0 intersectiontimes ((0,y2r+hair-currentbreadth)--(w,y2r+hair-currentbreadth)));
3591 p1=z3l{down}..point tim0 of p0;
3592 filldraw z2r..{up}z3r..subpath(0,rundy(p1,1).zpet) of p1
3593 ..subpath(rundy(p0,tim0),infinity) of p0&z1r..{x1l-x1r,-.25serif_drop}z1.a
3594 &z1.a{z1b-z1a}..z1.b..z2'l..{-direction 0 of p0}z2l--cycle;
3595 p100=z1.a{z1b-z1a}..z1.b..z2'l..{-direction 0 of p0}z2l;
3596 p101=p0;
3597 oblu:=bbw;
3598 infill subpath(rundy(p100,0),rundy(p100,(infinity,.8bbw)).zpet) of p100
3599 ..subpath(rundy(p101,(0,.8bbw)),rundy(p101,length(p101)).zpet) of p101
3600 ..z1l+tiny*down..cycle;
3601 penlabels(1,2,2',3);
3602 endchar;
3603
3604 iff known chars.greek_nu_SS:
3605 bskchar "The sans-serif Greek letter nu";
3606 beginchar(chars.greek_nu_SS,8.5u#,x_height#,0); uni "non";
3607 italcorr x_height#*slant;
3608 adjust_fit(-.5u#,0);
3609 pickup tiny.nib;
3610 numeric tim[]; path p[]; oblu:=2oblu;
3611 pos1(stem,0); pos2(stem,0); pos2'(1.1stem,0);
3612 pos3(stem,-10);
3613 lft x1l=lft x2l=1.5u; top y1=h; bot y2=0; y2'=bar_height; x2'l=.25[x1,x1l];
3614 rt x3r=w-u; top y3l=h;
3615 drop_serif(1,jut);
3616 p0=z2r..z2'r..z1r;
3617 tim0=xpart(p0 intersectiontimes ((0,y2r+hair-currentbreadth)--(w,y2r+hair-currentbreadth)));
3618 p1=z3l{down}..point tim0 of p0;
3619 filldraw z2r..{up}z3r..subpath(0,rundy(p1,1).zpet) of p1
3620 ..subpath(rundy(p0,tim0),infinity) of p0&z1r{left}..{down}z1.b..z2'l..{-direction 0 of p0}z2l--cycle;
3621 penlabels(1,2,2',3);
3622 endchar;
3623
3624 iff known chars.greek_xi:
3625 bskchar "The Greek letter xi";
3626 beginchar(chars.greek_xi,9u#,asc_height#,.5desc_depth#); uni "0x03BE";
3627 italcorr asc_height#*slant;
3628 adjust_fit(0,0);
3629 pickup tiny.nib;
3630 numeric tim[]; path p[]; oblu:=2oblu;
3631 pos1(hair,90); pos2(stem,180); pos0(hair,0); pos7(stem,180);
3632 pos3(curve,240); pos4(hair,180); pos5(hair,100); pos6(stem,0);
3633 pos8(hair,-90); pos9(hair,90); pos10(hair,0); pos11(hair,-90);
3634 pos12(hair,180);
3635 lft x2r=u; top y1r=.35[x_height,bar_height]; y2=.5x_height; x1=.5w;
3636 rt x4r=w-u; y4=-.5d; x5=.5[x3,x4]; bot y5l=-d;
3637 rt x0r=w-2u; y0=y1-stem; x3=.5w; y3=.5bar_height-.5d;
3638 x6=x5-stem; y6=y5+.5stem; lft x7r=1.5u; y7=.35[y1,y9];
3639 x8=.25[x1,x0]; .25[y8,y1]=y0; top y9r=h-.75stem; x10-x9=x0-x1;
3640 z6'=z6+.2stem*up+o*left; z6''=z6+.5(stem-currentbreadth)*dir-45;
3641 rt x10r=w-u; y10=y9-.5stem; y10=.5[y11,y9]; x11=.5[x9,x10];
3642 top y12=h; x12=x9-stem;
3643 p0=z12r..z11r..z10r..z9r..z7r{down}..z8r..{up}z0r..z1r..z2r..z3r..z4r..z5r..z6''..z6'..z6l;
3644 p1=z6l..z5l..z4l..z3l..z2l..z1l..{down}z0l..z8l..{up}z7l..z9l..z10l..z11l..z12l;
3645 (tim0,tim1-5)=p0 intersectiontimes subpath(5,infinity) of p0;
3646 (tim2,tim3-4)=p1 intersectiontimes subpath (4,5) of p0;
3647 (tim4-5,tim5-7)=subpath(5,infinity) of p0 intersectiontimes subpath(7,infinity) of p1;
3648 (tim6-7,tim7)=subpath(7,infinity) of p1 intersectiontimes subpath(0,6) of p1;
3649 (tim8,tim9-1)=p0 intersectiontimes subpath(1,infinity) of p0;
3650 (tim10,tim11)=p1 intersectiontimes subpath(0,1) of p0;
3651 (tim12-2,tim13)=subpath(2,4) of p0 intersectiontimes p1;
3652 (tim14-8,tim15-11)=subpath(8,10) of p1 intersectiontimes subpath(11,infinity) of p1;
3653 filldraw subpath(0,rundy(p0,tim8).zpet) of p0..subpath(rundy(p0,tim9),rundy(p0,tim0).zpet) of p0
3654 ..subpath(rundy(p0,tim1),infinity) of p0
3655 ..subpath(0,rundy(p1,tim2).zpet) of p1
3656 ..subpath(rundy(p0,tim3),rundy(p0,(tim4,hair)).zpet) of p0
3657 ..subpath(rundy(p1,(tim5,hair)),rundy(p1,tim10).zpet) of p1
3658 ..subpath(rundy(p0,tim11),rundy(p0,(tim12,hair)).zpet) of p0
3659 ..subpath(rundy(p1,(tim13,hair)),infinity) of p1..cycle;
3660 infill subpath(rundy(p1,tim7),rundy(p1,tim6).zpet) of p1..cycle;
3661 infill subpath(rundy(p1,tim14),rundy(p1,tim15).zpet) of p1..cycle;
3662 penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12); labels(0',0'',6',6'');
3663 math_fit(mft,0);
3664 endchar;
3665
3666 iff known chars.greek_xi_BB:
3667 bskchar "The blackboard-bold Greek letter xi";
3668 beginchar(chars.greek_xi_BB,9u#,asc_height#,.5desc_depth#); uni "non";
3669 italcorr asc_height#*slant;
3670 adjust_fit(0,0);
3671 pickup tiny.nib;
3672 numeric tim[]; path p[]; oblu:=2oblu;
3673 pos1(hair,90); pos2(.8cap_stem,180); pos0(hair,0); pos7(.8cap_stem,180);
3674 pos3(cap_stem,240); pos4(hair,180); pos5(hair,100); pos6(stem,0);
3675 pos8(hair,-90); pos9(hair,90); pos10(hair,0); pos11(hair,-90);
3676 pos12(hair,180);
3677 lft x2r=u; top y1r=.35[x_height,bar_height]; y2=.5x_height; x1=.5w;
3678 rt x4r=w-u; y4=-.5d; x5=.5[x3,x4]; bot y5l=-d;
3679 rt x0r=w-2u; y0=y1-stem; x3=.5w; y3=.5bar_height-.5d;
3680 x6=x5-stem; y6=y5+.5stem; lft x7r=1.5u; y7=.35[y1,y9];
3681 x8=.25[x1,x0]; .25[y8,y1]=y0; top y9r=h-.75stem; x10-x9=x0-x1;
3682 z6'=z6+.2stem*up+o*left; z6''=z6+.5(stem-currentbreadth)*dir-45;
3683 rt x10r=w-u; y10=y9-.5stem; y10=.5[y11,y9]; x11=.5[x9,x10];
3684 top y12=h; x12=x9-stem;
3685 p0=z12r..z11r..z10r..z9r..z7r{down}..z8r..{up}z0r..z1r..z2r..z3r..z4r..z5r..z6''..z6'..z6l;
3686 p1=z6l..z5l..z4l..z3l..z2l..z1l..{down}z0l..z8l..{up}z7l..z9l..z10l..z11l..z12l;
3687 (tim0,tim1-5)=p0 intersectiontimes subpath(5,infinity) of p0;
3688 (tim2,tim3-4)=p1 intersectiontimes subpath (4,5) of p0;
3689 (tim4-5,tim5-7)=subpath(5,infinity) of p0 intersectiontimes subpath(7,infinity) of p1;
3690 (tim6-7,tim7)=subpath(7,infinity) of p1 intersectiontimes subpath(0,6) of p1;
3691 (tim8,tim9-1)=p0 intersectiontimes subpath(1,infinity) of p0;
3692 (tim10,tim11)=p1 intersectiontimes subpath(0,1) of p0;
3693 (tim12-2,tim13-11)=subpath(2,4) of p0 intersectiontimes subpath(11,infinity) of p1;
3694 (tim14-8,tim15-11)=subpath(8,10) of p1 intersectiontimes subpath(11,infinity) of p1;
3695 filldraw subpath(0,rundy(p0,tim8).zpet) of p0
3696 ..subpath(rundy(p0,tim9),rundy(p0,tim0).zpet) of p0
3697 ..subpath(rundy(p0,tim1),infinity) of p0
3698 ..subpath(0,rundy(p1,tim2).zpet) of p1
3699 ..subpath(rundy(p0,tim3),rundy(p0,(tim4,hair)).zpet) of p0
3700 ..subpath(rundy(p1,(tim5,hair)),rundy(p1,tim10).zpet) of p1
3701 ..subpath(rundy(p0,tim11),rundy(p0,(tim12,hair)).zpet) of p0
3702 ..subpath(rundy(p1,(tim13,hair)),infinity) of p1..cycle;
3703 infill subpath(rundy(p1,tim7),rundy(p1,tim6).zpet) of p1..cycle;
3704 infill subpath(rundy(p1,tim14),rundy(p1,tim15).zpet) of p1..cycle;
3705 p100=subpath(7,10) of p0;
3706 p101=subpath(2,5) of p1;
3707 p102=subpath(3,5) of p0;
3708 p103=subpath(7,10) of p1;
3709 z100=bsktouch(p100,down,p101,up);
3710 z101=bsktouch(p100,right,subpath(0,1) of p101,left);
3711 z102=bsktouch(p102,down,p103,up);
3712 tim100=xpart(p100 intersectiontimes (z100--(0,y100)));
3713 tim101=xpart(p101 intersectiontimes (z100--(w,y100)));
3714 tim102=xpart(p100 intersectiontimes (z101--(x101,y4)));
3715 tim103=xpart(p101 intersectiontimes (z101--(x101,y2)));
3716 tim104=xpart(p102 intersectiontimes (z102--(0,y102)));
3717 tim105=xpart(p103 intersectiontimes (z102--(x11,y102)));
3718 tim106=xpart(p102 intersectiontimes ((0,.5[y1,y0])--(x8,.5[y1,y0])));
3719 tim107=xpart(p103 intersectiontimes ((0,.5[y1,y0])--(x8,.5[y1,y0])));
3720 oblu:=bbw;
3721 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
3722 ..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle;
3723 infill subpath(rundy(p102,tim104),rundy(p102,tim106).zpet) of p102
3724 ..subpath(rundy(p103,tim107),rundy(p103,tim105).zpet) of p103..cycle;
3725 penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12); labels(0',0'',6',6'',100,101,102);
3726 endchar;
3727
3728 iff known chars.greek_xi_SS:
3729 bskchar "The sans-serif Greek letter xi";
3730 beginchar(chars.greek_xi_SS,9u#,asc_height#,.5desc_depth#); uni "non";
3731 italcorr asc_height#*slant;
3732 adjust_fit(0,0);
3733 pickup tiny.nib;
3734 numeric tim[]; path p[]; oblu:=2oblu;
3735 pos1(hair,90); pos2(stem,180); pos0(hair,0); pos7(stem,180);
3736 pos3(curve,240); pos4(hair,180); pos5(hair,100); pos6(hair,90);
3737 pos8(hair,-90); pos9(hair,90); pos10(hair,0); pos11(hair,-90);
3738 pos12(hair,180);
3739 lft x2r=u; top y1r=.35[x_height,bar_height]; y2=.5x_height; x1=.5w;
3740 rt x4r=w-u; y4=-.5d; x5=.5[x3,x4]; bot y5l=-d;
3741 rt x0r=w-2u; y0=y1-stem; x3=.5w; y3=.5bar_height-.5d;
3742 x6=x5-stem; y6=y5; lft x7r=1.5u; y7=.35[y1,y9];
3743 x8=.25[x1,x0]; .25[y8,y1]=y0; top y9r=h-.75stem; x10-x9=x0-x1;
3744 rt x10r=w-u; y10=y9-.5stem; y10=.5[y11,y9]; x11=.5[x9,x10];
3745 top y12=h; x12=x9-stem;
3746 p0=z12r..z11r..z10r..z9r..z7r{down}..z8r..{up}z0r..z1r..z2r..z3r..z4r..z5r---z6r;
3747 p1=z6l---z5l..z4l..z3l..z2l..z1l..{down}z0l..z8l..{up}z7l..z9l..z10l..z11l..z12l;
3748 (tim0,tim1-5)=p0 intersectiontimes subpath(5,infinity) of p0;
3749 (tim2,tim3-4)=p1 intersectiontimes subpath (4,5) of p0;
3750 (tim4-5,tim5-7)=subpath(5,infinity) of p0 intersectiontimes subpath(7,infinity) of p1;
3751 (tim6-7,tim7)=subpath(7,infinity) of p1 intersectiontimes subpath(0,6) of p1;
3752 (tim8,tim9-1)=p0 intersectiontimes subpath(1,infinity) of p0;
3753 (tim10,tim11)=p1 intersectiontimes subpath(0,1) of p0;
3754 (tim12-2,tim13)=subpath(2,4) of p0 intersectiontimes p1;
3755 (tim14-8,tim15-11)=subpath(8,10) of p1 intersectiontimes subpath(11,infinity) of p1;
3756 filldraw subpath(0,rundy(p0,tim8).zpet) of p0..subpath(rundy(p0,tim9),rundy(p0,tim0).zpet) of p0
3757 ..subpath(rundy(p0,tim1),infinity) of p0
3758 ..subpath(0,rundy(p1,tim2).zpet) of p1
3759 ..subpath(rundy(p0,tim3),rundy(p0,(tim4,hair)).zpet) of p0
3760 ..subpath(rundy(p1,(tim5,hair)),rundy(p1,tim10).zpet) of p1
3761 ..subpath(rundy(p0,tim11),rundy(p0,(tim12,hair)).zpet) of p0
3762 ..subpath(rundy(p1,(tim13,hair)),infinity) of p1..cycle;
3763 infill subpath(rundy(p1,tim7),rundy(p1,tim6).zpet) of p1..cycle;
3764 infill subpath(rundy(p1,tim14),rundy(p1,tim15).zpet) of p1..cycle;
3765 penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12); labels(0',0'',6',6'');
3766 endchar;
3767
3768 charscription(9u,x_height,0)(
3769 pos1(curve,0); pos2(hair,90); pos3(curve,180); pos4(hair,270);
3770 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
3771 bot y2l=-o; top y4l=h+o;
3772 filldraw z1l{down}..z2l..{up}z3l..z4l..{down}cycle;
3773 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
3774 penlabels(1,2,3,4);
3775 );
3776
3777 iff known chars.greek_omicron:
3778 bskchar "The Greek letter omicron";
3779 beginchar(chars.greek_omicron,9u#,x_height#,0); uni "0x03BF";
3780 italcorr bar_height#*slant;
3781 adjust_fit(0,0);
3782 pickup tiny.nib;
3783 usechar;
3784 endchar;
3785
3786 iff known chars.greek_omicron_SS:
3787 bskchar "The sans-serif Greek letter omicron";
3788 beginchar(chars.greek_omicron_SS,9u#,x_height#,0); uni "non";
3789 italcorr bar_height#*slant;
3790 adjust_fit(0,0);
3791 pickup tiny.nib;
3792 usechar;
3793 endchar;
3794
3795 iff known chars.greek_omicron_BB:
3796 bskchar "The blackboard-bold Greek letter omicron";
3797 beginchar(chars.greek_omicron_BB,9u#,x_height#,0); uni "non";
3798 italcorr bar_height#*slant;
3799 adjust_fit(0,0);
3800 pickup tiny.nib;
3801 pos1(cap_stem,0); pos2(hair,90); pos3(cap_stem,180); pos4(hair,270);
3802 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
3803 bot y2l=-o; top y4l=h+o;
3804 filldraw z1l{down}..z2l..{up}z3l..z4l..{down}cycle;
3805 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
3806 path p[]; numeric tim[];
3807 p100:=z4r..z1r{down}..z2r..z3r..cycle;
3808 p101:=reverse z4l..z1l{down}..z2l..{up}z3l..cycle;
3809 oblu:=1.25bbw;
3810 z100=bsktouch(subpath(0,1) of p100,up,p101,down);
3811 z101=bsktouch(subpath(1,2) of p100,down,p101,up);
3812 z102=bsktouch(subpath(3,4) of p100,up,p101,down);
3813 z103=bsktouch(subpath(2,3) of p100,down,p101,up);
3814 tim100=xpart(p100 intersectiontimes (z100--(x100,y1)));
3815 tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5)));
3816 tim102=xpart(p100 intersectiontimes (z101--(x101,y1)));
3817 tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5)));
3818 tim104=xpart(p100 intersectiontimes (z102--(x102,y1)));
3819 tim105=xpart(p101 intersectiontimes (z102--(x102,y4l+5)));
3820 tim106=xpart(p100 intersectiontimes (z103--(x103,y1)));
3821 tim107=xpart(p101 intersectiontimes (z103--(x103,y2l-5)));
3822 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
3823 ..subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle;
3824 infill subpath(rundy(p100,tim104).zpet,rundy(p100,tim106)) of p100
3825 ..subpath(rundy(p101,tim107),rundy(p101,tim105).zpet) of p101..cycle;
3826 penlabels(1,2,3,4); labels(100,101,102,103);
3827 endchar;
3828
3829 iff known chars.greek_pi:
3830 bskchar "The Greek letter pi";
3831 beginchar(chars.greek_pi,11u#,x_height#,0); uni "0x03C0";
3832 italcorr x_height#*slant;
3833 adjust_fit(0,0);
3834 pickup tiny.nib;
3835 numeric tim[]; path p[]; oblu:=2oblu;
3836 pos1(curve,180); pos2(stem,90); pos3(stem,90);
3837 pos4(hair,90); pos5(curve,10); pos6(.5[hair,stem],0);
3838 pos7(.5[hair,stem],0); pos8(curve,-10); pos8'(.5[curve,stem],0);
3839 lft x1r=u; y1=y2l-stem;
3840 rt x4l=w-u; .5[x2,x3]=.5w; x3-x2=.5(w-u);
3841 top y2r=top y3r=h; y4r=y3r; x2l:=x2l+.5stem;
3842 x5=x6r; bot y5l=0; y5r:=y5r+o;
3843 z6r=z3; y7=y6; x7l=x2+stem; bot y8=0; x8r=x7l;
3844 y8'=.5bar_height; z8'l=whatever[z8l,z7l]+.5hair*right;
3845 y6l:=y6l-o;
3846 p0=z1r..z2r---z4r..z4l{down}..z3l..{left}z2l..{dir-60}z1l..{dir150}z1r;
3847 p1=reverse(z6l{down}..{dir-70}z5l..(x5r,0)..z5r{dir130}..{up}z6r);
3848 p2=reverse(z7l---z8'l..z8l&z8l..z8r..z8'r---z7r);
3849 (tim0,tim1)=p0 intersectiontimes p1;
3850 (tim2,tim3-1)=p0 intersectiontimes subpath (1,infinity) of p1;
3851 (tim4,tim5)=p0 intersectiontimes p2;
3852 (tim6,tim7-1)=p0 intersectiontimes subpath(1,infinity) of p2;
3853 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3854 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
3855 ..subpath(rundy(p0,(tim2,2hair)),rundy(p0,(tim4,2hair)).zpet) of p0
3856 ..subpath(rundy(p2,tim5),rundy(p2,tim7).zpet) of p2
3857 ..subpath(rundy(p0,tim6),infinity) of p0&cycle;
3858 penlabels(1,2,3,4,5,6,7,8,8');
3859 math_fit(-.5[x_height#,bar_height#]*slant,-.5u#);
3860 endchar;
3861
3862 iff known chars.greek_pi_BB:
3863 bskchar "The blackboard-bold Greek letter pi";
3864 beginchar(chars.greek_pi_BB,11u#,x_height#,0); uni "0x213C";
3865 italcorr x_height#*slant;
3866 adjust_fit(0,0);
3867 pickup tiny.nib;
3868 numeric tim[]; path p[]; oblu:=2oblu;
3869 pos1(curve,180); pos2(stem,90); pos3(stem,90);
3870 pos4(hair,90); pos5(cap_stem,10); pos6(.5[hair,cap_stem],0);
3871 pos7(.5[hair,cap_stem],0); pos8(cap_stem,-10); pos8'(.5[curve,cap_stem],0);
3872 lft x1r=u; y1=y2l-stem;
3873 rt x4l=w-u; .5[x2,x3]=.5w; x3-x2=.5(w-u);
3874 top y2r=top y3r=h; y4r=y3r; x2l:=x2l+.5stem;
3875 x5=x6r; bot y5l=1.5o; y5r:=y5r+o;
3876 z6r=z3; y7=y6; x7l=x2+stem; bot y8=0; x8r=x7l;
3877 y8'=.5bar_height; z8'l=whatever[z8l,z7l]+.5hair*right;
3878 y6l:=y6l-o;
3879 p0=z1r..z2r---z4r..z4l{down}..z3l..{left}z2l..{dir-60}z1l..{dir150}z1r;
3880 p1=reverse(z6l{down}..{dir-70}z5l..(x5r,0)..z5r{dir130}..{up}z6r);
3881 p2=reverse(z7l---z8'l..z8l&z8l..z8r..z8'r---z7r);
3882 (tim0,tim1)=p0 intersectiontimes p1;
3883 (tim2,tim3-1)=p0 intersectiontimes subpath (1,infinity) of p1;
3884 if tim2=-1: tim2:=4; tim3:=length(p1); fi
3885 (tim4,tim5)=p0 intersectiontimes p2;
3886 (tim6,tim7-1)=p0 intersectiontimes subpath(1,infinity) of p2;
3887 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3888 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
3889 if not boldmath:..subpath(rundy(p0,(tim2,2hair)),rundy(p0,(tim4,2hair)).zpet) of p0 fi
3890 ..subpath(rundy(p2,tim5),rundy(p2,tim7).zpet) of p2
3891 ..subpath(rundy(p0,tim6),infinity) of p0&cycle;
3892 p100=subpath(0,rundy(p2,3).zpet) of p2..subpath(rundy(p2,3),infinity) of p2;
3893 oblu:=1.25bbw;
3894 tim100=ypart(p0 intersectiontimes p100);
3895 tim101-1=ypart(p0 intersectiontimes subpath(1,infinity) of p100);
3896 infill subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1..cycle;
3897 infill subpath(rundy(p100,tim100),rundy(p100,tim101).zpet) of p100..cycle;
3898 penlabels(1,2,3,4,5,6,7,8,8');
3899 endchar;
3900
3901 iff known chars.greek_pi_SS:
3902 bskchar "The sans-serif Greek letter pi";
3903 beginchar(chars.greek_pi_SS,11u#,x_height#,0); uni "non";
3904 italcorr x_height#*slant;
3905 adjust_fit(0,0);
3906 pickup tiny.nib;
3907 numeric tim[]; path p[]; oblu:=2oblu;
3908 pos1(curve,180); pos2(stem,90); pos3(stem,90);
3909 pos4(hair,90); pos5(curve,10); pos6(.5[hair,stem],0);
3910 pos7(.5[hair,stem],0); pos8(curve,0); pos8'(curve,0);
3911 lft x1r=u; y1=y2l-stem;
3912 rt x4l=w-u; .5[x2,x3]=.5w; x3-x2=.5(w-u);
3913 top y2r=top y3r=h; y4r=y3r; x2l:=x2l+.5stem;
3914 x5=x6; bot y5l=o;
3915 z6r=z3; y7=y6; x7l=x2+stem; bot y8=0; x8=x7;
3916 y8'=.5bar_height; z8'l=whatever[z8l,z7l];
3917 y6l:=y6l-o;
3918 p0=z1r..z2r---z4r..z4l{down}..z3l---z2l..{dir-60}z1l..{dir150}z1r;
3919 p1=reverse(z6l{down}..{down}z5l..z5r{up}..{up}z6r);
3920 p2=reverse(z7l---z8'l..z8l&z8l..z8r...z8'r---z7r);
3921 (tim0,tim1)=p0 intersectiontimes p1;
3922 (tim2,tim3-1)=p0 intersectiontimes subpath (1,infinity) of p1;
3923 (tim4,tim5)=p0 intersectiontimes p2;
3924 (tim6,tim7-1)=p0 intersectiontimes subpath(1,infinity) of p2;
3925 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3926 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
3927 ..subpath(rundy(p0,(tim2,hair)),rundy(p0,(tim4,hair)).zpet) of p0
3928 ..subpath(rundy(p2,tim5),rundy(p2,tim7).zpet) of p2
3929 ..subpath(rundy(p0,tim6),infinity) of p0&cycle;
3930 penlabels(1,2,3,4,5,6,7,8,8');
3931 endchar;
3932
3933 iff known chars.greek_pi_curved:
3934 bskchar "The Greek letter pi (curved version)";
3935 beginchar(chars.greek_pi_curved,11u#,x_height#,0); uni "non";
3936 italcorr x_height#*slant;
3937 adjust_fit(0,0);
3938 pickup tiny.nib;
3939 numeric tim[]; path p[]; oblu:=2oblu;
3940 pos1(curve,180); pos2(stem,90); pos3(stem,90);
3941 pos4(hair,180); pos5(curve,10); pos6(.5[hair,stem],0);
3942 pos7(.5[hair,stem],0); pos8(curve,-10); pos8'(.5[curve,stem],0);
3943 lft x1r=u; y1=y2l-stem;
3944 rt x4l=w-u; .5[x2,x3]=.5w; x3-x2=.5(w-u);
3945 top y2r=top y3r=h; top y4=h+hair; x2l:=x2l+.5stem; y3r:=y3r-o;
3946 x5=x6r; bot y5l=0; y5r:=y5r+o;
3947 z6r=z3; y7=y6; x7l=x2+stem; bot y8=0; x8r=x7l;
3948 y8'=.5bar_height; z8'l=whatever[z8l,z7l]+.5hair*right;
3949 y6l:=y6l-o;
3950 p0=z1r..z2r{right}..z3r..{z4-z3}z4r..z4l{down}..z3l..{left}z2l..{dir-60}z1l..{dir150}z1r;
3951 p1=reverse(z6l{down}..{dir-70}z5l..(x5r,0)..z5r{dir130}..{up}z6r);
3952 p2=reverse(z7l---z8'l..z8l&z8l..z8r..z8'r---z7r);
3953 (tim0,tim1)=p0 intersectiontimes p1;
3954 (tim2,tim3-1)=p0 intersectiontimes subpath (1,infinity) of p1;
3955 (tim4,tim5)=p0 intersectiontimes p2;
3956 (tim6,tim7-1)=p0 intersectiontimes subpath(1,infinity) of p2;
3957 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3958 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
3959 ..subpath(rundy(p0,(tim2,2hair)),rundy(p0,(tim4,2hair)).zpet) of p0
3960 ..subpath(rundy(p2,tim5),rundy(p2,tim7).zpet) of p2
3961 ..subpath(rundy(p0,tim6),infinity) of p0&cycle;
3962 penlabels(1,2,3,4,5,6,7,8,8');
3963 math_fit(-.5[x_height#,bar_height#]*slant,-.5u#);
3964 endchar;
3965
3966 charscription(13.5u,x_height,0)(
3967 numeric tim[]; path p[]; oblu:=2oblu;
3968 pos1(stem,90); pos2(hair,180); pos3(stem,270);
3969 pos4(hair,90); pos4'(hair,240); pos4''(.5[hair,stem],-60);
3970 pos5(hair,270); pos6(curve,0); pos7(stem,90);
3971 pos8(hair,90); pos9(stem,90); pos10(stem,90); pos11(hair,90);
3972 top y1r=h; lft x2r=1.5u; y2=.5h; bot y3r=-o;
3973 rt x1=x3; .5[x3,x5]=.5w; x5-x3=1/3w;
3974 1/3[x4,x3]=.45w; y4l=bar_height;
3975 bot y5r=-o; y6=y2; rt x6r=w-u;
3976 x7-x6=(x2-x1); top y7r=h;
3977 y4'=y4''=.6bar_height; .5[x4',x4'']=x4; x4'-x4''=.35(y3-y4);
3978 z1'=z1+.2curve*right+o*up; z1''=z1+.5(curve-currentbreadth)*dir135;
3979 z7'=z7+.2curve*right+o*down; z7''=z7+.5(curve-currentbreadth)*dir45;
3980 lft x8=.5u; y8r=y9r; top y9r=top y10r=h; x9=.5[x8,x1];
3981 rt x11=w-.5u; x10=.5[x11,x7]; y11r=y10r;
3982 p0=z7'{right}..z6l..z5l..z4'l..z4l{right}..z4''l..z3l{left}..z2l..{right}z1l;
3983 p1=z1l{right}..z1'..z1r..z1''..z2r..{right}z3r..z4''r..{left}z4r..z4'r..{right}z5r..z6r..z7''..z7r;
3984 p2=z8l{right}..z9l...z10l..{right}z11l..{left}z11r..z10r...z9r..{left}z8r;
3985 (tim0,tim1-7)=subpath(0,6) of p1 intersectiontimes subpath (7,infinity) of p1;
3986 (tim2-1,tim3)=subpath(1,infinity) of p0 intersectiontimes p1;
3987 (tim4,tim5-4)=p1 intersectiontimes subpath(4,6) of p0;
3988 (tim6,tim7-4)=subpath(0,4) of p0 intersectiontimes subpath(4,infinity) of p0;
3989 (tim8,tim9-2)=p2 intersectiontimes subpath(2,infinity) of p1;
3990 (tim10-10,tim11)=subpath (10,infinity) of p1 intersectiontimes p2;
3991 filldraw subpath(0,rundy(p2,tim8).zpet) of p2
3992 ..subpath(rundy(p1,tim9),rundy(p1,(tim0,f_obl)).zpet) of p1
3993 ..subpath(rundy(p1,(tim1,f_obl)),rundy(p1,tim10).zpet) of p1
3994 ..subpath(rundy(p2,tim11),infinity) of p2..cycle;
3995 infill subpath(0,rundy(p0,tim2).zpet) of p0
3996 ..subpath(rundy(p1,tim3),rundy(p1,(tim4,1.2f_obl)).zpet) of p1
3997 ..subpath(rundy(p0,tim5),infinity) of p0..cycle;
3998 oblu:=f_obl;
3999 infill subpath(rundy(p0,tim6),rundy(p0,tim7).zpet) of p0 ..cycle;
4000 penlabels(0,1,2,3,4,4',4'',5,6,7,8,9,10,11); labels(1',1'',7',7'');
4001 );
4002
4003 iff known chars.greek_varpi:
4004 bskchar "The Greek letter pi---alternative";
4005 beginchar(chars.greek_varpi,13.5u#,x_height#,0); uni "0x03D6";
4006 italcorr x_height#*slant+.5u#;
4007 adjust_fit(0,0);
4008 pickup tiny.nib;
4009 usechar;
4010 math_fit(mft-.5u#,u#);
4011 endchar;
4012
4013 iff known chars.greek_varpi_SS:
4014 bskchar "The sans-serif Greek letter pi---alternative";
4015 beginchar(chars.greek_varpi_SS,13.5u#,x_height#,0); uni "non";
4016 italcorr x_height#*slant+.5u#;
4017 adjust_fit(0,0);
4018 pickup tiny.nib;
4019 usechar;
4020 endchar;
4021
4022 iff known chars.greek_varpi_BB:
4023 bskchar "The blackboard-bold Greek letter pi---alternative";
4024 beginchar(chars.greek_varpi_BB,13.5u#,x_height#,0); uni "non";
4025 italcorr x_height#*slant+.5u#;
4026 adjust_fit(0,0);
4027 pickup tiny.nib;
4028 numeric tim[]; path p[]; oblu:=2oblu;
4029 pos1(stem,90); pos2(hair,180); pos3(stem,270);
4030 pos4(hair,90); pos4'(hair,240); pos4''(.5[hair,stem],-60);
4031 pos5(hair,270); pos6(cap_stem,0); pos7(stem,90);
4032 pos8(hair,90); pos9(stem,90); pos10(stem,90); pos11(hair,90);
4033 top y1r=h; lft x2r=1.5u; y2=.5h; bot y3r=-o;
4034 rt x1=x3; .5[x3,x5]=.5w; x5-x3=1/3w;
4035 1/3[x4,x3]=.45w; y4l=bar_height;
4036 bot y5r=-o; y6=y2; rt x6r=w-u;
4037 x7-x6=(x2-x1); top y7r=h;
4038 y4'=y4''=.6bar_height; .5[x4',x4'']=x4; x4'-x4''=.35(y3-y4);
4039 z1'=z1+.2curve*right+o*up; z1''=z1+.5(curve-currentbreadth)*dir135;
4040 z7'=z7+.2curve*right+o*down; z7''=z7+.5(curve-currentbreadth)*dir45;
4041 lft x8=.5u; y8r=y9r; top y9r=top y10r=h; x9=.5[x8,x1];
4042 rt x11=w-.5u; x10=.5[x11,x7]; y11r=y10r;
4043 p0=z7'{right}..z6l..z5l..z4'l..z4l{right}..z4''l..z3l{left}..z2l..{right}z1l;
4044 p1=z1l{right}..z1'..z1r..z1''..z2r..{right}z3r..z4''r..{left}z4r..z4'r..{right}z5r..z6r..z7''..z7r;
4045 p2=z8l{right}..z9l...z10l..{right}z11l..{left}z11r..z10r...z9r..{left}z8r;
4046 (tim0,tim1-7)=subpath(0,6) of p1 intersectiontimes subpath (7,infinity) of p1;
4047 (tim2-1,tim3)=subpath(1,infinity) of p0 intersectiontimes p1;
4048 (tim4,tim5-4)=p1 intersectiontimes subpath(4,6) of p0;
4049 (tim6,tim7-4)=subpath(0,4) of p0 intersectiontimes subpath(4,infinity) of p0;
4050 (tim8,tim9-2)=p2 intersectiontimes subpath(2,infinity) of p1;
4051 (tim10-10,tim11)=subpath (10,infinity) of p1 intersectiontimes p2;
4052 filldraw subpath(0,rundy(p2,tim8).zpet) of p2
4053 ..subpath(rundy(p1,tim9),rundy(p1,(tim0,f_obl)).zpet) of p1
4054 ..subpath(rundy(p1,(tim1,f_obl)),rundy(p1,tim10).zpet) of p1
4055 ..subpath(rundy(p2,tim11),infinity) of p2..cycle;
4056 infill subpath(0,rundy(p0,tim2).zpet) of p0
4057 ..subpath(rundy(p1,tim3),rundy(p1,(tim4,1.2f_obl)).zpet) of p1
4058 ..subpath(rundy(p0,tim5),infinity) of p0..cycle;
4059 oblu:=f_obl;
4060 infill subpath(rundy(p0,tim6),rundy(p0,tim7).zpet) of p0 ..cycle;
4061 p100=subpath(0,2) of p0;
4062 p101=subpath(9,11) of p1;
4063 z100=bsktouch(subpath(0,1) of p100,1.5up,p101,1.5down);
4064 z101=bsktouch(p100,down,subpath(0,1) of p101,up);
4065 tim100=xpart(p100 intersectiontimes (z100--(x100,y6)));
4066 tim101=xpart(p101 intersectiontimes (z100--(x100,y7r+5)));
4067 tim102=xpart(p100 intersectiontimes (z101--(x101,y6)));
4068 tim103=xpart(p101 intersectiontimes (z101--(x101,y5r-u-5)));
4069 oblu:=bbw;
4070 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
4071 ..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle;
4072 penlabels(0,1,2,3,4,4',4'',5,6,7,8,9,10,11); labels(1',1'',7',7'',100,101);
4073 endchar;
4074
4075 iff known chars.greek_varpi_curved:
4076 bskchar "The Greek letter pi---alternative (curved version)";
4077 beginchar(chars.greek_varpi_curved,13.5u#,x_height#,0); uni "non";
4078 italcorr x_height#*slant+.5u#;
4079 adjust_fit(0,0);
4080 pickup tiny.nib;
4081 numeric tim[]; path p[]; oblu:=2oblu;
4082 pos1(stem,90); pos2(hair,180); pos3(stem,270);
4083 pos4(hair,90); pos4'(hair,240); pos4''(.5[hair,stem],-60);
4084 pos5(hair,270); pos6(curve,0); pos7(stem,90);
4085 pos8(hair,90); pos9(stem,90); pos10(stem,90); pos11(hair,90);
4086 top y1r=h; lft x2r=1.5u; y2=.5h; bot y3r=-o;
4087 rt x1=x3; .5[x3,x5]=.5w; x5-x3=1/3w;
4088 1/3[x4,x3]=.45w; y4l=bar_height;
4089 bot y5r=-o; y6=y2; rt x6r=w-u;
4090 x7-x6=(x2-x1); top y7r=h;
4091 y4'=y4''=.6bar_height; .5[x4',x4'']=x4; x4'-x4''=.35(y3-y4);
4092 z1'=z1+.2curve*right+o*up; z1''=z1+.5(curve-currentbreadth)*dir135;
4093 z7'=z7+.2curve*right+o*down; z7''=z7+.5(curve-currentbreadth)*dir45;
4094 lft x8=.5u; y8l=.5[bar_height,x_height]; top y9r=top y10r=h; x9=.5[x8,x1];
4095 rt x11=w-.5u; x10=.5[x11,x7]; y11r=h;
4096 p0=z7'{right}..z6l..z5l..z4'l..z4l{right}..z4''l..z3l{left}..z2l..{right}z1l;
4097 p1=z1l{right}..z1'..z1r..z1''..z2r..{right}z3r..z4''r..{left}z4r..z4'r..{right}z5r..z6r..z7''..z7r;
4098 p2=z8l{up}..z9l...z10l..{right}z11l..{left}z11r..z10r...z9r..{down}z8r;
4099 (tim0,tim1-7)=subpath(0,6) of p1 intersectiontimes subpath (7,infinity) of p1;
4100 (tim2-1,tim3)=subpath(1,infinity) of p0 intersectiontimes p1;
4101 (tim4,tim5-4)=p1 intersectiontimes subpath(4,6) of p0;
4102 (tim6,tim7-4)=subpath(0,4) of p0 intersectiontimes subpath(4,infinity) of p0;
4103 (tim8,tim9-2)=p2 intersectiontimes subpath(2,infinity) of p1;
4104 (tim10-10,tim11)=subpath (10,infinity) of p1 intersectiontimes p2;
4105 filldraw subpath(0,rundy(p2,tim8).zpet) of p2
4106 ..subpath(rundy(p1,tim9),rundy(p1,(tim0,hair)).zpet) of p1
4107 ..subpath(rundy(p1,(tim1,hair)),rundy(p1,tim10).zpet) of p1
4108 ..subpath(rundy(p2,tim11),infinity) of p2..cycle;
4109 infill subpath(0,rundy(p0,tim2).zpet) of p0
4110 ..subpath(rundy(p1,tim3),rundy(p1,(tim4,1.2hair)).zpet) of p1
4111 ..subpath(rundy(p0,tim5),infinity) of p0..cycle;
4112 oblu:=f_obl;
4113 infill subpath(rundy(p0,tim6),rundy(p0,tim7).zpet) of p0 ..cycle;
4114 penlabels(0,1,2,3,4,4',4'',5,6,7,8,9,10,11); labels(1',1'',7',7'');
4115 math_fit(mft-.5u#,u#);
4116 endchar;
4117
4118 iff known chars.greek_rho:
4119 bskchar "The Greek letter rho";
4120 beginchar(chars.greek_rho,8.5u#,x_height#,desc_depth#); uni "0x03C1";
4121 italcorr bar_height#*slant;
4122 adjust_fit(0,0);
4123 pickup tiny.nib;
4124 numeric tim[]; path p[]; oblu:=2oblu;
4125 pos1(curve,0); pos2(hair,90); pos3(stem,180); pos4(hair,270);
4126 pos5(curve,20); pos6(.5[stem,hair],0);
4127 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
4128 bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
4129 bot y5l=-d; y6=-.5d; x6=x1r; x6r=lft x5l; x5'=x5r; y5'=y5l;
4130 p0=z5l{up}..z6l..{up}z1l..z4l..{down}z3l..z2l..{up}z1l;
4131 p1=z1r{down}..z6r..z5r..z5'..{up}z5l;
4132 (tim0,tim1)=p0 intersectiontimes p1;
4133 filldraw subpath(0, rundy(p0,tim0).zpet) of p0..subpath(rundy(p1,tim1),infinity) of p1..cycle;
4134 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
4135 penlabels(1,2,3,4,5,6); labels(5');
4136 endchar;
4137
4138 iff known chars.greek_rho_BB:
4139 bskchar "The blackboard-bold Greek letter rho";
4140 beginchar(chars.greek_rho_BB,9u#,x_height#,desc_depth#); uni "non";
4141 italcorr bar_height#*slant;
4142 adjust_fit(0,0);
4143 pickup tiny.nib;
4144 numeric tim[]; path p[]; oblu:=2oblu;
4145 pos1(cap_stem,0); pos2(hair,90); pos3(.8cap_stem,180); pos4(hair,270);
4146 pos5(cap_stem,20); pos6(.5[cap_stem,hair],0);
4147 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
4148 bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
4149 bot y5l=-d; y6=-.5d; x6=x1r; x6r=lft x5l; x5'=x5r; y5'=y5l;
4150 p0=z5l{up}..z6l..{up}z1l..z4l..{down}z3l..z2l..{up}z1l;
4151 p1=z1r{down}..z6r..z5r..z5'..{up}z5l;
4152 (tim0,tim1)=p0 intersectiontimes p1;
4153 filldraw subpath(0, rundy(p0,tim0).zpet) of p0..subpath(rundy(p1,tim1),infinity) of p1..cycle;
4154 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
4155 p100=subpath(0,3) of p0;
4156 p101=subpath(1,5) of (z3r{up}..z4r..{down}p1);
4157 p102=subpath(3,5) of p0;
4158 p103=subpath(1,3) of z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
4159 z100=bsktouch(p100,down,p101,up);
4160 z101=bsktouch(p102,down,p103,up);
4161 z102=bsktouch(p102,up,p103,down);
4162 tim100=xpart(p100 intersectiontimes (z100--(x100,y4l+u+5)));
4163 tim101=xpart(p101 intersectiontimes (z100--(x100,y1)));
4164 tim102=xpart(p102 intersectiontimes (z101--(x101,y4l+5)));
4165 tim103=xpart(p103 intersectiontimes (z101--(x101,y3)));
4166 tim104=xpart(p102 intersectiontimes (z102--(x102,y2l-u-5)));
4167 tim105=xpart(p103 intersectiontimes (z102--(x102,y3)));
4168 oblu:=bbw;
4169 infill subpath(rundy(p100,0),rundy(p100,tim100).zpet) of p100
4170 ..subpath(rundy(p101,tim101),rundy(p101,infinity).zpet) of p101..cycle;
4171 infill subpath(rundy(p102,tim102),rundy(p102,tim104).zpet) of p102
4172 ..reverse subpath(rundy(p103,tim103),rundy(p103,tim105).zpet) of p103..cycle;
4173 penlabels(1,2,3,4,5,6); labels(5',100,101,102);
4174 endchar;
4175
4176 iff known chars.greek_rho_SS:
4177 bskchar "The sans-serif Greek letter rho";
4178 beginchar(chars.greek_rho_SS,8.5u#,x_height#,desc_depth#); uni "non";
4179 italcorr bar_height#*slant;
4180 adjust_fit(0,0);
4181 pickup tiny.nib;
4182 numeric tim[]; path p[]; oblu:=2oblu;
4183 pos1(curve,0); pos2(hair,90); pos3(stem,180); pos4(hair,270);
4184 pos5(curve,0);
4185 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
4186 bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
4187 bot y5=-d; x1=x5;
4188 p0=z5l---z1l..z4l..{down}z3l..z2l..{up}z1l;
4189 p1=z1r---z5r..{up}z5l;
4190 (tim0,tim1)=p0 intersectiontimes p1;
4191 filldraw subpath(0, rundy(p0,tim0).zpet) of p0..subpath(rundy(p1,tim1),infinity) of p1..cycle;
4192 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
4193 penlabels(1,2,3,4,5);
4194 endchar;
4195
4196 iff known chars.greek_varrho:
4197 bskchar "The Greek letter rho---alternative";
4198 beginchar(chars.greek_varrho,8.5u#,x_height#,desc_depth#); uni "0x03F1";
4199 italcorr bar_height#*slant;
4200 adjust_fit(0,0);
4201 pickup tiny.nib;
4202 numeric tim[]; path p[]; oblu:=2oblu;
4203 pos1(curve,0); pos2(hair,90); pos3(stem,180); pos4(hair,270);
4204 pos5(stem,0); pos6(stem,0); pos7(hair,90); pos8(hair,0); pos9(stem,-60);
4205 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
4206 bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
4207 y5=.5[y6,y1]; rt x5r=x6r=x1r;
4208 y7=.5[y6,y9]; x7=x2; rt x8r=w-u; y8=.5[y7,y9]; y8-y9=3/4stem;
4209 bot y9r=-d; x9r=x8-stem; .5[x9',x9r]=x9l; y9'=y9l;
4210 p0=z1l{up}..z4l..{down}z3l..z2l..{up}z1l;
4211 p1=z1r---z5r..z6r..{z8-z9}z7r..{down}z8r..z9r..z9'..z9l..{up}z8l..{z9-z8}z7l..z6l..z5l---z1l;
4212 (tim0,tim1)=p0 intersectiontimes p1;
4213 filldraw subpath(0, rundy(p0,tim0).zpet) of p0..subpath(rundy(p1,tim1),infinity) of p1..cycle;
4214 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
4215 penlabels(1,2,3,4,5,6,7,8,9); labels(9');
4216 endchar;
4217
4218 iff known chars.greek_varrho_BB:
4219 bskchar "The blackboard-bold Greek letter rho---alternative";
4220 beginchar(chars.greek_varrho_BB,9u#,x_height#,desc_depth#); uni "non";
4221 italcorr bar_height#*slant;
4222 adjust_fit(0,0);
4223 pickup tiny.nib;
4224 numeric tim[]; path p[]; oblu:=2oblu;
4225 pos1(cap_stem,0); pos2(hair,90); pos3(.8cap_stem,180); pos4(hair,270);
4226 pos5(cap_stem,0); pos6(.8cap_stem,0); pos7(hair,90); pos8(hair,0); pos9(stem,-60);
4227 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
4228 bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
4229 y5=.5[y6,y1]; x5r=x6r=x1r;
4230 y7=.5[y6,y9]; x7=x2; rt x8r=w-u; y8=.5[y7,y9]; y8-y9=3/4stem;
4231 bot y9r=-d; x9r=x8-stem; .5[x9',x9r]=x9l; y9'=y9l;
4232 p0=z1l{up}..z4l..{down}z3l..z2l..{up}z1l;
4233 p1=z1r---z5r..z6r..{z8-z9}z7r..{down}z8r..z9r..z9'..z9l..{up}z8l..{z9-z8}z7l..z6l..z5l---z1l;
4234 (tim0,tim1)=p0 intersectiontimes p1;
4235 filldraw subpath(0, rundy(p0,tim0).zpet) of p0..subpath(rundy(p1,tim1),infinity) of p1..cycle;
4236 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
4237 p100=subpath(9,infinity) of p1..subpath(0,1) of p0;
4238 p101=subpath(1,5) of (z3r{up}..z4r..{down}subpath(0,3) of p1);
4239 p102=subpath(1,3) of p0;
4240 p103=subpath(1,3) of z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
4241 z100=bsktouch(p100,down,p101,up);
4242 z101=bsktouch(p100,up,p101,down);
4243 z102=bsktouch(p102,down,p103,up);
4244 z103=bsktouch(p102,up,p103,down);
4245 tim100=xpart(p100 intersectiontimes (z100--(x100,y4l+u+5)));
4246 tim101=xpart(p101 intersectiontimes (z100--(x100,y1)));
4247 tim102=xpart(p100 intersectiontimes (z101--(x101,y9)));
4248 tim103=xpart(p101 intersectiontimes (z101--(x101,y6)));
4249 tim104=xpart(p102 intersectiontimes (z102--(x102,y4l+5)));
4250 tim105=xpart(p103 intersectiontimes (z102--(x102,y3)));
4251 tim106=xpart(p102 intersectiontimes (z103--(x103,y2l-u-5)));
4252 tim107=xpart(p103 intersectiontimes (z103--(x103,y3)));
4253 oblu:=bbw;
4254 infill subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100
4255 ..subpath(rundy(p101,tim101),rundy(p101,tim103).zpet) of p101..cycle;
4256 infill subpath(rundy(p102,tim104),rundy(p102,tim106).zpet) of p102
4257 ..reverse subpath(rundy(p103,tim105),rundy(p103,tim107).zpet) of p103..cycle;
4258 penlabels(1,2,3,4,5,6,7,8,9); labels(9',100,101,102,103);
4259 endchar;
4260
4261 iff known chars.greek_varrho_SS:
4262 bskchar "The sans-serif Greek letter rho---alternative";
4263 beginchar(chars.greek_varrho_SS,8.5u#,x_height#,.75desc_depth#); uni "non";
4264 italcorr bar_height#*slant;
4265 adjust_fit(0,0);
4266 pickup tiny.nib;
4267 numeric tim[]; path p[]; oblu:=2oblu;
4268 pos1(curve,0); pos2(hair,90); pos3(stem,180); pos4(hair,270);
4269 pos5(stem,0); pos6(stem,0); pos7(hair,90); pos8(hair,90);
4270 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
4271 bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
4272 y5=.5[y6,y1]; rt x5r=x6r=x1r;
4273 y7l=y8l=-d; x7=x2; rt x8r=w-2u; y6=.5y7;
4274 p0=z1l{up}..z4l..{down}z3l..z2l..{up}z1l;
4275 p1=z1r---z5r..z6r..z7r---z8r..z8l---z7l..z6l..z5l---z1l;
4276 (tim0,tim1)=p0 intersectiontimes p1;
4277 filldraw subpath(0, rundy(p0,tim0).zpet) of p0..subpath(rundy(p1,tim1),infinity) of p1..cycle;
4278 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
4279 penlabels(1,2,3,4,5,6,7,8,9); labels(9');
4280 endchar;
4281
4282 iff known chars.greek_sigma:
4283 bskchar "The Greek letter sigma";
4284 beginchar(chars.greek_sigma,9.5u#,x_height#,0); uni "0x03C3";
4285 italcorr x_height#*slant;
4286 adjust_fit(0,0);
4287 pickup tiny.nib;
4288 numeric tim[]; path p[]; oblu:=2oblu;
4289 pos1(curve,0); pos2(hair,90); pos3(stem,180); pos4(hair,270);
4290 pos5(.35[stem,hair],-90); pos6(hair,-90);
4291 lft x1l=u; rt x3l=w-u-stem; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
4292 bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
4293 top y5l=h+o; y6l=y5l; rt x6r=w-u; x5=w-3u;
4294 p0=z6l{right}..{down}z6r..z5r..z4r;
4295 p1=z1l{up}..z4l..{down}z3l..z2l..{up}z1l;
4296 z0=bsktouch(subpath(1.98,infinity) of p0,down,p1,right);
4297 tim0=xpart(p0 intersectiontimes (z0--(x0,h)));
4298 tim1=xpart(p1 intersectiontimes (z0--(.5w,y0)));
4299 filldraw z1l{up}..z4l--subpath(0,rundy(p0,tim0).zpet) of p0
4300 ..subpath(rundy(p1,tim1),infinity) of p1&cycle;
4301 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
4302 penlabels(1,2,3,4,5,6);
4303 math_fit(mft-.5u#,0);
4304 endchar;
4305
4306 iff known chars.greek_sigma_BB:
4307 bskchar "The blackboard-bold Greek letter sigma";
4308 beginchar(chars.greek_sigma_BB,9.5u#,x_height#,0); uni "non";
4309 italcorr x_height#*slant;
4310 adjust_fit(0,0);
4311 pickup tiny.nib;
4312 numeric tim[]; path p[]; oblu:=2oblu;
4313 pos1(cap_stem,0); pos2(hair,90); pos3(.8cap_stem,180); pos4(hair,270);
4314 pos5(.35[stem,hair],-90); pos6(hair,-90);
4315 lft x1l=u; rt x3l=w-u-stem; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
4316 bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
4317 top y5l=h+o; y6l=y5l; rt x6r=w-u; x5=w-3u;
4318 p0=z6l{right}..{down}z6r..z5r..z4r;
4319 p1=z1l{up}..z4l..{down}z3l..z2l..{up}z1l;
4320 z0=bsktouch(subpath(2,infinity) of p0,down,p1,right);
4321 tim0=xpart(p0 intersectiontimes (z0--(x0,h)));
4322 tim1=xpart(p1 intersectiontimes (z0--(.5w,y0)));
4323 filldraw z1l{up}..z4l--subpath(0,rundy(p0,tim0).zpet) of p0
4324 ..subpath(rundy(p1,tim1),infinity) of p1&cycle;
4325 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
4326 p100:=z4r..z1r{down}..z2r..z3r..cycle;
4327 p101:=reverse z6l--z4l..z1l{down}..z2l..{up}z3l..cycle;
4328 p102:=reverse z4l..z1l{down}..z2l..{up}z3l..cycle;
4329 oblu:=1.25bbw;
4330 z100=bsktouch(subpath(0,1) of p100,up,p101,down);
4331 z101=bsktouch(subpath(1,2) of p100,down,p101,up);
4332 z102=bsktouch(subpath(3,4) of p100,up,p102,down);
4333 z103=bsktouch(subpath(2,3) of p100,down,p102,up);
4334 tim100=xpart(p100 intersectiontimes (z100--(x100,y1)));
4335 tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5)));
4336 tim102=xpart(p100 intersectiontimes (z101--(x101,y1)));
4337 tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5)));
4338 tim104=xpart(p100 intersectiontimes (z102--(if boldmath:x2 else:x102 fi,y1)));
4339 tim105=xpart(p102 intersectiontimes (z102--(x102,y4l+5)));
4340 tim106=xpart(p100 intersectiontimes (z103--(x103,y1)));
4341 tim107=xpart(p102 intersectiontimes (z103--(x103,y2l-5)));
4342 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 ..subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle;
4343 infill subpath(rundy(p100,tim104).zpet,rundy(p100,tim106)) of p100
4344 ..subpath(rundy(p102,tim107),rundy(p102,tim105).zpet) of p102..cycle;
4345 penlabels(1,2,3,4,5,6); labels(100,101,102,103);
4346 endchar;
4347
4348 iff known chars.greek_sigma_SS:
4349 bskchar "The sans-serif Greek letter sigma";
4350 beginchar(chars.greek_sigma_SS,9.5u#,x_height#,0); uni "non";
4351 italcorr x_height#*slant;
4352 adjust_fit(0,0);
4353 pickup tiny.nib;
4354 numeric tim[]; path p[]; oblu:=2oblu;
4355 pos1(curve,0); pos2(hair,90); pos3(stem,180); pos4(hair,270);
4356 pos5(.35[stem,hair],-90); pos6(hair,-90);
4357 lft x1l=u; rt x3l=w-u-stem; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
4358 bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
4359 top y5l=h+o; y6l=y5l; rt x6r=w-u; x5=w-3u;
4360 p0=z6l{right}..z6r---z5r..z4r;
4361 p1=z1l{up}..z4l..{down}z3l..z2l..{up}z1l;
4362 z0=bsktouch(subpath(2,infinity) of p0,down,p1,right);
4363 tim0=xpart(p0 intersectiontimes (z0--(x0,h)));
4364 tim1=xpart(p1 intersectiontimes (z0--(.5w,y0)));
4365 filldraw z1l{up}..z4l--subpath(0,rundy(p0,tim0).zpet) of p0
4366 ..subpath(rundy(p1,tim1),infinity) of p1&cycle;
4367 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
4368 penlabels(1,2,3,4,5,6);
4369 endchar;
4370
4371 iff known chars.greek_sigma_curved:
4372 bskchar "The Greek letter sigma (curved version)";
4373 beginchar(chars.greek_sigma_curved,9.5u#,x_height#,0); uni "non";
4374 italcorr x_height#*slant;
4375 adjust_fit(0,0);
4376 pickup tiny.nib;
4377 numeric tim[]; path p[]; oblu:=2oblu;
4378 pos1(curve,0); pos2(hair,90); pos3(stem,180); pos4(hair,270);
4379 pos5(.35[stem,hair],-90); pos5'(stem,-90); pos6(hair,0);
4380 lft x1l=u; rt x3l=w-u-stem; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
4381 bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
4382 top y5l=h; top y6=h+hair; rt x6r=w-u; x5=w-3u; .5[x5,x5']=.5w; y5'l=y5l;
4383 p0=z5'{right}..z4l..z5l..{z6-z5}z6l..{down}z6r..z5r..z4r;
4384 p1=z1l{up}..z4l..{down}z3l..z2l..{up}z1l;
4385 z0=bsktouch(subpath(2,infinity) of p0,down,p1,right);
4386 tim0-4=xpart(subpath(4,infinity) of p0 intersectiontimes (z0--(x0,h)));
4387 tim1=xpart(p1 intersectiontimes (z0--(.5w,y0)));
4388 filldraw z1l{up}..z4l..subpath(1,rundy(p0,tim0).zpet) of p0
4389 ..subpath(rundy(p1,tim1),infinity) of p1&cycle;
4390 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
4391 penlabels(1,2,3,4,5,5',6);
4392 labels(0);
4393 math_fit(mft-.5u#,0);
4394 endchar;
4395
4396 iff known chars.greek_varsigma:
4397 bskchar "The Greek letter sigma---alternative";
4398 beginchar(chars.greek_varsigma,8u#,x_height#,.5desc_depth#); uni "0x03C2";
4399 italcorr x_height#*slant-.25u#;
4400 adjust_fit(0,0);
4401 pickup tiny.nib;
4402 pos1(hair,90); pos2(stem,180); pos0(stem,0);
4403 pos3(curve,240); pos4(hair,180); pos5(hair,100); pos6(stem,0);
4404 lft x2r=u; top y1r=h+o; y2=bar_height-.5d; x1=.5w;
4405 rt x4r=w-u; y4=-.5d; x5=.5[x3,x4]; bot y5l=-d;
4406 rt x0r=w-u; y0=y1-stem; x3=.5w; y3=.5bar_height-.5d;
4407 x6=x5-stem; y6=y5+.5stem;
4408 z0'=z0+.2stem*down+o*left; z0''=z0+.5(stem-currentbreadth)*dir45;
4409 z6'=z6+.2stem*up+o*left; z6''=z6+.5(stem-currentbreadth)*dir-45;
4410 filldraw z0r..z0''..z1r..z2r..z3r..z4r..z5r..z6''..z6'..z6l
4411 ..z5l..z4l..z3l..z2l..z1l..{down}z0l..z0'..cycle;
4412 penlabels(0,1,2,3,4,5,6); labels(0',0'',6',6'');
4413 math_fit(mft-.5u#,0);
4414 endchar;
4415
4416 iff known chars.greek_varsigma_BB:
4417 bskchar "The blackboard-bold Greek letter sigma---alternative";
4418 beginchar(chars.greek_varsigma_BB,8u#,x_height#,.5desc_depth#); uni "non";
4419 italcorr x_height#*slant-.25u#;
4420 adjust_fit(0,0);
4421 pickup tiny.nib;
4422 path p[]; numeric tim[];
4423 pos1(hair,90); pos2(.8cap_stem,180); pos0(stem,0);
4424 pos3(cap_stem,240); pos4(hair,180); pos5(hair,100); pos6(stem,0);
4425 lft x2r=u; top y1r=h+o; y2=bar_height-.5d; x1=.5w;
4426 rt x4r=w-u; y4=-.5d; x5=.5[x3,x4]; bot y5l=-d;
4427 rt x0r=w-u; y0=y1-stem; x3=.5w; y3=.5bar_height-.5d;
4428 x6=x5-stem; y6=y5+.5stem;
4429 z0'=z0+.2stem*down+o*left; z0''=z0+.5(stem-currentbreadth)*dir45;
4430 z6'=z6+.2stem*up+o*left; z6''=z6+.5(stem-currentbreadth)*dir-45;
4431 p0:=z0r..z0''..z1r..z2r..z3r..z4r..z5r..z6''..z6'..z6l..z5l..z4l..z3l..z2l..z1l..{down}z0l..z0'..cycle;
4432 filldraw p0;
4433 p100=subpath(2,5) of p0;
4434 p101=subpath(11,14) of p0;
4435 z100=bsktouch(p100,bbs*dir45,subpath(0,2) of p101,dir-135);
4436 z101=bsktouch(p100,dir-45,p101,dir135);
4437 tim100=xpart(p100 intersectiontimes (z100--(x100,y5)));
4438 tim101=xpart(p101 intersectiontimes (z100--(x100,y2)));
4439 tim102=xpart(p100 intersectiontimes (z101--(0,y101)));
4440 tim103=xpart(p101 intersectiontimes (z101--(w,y101)));
4441 oblu:=bbw;
4442 infill subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100
4443 ..subpath(rundy(p101,tim101),rundy(p101,tim103).zpet) of p101..cycle;
4444 penlabels(0,1,2,3,4,5,6); labels(0',0'',6',6'',100,101);
4445 endchar;
4446
4447 iff known chars.greek_varsigma_SS:
4448 bskchar "The sans-serif Greek letter sigma---alternative";
4449 beginchar(chars.greek_varsigma_SS,8u#,x_height#,.5desc_depth#); uni "non";
4450 italcorr x_height#*slant-.25u#;
4451 adjust_fit(0,0);
4452 pickup tiny.nib;
4453 pos1(hair,90); pos2(stem,180); pos0(stem,0);
4454 pos3(curve,240); pos4(hair,180); pos5(hair,100); pos6(hair,90);
4455 lft x2r=u; top y1r=h+o; y2=bar_height-.5d; x1=.5w;
4456 rt x4r=w-u; y4=-.5d; x5=.5[x3,x4]; bot y5l=-d;
4457 rt x0r=w-u; y0=y1-stem; x3=.5w; y3=.5bar_height-.5d;
4458 x6=x5-stem; y6=y5;
4459 z0'=z0+.2stem*down+o*left; z0''=z0+.5(stem-currentbreadth)*dir45;
4460 filldraw z0r{up}..{left}z1r..z2r..z3r..z4r..z5r---z6r
4461 ..z6l---z5l..z4l..z3l..z2l..{right}z1l..{down}z0l..cycle;
4462 penlabels(0,1,2,3,4,5,6); labels(0',0'');
4463 endchar;
4464
4465 iff known chars.greek_tau:
4466 bskchar "The Greek letter tau";
4467 beginchar(chars.greek_tau,9u#,x_height#,0); uni "0x03C4";
4468 italcorr x_height#*slant;
4469 adjust_fit(0,0);
4470 pickup tiny.nib;
4471 numeric tim[]; path p[]; oblu:=2oblu;
4472 pos1(curve,180); pos2(stem,90); pos3(stem,90);
4473 pos4(hair,90); pos5(curve,10); pos6(.5[hair,stem],0);
4474 lft x1r=u; y1=y2l-stem;
4475 rt x4l=w-u; .5[x2,x3]=.5w; x3-x2=.5(w-u);
4476 top y2r=top y3r=h; y4r=y3r; x2l:=x2l+.5stem;
4477 z6=.5[z2,z3]+o*left; x5=x6-o; bot y5l=0; y5r:=y5r+o;
4478 p0=z1r..z2r---z4r..z4l{down}..z3l..{left}z2l..{dir-60}z1l..{dir150}z1r;
4479 p1=reverse(z6l{down}..{dir-60}z5l..(x5r,0)..z5r{dir130}..{up}z6r);
4480 (tim0,tim1)=p0 intersectiontimes p1;
4481 (tim2,tim3-1)=p0 intersectiontimes subpath (1,infinity) of p1;
4482 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
4483 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
4484 ..subpath(rundy(p0,tim2),infinity) of p0&cycle;
4485 penlabels(1,2,3,4,5,6);
4486 math_fit(-.5[x_height#,bar_height#]*slant,ic#-3u#);
4487 endchar;
4488
4489 iff known chars.greek_tau_BB:
4490 bskchar "The blackboard-bold Greek letter tau";
4491 beginchar(chars.greek_tau_BB,9u#,x_height#,0); uni "non";
4492 italcorr x_height#*slant;
4493 adjust_fit(0,0);
4494 pickup tiny.nib;
4495 numeric tim[]; path p[]; oblu:=2oblu;
4496 pos1(curve,180); pos2(stem,90); pos3(stem,90);
4497 pos4(hair,90); pos5(cap_stem,10); pos6(.5[hair,cap_stem],0);
4498 lft x1r=u; y1=y2l-stem;
4499 rt x4l=w-u; .5[x2,x3]=.5w; x3-x2=.5(w-u);
4500 top y2r=top y3r=h; y4r=y3r; x2l:=x2l+.5stem;
4501 z6=.5[z2,z3]+o*left; x5=x6-o; bot y5l=0; y5r:=y5r+o;
4502 p0=z1r..z2r---z4r..z4l{down}..z3l..{left}z2l..{dir-60}z1l..{dir150}z1r;
4503 p1=reverse(z6l{down}..{dir-60}z5l..(x5r,0)..z5r{dir130}..{up}z6r);
4504 (tim0,tim1)=p0 intersectiontimes p1;
4505 (tim2,tim3-1)=p0 intersectiontimes subpath (1,infinity) of p1;
4506 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
4507 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
4508 ..subpath(rundy(p0,tim2),infinity) of p0&cycle;
4509 oblu:=1.25bbw;
4510 infill subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1..cycle;
4511 penlabels(1,2,3,4,5,6);
4512 endchar;
4513
4514 iff known chars.greek_tau_SS:
4515 bskchar "The sans-serif Greek letter tau";
4516 beginchar(chars.greek_tau_SS,9u#,x_height#,0); uni "non";
4517 italcorr x_height#*slant;
4518 adjust_fit(0,0);
4519 pickup tiny.nib;
4520 numeric tim[]; path p[]; oblu:=2oblu;
4521 pos1(stem,180); pos2(stem,90); pos3(stem,90);
4522 pos4(hair,90); pos5(curve,0); pos6(.5[hair,stem],0);
4523 lft x1r=u; y1=y2l-stem;
4524 rt x4l=w-u; .5[x2,x3]=.5w; x3-x2=.5(w-u);
4525 top y2r=top y3r=h; y4r=y3r; x2l:=x2l+.5stem;
4526 z6=.5[z2,z3]+o*left; x5=x6-o; bot y5l=0; y5r:=y5r+o;
4527 p0=z1r..z2r---z4r..z4l{left}...z3l..{left}z2l..{dir-90}z1l..{dir150}z1r;
4528 p1=reverse(z6l{down}..{down}z5l..z5r{up}..{up}z6r);
4529 (tim0,tim1)=p0 intersectiontimes p1;
4530 (tim2,tim3-1)=p0 intersectiontimes subpath (1,infinity) of p1;
4531 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
4532 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
4533 ..subpath(rundy(p0,tim2),infinity) of p0&cycle;
4534 penlabels(1,2,3,4,5,6);
4535 endchar;
4536
4537 iff known chars.greek_tau_curved:
4538 bskchar "The Greek letter tau (curved version)";
4539 beginchar(chars.greek_tau_curved,9u#,x_height#,0); uni "non";
4540 italcorr x_height#*slant;
4541 adjust_fit(0,0);
4542 pickup tiny.nib;
4543 numeric tim[]; path p[]; oblu:=2oblu;
4544 pos1(curve,180); pos2(stem,90); pos3(stem,90);
4545 pos4(hair,180); pos5(curve,10); pos6(.5[hair,stem],0);
4546 lft x1r=u; y1=y2l-stem;
4547 rt x4l=w-u; .5[x2,x3]=.5w; x3-x2=.5(w-u);
4548 top y2r=top y3r=h; top y4=h+hair; x2l:=x2l+.5stem;
4549 z6=.5[z2,z3]+o*left; x5=x6-o; bot y5l=0; y5r:=y5r+o;
4550 p0=z1r..z2r{right}..z3r..{z4-z3}z4r..z4l{down}..z3l..{left}z2l..{dir-60}z1l..{dir150}z1r;
4551 p1=reverse(z6l{down}..{dir-60}z5l..(x5r,0)..z5r{dir130}..{up}z6r);
4552 (tim0,tim1)=p0 intersectiontimes p1;
4553 (tim2,tim3-1)=p0 intersectiontimes subpath (1,infinity) of p1;
4554 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
4555 ..subpath(rundy(p1,tim1),rundy(p1,tim3).zpet) of p1
4556 ..subpath(rundy(p0,tim2),infinity) of p0&cycle;
4557 penlabels(1,2,3,4,5,6);
4558 math_fit(-.5[x_height#,bar_height#]*slant,ic#-3u#);
4559 endchar;
4560
4561 iff known chars.greek_upsilon:
4562 bskchar "The Greek letter upsilon";
4563 beginchar(chars.greek_upsilon,8.5u#,x_height#,0); uni "0x03C5";
4564 italcorr bar_height#*slant;
4565 adjust_fit(serif_fit#,0);
4566 pickup tiny.nib;
4567 pos1(stem,0); pos2(stem,0); pos3(hair,90);
4568 pos4(hair,180); pos5(curve,180);
4569 top y1=h; bot y3l=-o; x3=.5[x2,x4];
4570 lft x2l=u; x1=x2;
4571 y2=.5h;
4572 rt x4l=w-u; y4=bar_height;
4573 top y5''=h+o;
4574 x5-x4=.45(y4-y5);
4575 z5'=z5+.2curve*down+o*left; z5''=z5+.5(curve-currentbreadth)*dir135;
4576 filldraw z1r---z2r..z3r..{up}z4r..z5'..{up}z5r..z5''
4577 ..z5l..{down}z4l..z3l..z2l---z1l..cycle;
4578 penlabels(1,2,3,4,5); labels(5',5'');
4579 math_fit(mft,0);
4580 endchar;
4581
4582 iff known chars.greek_upsilon_BB:
4583 bskchar "The blackboard-bold Greek letter upsilon";
4584 beginchar(chars.greek_upsilon_BB,8.5u#,x_height#,0); uni "non";
4585 italcorr bar_height#*slant;
4586 adjust_fit(serif_fit#,0);
4587 pickup tiny.nib;
4588 pos1(.8cap_stem,0); pos2(.8cap_stem,0); pos3(hair,90);
4589 pos4(hair,180); pos5(curve,180);
4590 top y1=h-o; bot y3l=-o; x3=.5[x2,x4];
4591 lft x2l=u; x1=x2;
4592 y2=.5h;
4593 rt x4l=w-u; y4=bar_height;
4594 top y5''=h+o;
4595 x5-x4=.45(y4-y5);
4596 z5'=z5+.2curve*down+o*left; z5''=z5+.5(curve-currentbreadth)*dir135;
4597 filldraw z1r---z2r..z3r..{up}z4r..z5'..{up}z5r..z5''
4598 ..z5l..{down}z4l..z3l..z2l---z1l..cycle;
4599 path p[]; numeric tim[];
4600 p100=z1r---z2r..z3r..{up}z4r;
4601 p101=z4l{down}..z3l..z2l---z1l;
4602 z100=bsktouch(p100,down,p101,up);
4603 tim100=xpart(p100 intersectiontimes (z100--(x100,y2)));
4604 tim101=xpart(p101 intersectiontimes (z100--(x100,y3l-u-5)));
4605 infill subpath(rundy(p100,0),rundy(p100,tim100).zpet) of p100
4606 ..subpath(rundy(p101,tim101),rundy(p101,infinity)) of p101..cycle;
4607 penlabels(1,2,3,4,5); labels(5',5'',100);
4608 endchar;
4609
4610 iff known chars.greek_upsilon_SS:
4611 bskchar "The sans-serif Greek letter upsilon";
4612 beginchar(chars.greek_upsilon_SS,8.5u#,x_height#,0); uni "non";
4613 italcorr bar_height#*slant;
4614 adjust_fit(0,0);
4615 pickup tiny.nib;
4616 pos1(stem,0); pos2(stem,0); pos3(hair,90);
4617 pos4(hair,180); pos5(hair,180);
4618 top y1=h; bot y3l=-o; x3=.5[x2,x4];
4619 lft x2l=u; x1=x2;
4620 y2=.5h;
4621 rt x4l=w-u; y4=bar_height;
4622 x5=x4; y5=h;
4623 filldraw z1r---z2r..z3r..{up}z4r..{up}z5r
4624 ..{down}z5l..{down}z4l..z3l..z2l---z1l..cycle;
4625 penlabels(1,2,3,4,5);
4626 endchar;
4627
4628 iff known chars.greek_upsilon_curved:
4629 bskchar "The Greek letter upsilon (curved version)";
4630 beginchar(chars.greek_upsilon_curved,9.5u#,x_height#,0); uni "non";
4631 italcorr bar_height#*slant;
4632 adjust_fit(serif_fit#,0);
4633 pickup tiny.nib;
4634 pos1(vair,180); pos2(hair,90); pos3(stem,0); pos4(stem,0); pos5(hair,90);
4635 pos6(hair,180); pos7(curve,180);
4636 top y2r=h; bot y5l=-o; x5=.5[x4l,x6];
4637 x3=x4l; lft x1l=.5u; x3l-x1r=max(curve,1.5u);
4638 y2l-y1=1.5(x3-x1); y3=.35[y1,y2];
4639 z2=z1+whatever*dir60;
4640 y4-y5=y2-y3; rt x6l=w-u; y6=bar_height;
4641 top y7''=h+o;
4642 x7-x6=.45(y6-y7);
4643 z7'=z7+.2curve*down+o*left; z7''=z7+.5(curve-currentbreadth)*dir135;
4644 filldraw z1r{up}..z2r..z3r..z4r..z5r..{up}z6r..z7'..{up}z7r..z7''
4645 ..z7l..{down}z6l..z5l..z4l..z3l..z2l..{down}z1l..cycle;
4646 penlabels(1,2,3,4,5,6,7); labels(7',7'');
4647 math_fit(mft,.5u#);
4648 endchar;
4649
4650 charscription(12u,asc_height,desc_depth)(
4651 numeric tim[]; path p[];
4652 oblu:=2oblu;
4653 pos1(.5[stem,curve],0); pos2(hair,90); pos3(.5[stem,curve],180); pos4(hair,270);
4654 lft x1l=u; rt x3l=w-u; y1=y3=.5x_height; .5[x2,x4]=.5[x1,x3]; x2=x4;
4655 bot y2l=-o; top y4l=x_height+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
4656 y5=h; y6=-d; x5=x6=.5w; pos5(hair, 0); pos6(hair,0);
4657 z0r=.5[z5r,z6r]; z0l=.5[z5l,z6l];
4658 p0:=z1l{down}..z2l..z3l..z4l..{down}z1l;
4659 p1:=z1r{up}..z4r..z3r..z2r..{up}z1r;
4660 bskpoints(5,6,hair,hair);
4661 (tim1,tim2)=p0 intersectiontimes (z5l--z6l);
4662 (tim3,tim4)=p0 intersectiontimes (z6r--z5r);
4663 (tim5,tim6)=p0 intersectiontimes (z0r--z5r);
4664 (tim7,tim8)=p0 intersectiontimes (z5l--z0l);
4665 (tim11,tim12)=p1 intersectiontimes (z0r--z6r);
4666 (tim13,tim14)=p1 intersectiontimes (z5r--z0r);
4667 (tim15,tim16)=p1 intersectiontimes (z0l--z6l);
4668 (tim17,tim18)=p1 intersectiontimes (z5l--z0l);
4669 filldraw subpath (0,rundy(p0,tim1).zpet) of p0
4670 ..subpath(rundy((z6l--z5l),tim2),infinity) of (z5l--z6l)
4671 ..subpath(0,rundy(z6r--z5r,tim4).zpet) of (z6r--z5r)
4672 ..subpath(rundy(p0,tim3),rundy(p0,tim5).zpet) of p0
4673 ..subpath(rundy(z0r--z5r,tim6),infinity) of (z0r--z5r)
4674 ..subpath(0,rundy(z5l--z0l,tim8).zpet) of (z5l--z0l)
4675 ..subpath(rundy(p0,tim7),infinity) of p0--cycle;
4676 infill subpath(0,rundy(z0r--z6r,tim12).zpet) of (z0r--z6r)
4677 ..subpath(rundy(p1,tim11).zpet,rundy(p1,tim13)) of p1
4678 ..subpath(rundy(z5r--z0r,tim14),infinity) of (z5r--z0r)--cycle;
4679 infill subpath (0, rundy(p1,tim17).zpet) of p1
4680 ..subpath(rundy(z5l--z0l,tim18),infinity) of (z5l--z0l)
4681 ..subpath(0,rundy(z0l--z6l,tim16).zpet) of (z0l--z6l)
4682 ..subpath(rundy(p1,tim15),infinity) of p1--cycle;
4683 penlabels(0,1,2,3,4,5,6);
4684 );
4685
4686 iff known chars.greek_phi:
4687 bskchar "The Greek letter phi";
4688 beginchar(chars.greek_phi,12u#,asc_height#,desc_depth#); uni "0x03C6";
4689 italcorr .5x_height#*slant;
4690 adjust_fit(0,0);
4691 pickup tiny.nib;
4692 usechar;
4693 math_fit(mft-.5u#,ic#-.5u#);
4694 endchar;
4695
4696 iff known chars.greek_phi_SS:
4697 bskchar "The sans-serif Greek letter phi";
4698 beginchar(chars.greek_phi_SS,12u#,asc_height#,desc_depth#); uni "non";
4699 italcorr .5x_height#*slant;
4700 adjust_fit(0,0);
4701 pickup tiny.nib;
4702 usechar;
4703 endchar;
4704
4705 iff known chars.greek_phi_BB:
4706 bskchar "The blackboard-bold Greek letter phi";
4707 beginchar(chars.greek_phi_BB,12u#,asc_height#,desc_depth#); uni "non";
4708 italcorr .5x_height#*slant;
4709 adjust_fit(0,0);
4710 pickup tiny.nib;
4711 numeric tim[]; path p[];
4712 oblu:=2oblu;
4713 pos1(.9cap_stem,0); pos2(hair,90); pos3(.9cap_stem,180); pos4(hair,270);
4714 lft x1l=u; rt x3l=w-u; y1=y3=.5x_height; .5[x2,x4]=.5[x1,x3]; x2=x4;
4715 bot y2l=-o; top y4l=x_height+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
4716 y5=h; y6=-d; x5=x6=.5w; pos5(hair, 0); pos6(hair,0);
4717 z0r=.5[z5r,z6r]; z0l=.5[z5l,z6l];
4718 p0:=z1l{down}..z2l..z3l..z4l..{down}z1l;
4719 p1:=z1r{up}..z4r..z3r..z2r..{up}z1r;
4720 bskpoints(5,6,hair,hair);
4721 (tim1,tim2)=p0 intersectiontimes (z5l--z6l);
4722 (tim3,tim4)=p0 intersectiontimes (z6r--z5r);
4723 (tim5,tim6)=p0 intersectiontimes (z0r--z5r);
4724 (tim7,tim8)=p0 intersectiontimes (z5l--z0l);
4725 (tim11,tim12)=p1 intersectiontimes (z0r--z6r);
4726 (tim13,tim14)=p1 intersectiontimes (z5r--z0r);
4727 (tim15,tim16)=p1 intersectiontimes (z0l--z6l);
4728 (tim17,tim18)=p1 intersectiontimes (z5l--z0l);
4729 filldraw subpath (0,rundy(p0,tim1).zpet) of p0
4730 ..subpath(rundy((z6l--z5l),tim2),infinity) of (z5l--z6l)
4731 ..subpath(0,rundy(z6r--z5r,tim4).zpet) of (z6r--z5r)
4732 ..subpath(rundy(p0,tim3),rundy(p0,tim5).zpet) of p0
4733 ..subpath(rundy(z0r--z5r,tim6),infinity) of (z0r--z5r)
4734 ..subpath(0,rundy(z5l--z0l,tim8).zpet) of (z5l--z0l)
4735 ..subpath(rundy(p0,tim7),infinity) of p0--cycle;
4736 infill subpath(0,rundy(z0r--z6r,tim12).zpet) of (z0r--z6r)
4737 ..subpath(rundy(p1,tim11).zpet,rundy(p1,tim13)) of p1
4738 ..subpath(rundy(z5r--z0r,tim14),infinity) of (z5r--z0r)--cycle;
4739 infill subpath (0, rundy(p1,tim17).zpet) of p1
4740 ..subpath(rundy(z5l--z0l,tim18),infinity) of (z5l--z0l)
4741 ..subpath(0,rundy(z0l--z6l,tim16).zpet) of (z0l--z6l)
4742 ..subpath(rundy(p1,tim15),infinity) of p1--cycle;
4743 p100:=z4r..z1r{down}..z2r..z3r..cycle;
4744 p101:=reverse z4l..z1l{down}..z2l..{up}z3l..cycle;
4745 oblu:=1.25bbw;
4746 z100=bsktouch(subpath(0,1) of p100,up,p101,down);
4747 z101=bsktouch(subpath(1,2) of p100,down,p101,up);
4748 z102=bsktouch(subpath(3,4) of p100,up,p101,down);
4749 z103=bsktouch(subpath(2,3) of p100,down,p101,up);
4750 tim100=xpart(p100 intersectiontimes (z100--(x100,y1)));
4751 tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5)));
4752 tim102=xpart(p100 intersectiontimes (z101--(x101,y1)));
4753 tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5)));
4754 tim104=xpart(p100 intersectiontimes (z102--(x102,y1)));
4755 tim105=xpart(p101 intersectiontimes (z102--(x102,y4l+5)));
4756 tim106=xpart(p100 intersectiontimes (z103--(x103,y1)));
4757 tim107=xpart(p101 intersectiontimes (z103--(x103,y2l-5)));
4758 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
4759 ..subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle;
4760 infill subpath(rundy(p100,tim104).zpet,rundy(p100,tim106)) of p100
4761 ..subpath(rundy(p101,tim107),rundy(p101,tim105).zpet) of p101..cycle;
4762 penlabels(0,1,2,3,4,5,6); labels(100,101,102,103);
4763 endchar;
4764
4765 iff known chars.greek_phi_curved:
4766 bskchar "The Greek letter phi (curved version)";
4767 beginchar(chars.greek_phi_curved,12u#,asc_height#,desc_depth#); uni "non";
4768 italcorr .5x_height#*slant;
4769 adjust_fit(0,0);
4770 pickup tiny.nib;
4771 numeric tim[]; path p[];
4772 oblu:=2oblu;
4773 pos1(.5[stem,curve],0); pos2(hair,90); pos3(.5[stem,curve],180); pos4(hair,270);
4774 lft x1l=u; rt x3l=w-u; y1=y3=.5x_height; .5[x2,x4]=.5[x1,x3]; x2=x4;
4775 bot y2l=-o; top y4l=x_height+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
4776 y5=h; y6=-d+curve; x5=x6=.5w; pos5(hair, 0); pos6(hair,0);
4777 pos7(curve,0); y7=-d; x7r=x6l-o;
4778 z0r=.5[z5r,z6r]; z0l=.5[z5l,z6l];
4779 p0:=z1l{down}..z2l..z3l..z4l..{down}z1l;
4780 p1:=z1r{up}..z4r..z3r..z2r..{up}z1r;
4781 bskpoints(5,6,hair,hair);
4782 (tim1,tim2)=p0 intersectiontimes (z5l--z6l);
4783 (tim3,tim4)=p0 intersectiontimes (z6r--z5r);
4784 (tim5,tim6)=p0 intersectiontimes (z0r--z5r);
4785 (tim7,tim8)=p0 intersectiontimes (z5l--z0l);
4786 (tim11,tim12)=p1 intersectiontimes (z0r--z6r);
4787 (tim13,tim14)=p1 intersectiontimes (z5r--z0r);
4788 (tim15,tim16)=p1 intersectiontimes (z0l--z6l);
4789 (tim17,tim18)=p1 intersectiontimes (z5l--z0l);
4790 filldraw subpath (0,rundy(p0,tim1).zpet) of p0
4791 ..subpath(rundy((z6l--z5l),tim2),infinity) of (z5l--z6l)
4792 ..z7l&z7l..z7r
4793 ..subpath(0,rundy(z6r--z5r,tim4).zpet) of (z6r--z5r)
4794 ..subpath(rundy(p0,tim3),rundy(p0,tim5).zpet) of p0
4795 ..subpath(rundy(z0r--z5r,tim6),infinity) of (z0r--z5r)
4796 ..subpath(0,rundy(z5l--z0l,tim8).zpet) of (z5l--z0l)
4797 ..subpath(rundy(p0,tim7),infinity) of p0--cycle;
4798 infill subpath(0,rundy(z0r--z6r,tim12).zpet) of (z0r--z6r)
4799 ..subpath(rundy(p1,tim11).zpet,rundy(p1,tim13)) of p1
4800 ..subpath(rundy(z5r--z0r,tim14),infinity) of (z5r--z0r)--cycle;
4801 infill subpath (0, rundy(p1,tim17).zpet) of p1
4802 ..subpath(rundy(z5l--z0l,tim18),infinity) of (z5l--z0l)
4803 ..subpath(0,rundy(z0l--z6l,tim16).zpet) of (z0l--z6l)
4804 ..subpath(rundy(p1,tim15),infinity) of p1--cycle;
4805 penlabels(0,1,2,3,4,5,6,7);
4806 math_fit(mft-.5u#,ic#-.5u#);
4807 endchar;
4808
4809 charscription(12u,x_height,desc_depth)(
4810 numeric tim[]; path p[]; oblu:=2hair;
4811 pos2(hair,-45); pos3(.5[hair,stem],0); pos4(stem,0); pos5(hair,90);
4812 pos6(stem,180); pos7(hair,-90); pos8(hair,0); pos9(hair,0);
4813 top y2l=x_height; bot y5l=-o; x5=.5[x3,x6];
4814 lft x3l=u; y3=bar_height;
4815 z2=z3+whatever*dir60;
4816 rt x6l=w-u; y6=bar_height;
4817 top y7l=h+o; .5[x8,x6]=x7;
4818 y8=.5bar_height; y9=-d; x8=x9=.5[x3,x7];
4819 p0=z2r..z3r..z5r..{up}z6r..z7r..z8r---z9r;
4820 p1=z9l---z8l..z7l..{down}z6l..z5l..z3l..z2l;
4821 (tim0,tim1)=p0 intersectiontimes subpath(0,3) of p1;
4822 (tim2-3,tim3)=subpath (3,infinity) of p1 intersectiontimes p0;
4823 (tim4,tim5-4)= subpath(0,3) of p1 intersectiontimes subpath(4,infinity) of p1;
4824 (tim6,tim7-5)=subpath(0,4) of p0 intersectiontimes subpath(5,infinity) of p0;
4825 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
4826 ..subpath(rundy(p1,tim1),rundy(p1,tim2).zpet) of p1
4827 ..subpath(rundy(p0,tim3),infinity) of p0
4828 ..subpath(0,rundy(p1,tim4).zpet) of p1
4829 ..subpath(rundy(p1,tim5),infinity) of p1..cycle;
4830 infill subpath(rundy(p0,tim6),rundy(p0,tim7).zpet) of p0..cycle;
4831 penlabels(2,3,4,5,6,7,8,9); labels(7',7'');
4832 );
4833
4834 iff known chars.greek_varphi:
4835 bskchar "The Greek letter phi---alternative";
4836 beginchar(chars.greek_varphi,12u#,x_height#,desc_depth#); uni "0x03D5";
4837 italcorr bar_height#*slant;
4838 adjust_fit(serif_fit#,0);
4839 pickup tiny.nib;
4840 usechar;
4841 math_fit(mft-.5u#,0);
4842 endchar;
4843
4844 iff known chars.greek_varphi_SS:
4845 bskchar "The sans-serif Greek letter phi---alternative";
4846 beginchar(chars.greek_varphi_SS,12u#,x_height#,desc_depth#); uni "non";
4847 italcorr bar_height#*slant;
4848 adjust_fit(0,0);
4849 pickup tiny.nib;
4850 usechar;
4851 endchar;
4852
4853 iff known chars.greek_varphi_BB:
4854 bskchar "The blackboard-bold Greek letter phi---alternative";
4855 beginchar(chars.greek_varphi_BB,12.5u#,x_height#,desc_depth#); uni "non";
4856 italcorr bar_height#*slant;
4857 adjust_fit(serif_fit#,0);
4858 pickup tiny.nib;
4859 numeric tim[]; path p[]; oblu:=2hair;
4860 pos2(hair,-45); pos3(.75[hair,cap_stem],0); pos4(stem,0); pos5(hair,90);
4861 pos6(cap_stem,180); pos7(hair,-90); pos8(hair,0); pos9(hair,0);
4862 top y2l=x_height; bot y5l=-o; x5=.5[x3,x6];
4863 lft x3l=u; y3=bar_height;
4864 z2=z3+whatever*dir60;
4865 rt x6l=w-u; y6=bar_height;
4866 top y7l=h+o; .5[x8,x6]=x7;
4867 y8=.5bar_height; y9=-d; x8=x9=.5[x3,x7];
4868 p0=z2r..z3r..z5r..{up}z6r..z7r..z8r---z9r;
4869 p1=z9l---z8l..z7l..{down}z6l..z5l..z3l..z2l;
4870 (tim0,tim1)=p0 intersectiontimes subpath(0,3) of p1;
4871 (tim2-3,tim3)=subpath (3,infinity) of p1 intersectiontimes p0;
4872 (tim4,tim5-4)= subpath(0,3) of p1 intersectiontimes subpath(4,infinity) of p1;
4873 (tim6,tim7-5)=subpath(0,4) of p0 intersectiontimes subpath(5,infinity) of p0;
4874 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
4875 ..subpath(rundy(p1,tim1),rundy(p1,tim2).zpet) of p1
4876 ..subpath(rundy(p0,tim3),infinity) of p0
4877 ..subpath(0,rundy(p1,tim4).zpet) of p1
4878 ..subpath(rundy(p1,tim5),infinity) of p1..cycle;
4879 infill subpath(rundy(p0,tim6),rundy(p0,tim7).zpet) of p0..cycle;
4880 p100:=subpath(0,2) of p0;
4881 p101:=reverse subpath(4,infinity) of p1;
4882 p102:=subpath(2,4) of p0;
4883 p103:=reverse subpath(2,4) of p1;
4884 oblu:=1.25bbw;
4885 z100=bsktouch(p100,down,p101,up);
4886 z101=bsktouch(p100,up,p101,down);
4887 z102=bsktouch(p102,up,p103,down);
4888 z103=bsktouch(p102,down,p103,up);
4889 tim100=xpart(p100 intersectiontimes (z100--(x100,y8)));
4890 tim101=xpart(p101 intersectiontimes (z100--(x100,y9)));
4891 tim102=xpart(p100 intersectiontimes (z101--(x101,y3)));
4892 tim103=xpart(p101 intersectiontimes (z101--(x101,y2l+u+5)));
4893 tim104=xpart(p102 intersectiontimes (z102--(x102,y6)));
4894 tim105=xpart(p103 intersectiontimes (z102--(x102,y7l+5)));
4895 tim106=xpart(p102 intersectiontimes (z103--(x103,y6)));
4896 tim107=xpart(p103 intersectiontimes (z103--(x103,y9)));
4897 infill subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100
4898 ..subpath(rundy(p101,tim101).zpet,rundy(p101,tim103)) of p101..cycle;
4899 infill subpath(rundy(p102,tim104).zpet,rundy(p102,tim106)) of p102
4900 ..subpath(rundy(p103,tim107),rundy(p103,tim105).zpet) of p103..cycle;
4901 penlabels(2,3,4,5,6,7,8,9); labels(7',7'',100,101,102,103);
4902 endchar;
4903
4904 iff known chars.greek_varphi_curved:
4905 bskchar "The Greek letter phi---alternative (curved version)";
4906 beginchar(chars.greek_varphi_curved,12u#,x_height#,desc_depth#); uni "non";
4907 italcorr bar_height#*slant;
4908 adjust_fit(serif_fit#,0);
4909 pickup tiny.nib;
4910 numeric tim[]; path p[]; oblu:=2hair;
4911 pos1(vair,180); pos2(hair,90); pos3(stem,0); pos4(stem,0); pos5(hair,90);
4912 pos6(stem,180); pos7(hair,-90);
4913 pos8(hair,0); pos9(hair,0); pos10(curve,0);
4914 top y2r=x_height; bot y5l=-o; x5=.5[x4l,x6];
4915 x3=x4l; lft x1l=.5u; x3l-x1r=max(curve,1.5u);
4916 y2l-y1=1.5(x3-x1); y3=.35[y1,y2];
4917 z2=z1+whatever*dir60;
4918 y4-y5=y2-y3; rt x6l=w-u; y6=bar_height;
4919 top y7l=h+o;
4920 .5[x8,x6]=x7;
4921 y8=.5bar_height; y9=-d+curve; x8=x9=.5[x3,x7]; y10=-d; x10r=x9l-o;
4922 p0=z1r{up}..z2r..z3r..z4r..z5r..{up}z6r..z7r..z8r---z9r..z10r..z10l;
4923 p1=z10l..z9l---z8l..z7l..{down}z6l..z5l..z4l..z3l..z2l..{down}z1l;
4924 (tim0,tim1)=p0 intersectiontimes subpath(0,3) of p1;
4925 (tim2-3,tim3)=subpath (3,infinity) of p1 intersectiontimes p0;
4926 (tim4,tim5-4)= subpath(0,3) of p1 intersectiontimes subpath(4,infinity) of p1;
4927 (tim6,tim7-6)=subpath(0,5) of p0 intersectiontimes subpath(6,infinity) of p0;
4928 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
4929 ..subpath(rundy(p1,tim1),rundy(p1,tim2).zpet) of p1
4930 ..subpath(rundy(p0,tim3),infinity) of p0
4931 ..subpath(0,rundy(p1,tim4).zpet) of p1
4932 ..subpath(rundy(p1,tim5),infinity) of p1..cycle;
4933 infill subpath(rundy(p0,tim6),rundy(p0,tim7).zpet) of p0..cycle;
4934 penlabels(1,2,3,4,5,6,7,8,9,10); labels(7',7'');
4935 math_fit(mft-.5u#,0);
4936 endchar;
4937
4938 iff known chars.greek_chi:
4939 bskchar "The Greek letter chi";
4940 beginchar(chars.greek_chi,12u#,x_height#,desc_depth#); uni "0x03C7";
4941 italcorr x_height#*slant;
4942 adjust_fit(0,0);
4943 pickup tiny.nib;
4944 numeric tim[]; path p[]; oblu:=2oblu;
4945 pos0(stem,150); pos1(hair,90); pos4(hair,90); pos5(stem,150);
4946 pos6(hair,0); pos7(hair,0); pos8(curve,0); pos9(curve,0);
4947 top y1r=h+o; bot y4l=-d;
4948 .5[x1,x4-u]=.5[x2,x3-u]=.5w;
4949 x1=2u; x3-x2=1/4w+.5u; y2=bar_height; -d+h-y2=y3;
4950 pos2(stem,angle(z2-z3)-90); pos3(stem,angle(z2-z3)-90);
4951 lft x0r=u; y0=y1-stem; z0'=(x0r,y0l);
4952 rt x5l=w; y5=y4+stem; z5'=(x5l,y5r);
4953 top y6=h-curve; bot y7=-d+curve; rt x6r=w-2.5u-o; x7l=w-x6r;
4954 y8=-d; z8r=whatever[z7l,z6l]+o*left; y9=h; z9l=whatever[z6l,z7l]+o*right;
4955 p0=z0r{up}..z1r{right}..z2r---z3r..{right}z4r..z5r;
4956 p1=z5r..z5'..z5l..z4l{left}..z3l---z2l..{left}z1l..z0l;
4957 p2=z6l---z7l..z8l&z8l..z8r..z7r---z6r..z9r&z9r..z9l..cycle;
4958 (tim0,tim1)=p0 intersectiontimes p2;
4959 (tim2,tim3-4)=p0 intersectiontimes subpath(4,length p2) of p2;
4960 (tim4,tim5-4)=p1 intersectiontimes subpath(4,length p2) of p2;
4961 (tim6,tim7)=p1 intersectiontimes subpath(0,1) of p2;
4962 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
4963 ..reverse subpath(0,rundy(p2,tim1).zpet) of p2
4964 ..reverse subpath(rundy(p2,tim3),length p2) of p2
4965 ..subpath(rundy(p0,tim2),infinity) of p0
4966 ..subpath(0,rundy(p1,tim4).zpet) of p1
4967 ..reverse subpath(rundy(p2,tim7),rundy(p2,tim5).zpet) of p2
4968 ..subpath(rundy(p1,tim6),infinity) of p1
4969 ..z0l..z0'..cycle;
4970 penlabels(0,1,2,3,4,5,6,7,8,9); labels(0',5');
4971 endchar;
4972
4973 iff known chars.greek_chi_BB:
4974 bskchar "The blackboard-bold Greek letter chi";
4975 beginchar(chars.greek_chi_BB,12u#,x_height#,desc_depth#); uni "non";
4976 italcorr x_height#*slant;
4977 adjust_fit(0,0);
4978 pickup tiny.nib;
4979 numeric tim[]; path p[]; oblu:=2oblu;
4980 pos0(stem,150); pos1(hair,90); pos4(hair,90); pos5(stem,150);
4981 pos6(hair,0); pos7(hair,0); pos8(curve,0); pos9(curve,0);
4982 top y1r=h+o; bot y4l=-d;
4983 .5[x1,x4-u]=.5[x2,x3-u]=.5w;
4984 x1=2u; x3-x2=1/4w+.5u; y2=bar_height; -d+h-y2=y3;
4985 pos2(.8cap_stem,angle(z2-z3)-90); pos3(.8cap_stem,angle(z2-z3)-90);
4986 lft x0r=u; y0=y1-stem; z0'=(x0r,y0l);
4987 rt x5l=w; y5=y4+stem; z5'=(x5l,y5r);
4988 top y6=h-curve; bot y7=-d+curve; rt x6r=w-2.5u-o; x7l=w-x6r;
4989 y8=-d; z8r=whatever[z7l,z6l]+o*left; y9=h; z9l=whatever[z6l,z7l]+o*right;
4990 p0=z0r{up}..z1r{right}..z2r---z3r..{right}z4r..z5r;
4991 p1=z5r..z5'..z5l..z4l{left}..z3l---z2l..{left}z1l..z0l;
4992 p2=z6l---z7l..z8l&z8l..z8r..z7r---z6r..z9r&z9r..z9l..cycle;
4993 (tim0,tim1)=p0 intersectiontimes p2;
4994 (tim2,tim3-4)=p0 intersectiontimes subpath(4,length p2) of p2;
4995 (tim4,tim5-4)=p1 intersectiontimes subpath(4,length p2) of p2;
4996 (tim6,tim7)=p1 intersectiontimes subpath(0,1) of p2;
4997 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
4998 ..reverse subpath(0,rundy(p2,tim1).zpet) of p2
4999 ..reverse subpath(rundy(p2,tim3),length p2) of p2
5000 ..subpath(rundy(p0,tim2),infinity) of p0
5001 ..subpath(0,rundy(p1,tim4).zpet) of p1
5002 ..reverse subpath(rundy(p2,tim7),rundy(p2,tim5).zpet) of p2
5003 ..subpath(rundy(p1,tim6),infinity) of p1
5004 ..z0l..z0'..cycle;
5005 p100=reverse subpath(1,4) of p0;
5006 p101=reverse subpath(3,6) of p1;
5007 z100=bsktouch(subpath(0,2) of p100,down,p101,up);
5008 z101=bsktouch(p100,down,subpath(0,2) of p101,up);
5009 tim100=xpart(p100 intersectiontimes (z100--(x100,y3)));
5010 tim101=xpart(p101 intersectiontimes (z100--(x100,y4l-5)));
5011 tim102=xpart(p100 intersectiontimes (z101--(x101,y1r+5)));
5012 tim103=xpart(p101 intersectiontimes (z101--(x101,y2)));
5013 oblu:=bbw;
5014 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
5015 ..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle;
5016 penlabels(0,1,2,3,4,5,6,7,8,9); labels(0',5',100,101);
5017 endchar;
5018
5019 iff known chars.greek_chi_SS:
5020 bskchar "The sans-serif Greek letter chi";
5021 beginchar(chars.greek_chi_SS,12u#,x_height#,desc_depth#); uni "non";
5022 italcorr x_height#*slant;
5023 adjust_fit(-.5u#,0);
5024 pickup tiny.nib;
5025 numeric tim[]; path p[]; oblu:=2oblu;
5026 pos0(stem,150); pos1(hair,90); pos4(hair,90); pos5(stem,150);
5027 pos6(hair,0); pos7(hair,0); pos8(hair,0); pos9(hair,0);
5028 top y1r=h+o; bot y4l=-d;
5029 .5[x1,x4-u]=.5[x2,x3-u]=.5w;
5030 x1=2u; x3-x2=1/4w+.5u; y2=bar_height; -d+h-y2=y3;
5031 pos2(stem,angle(z2-z3)-90); pos3(stem,angle(z2-z3)-90);
5032 lft x0r=u; y0=y1-stem; z0'=(x0r,y0l);
5033 rt x5l=w; y5=y4+stem; z5'=(x5l,y5r);
5034 top y6=h-curve; bot y7=-d+curve; rt x6r=w-2.5u-o; x7l=w-x6r;
5035 y8=-d; z8r=whatever[z7l,z6l]; y9=h; z9l=whatever[z6l,z7l]+o*right;
5036 p0=z1r{right}..z2r---z3r..{right}z4r;
5037 p1=z4l{left}..z3l---z2l..{left}z1l;
5038 p2=z6l---z7l..z8l&z8l..z8r..z7r---z6r..z9r&z9r..z9l..cycle;
5039 (tim0,tim1)=p0 intersectiontimes p2;
5040 (tim2,tim3-4)=p0 intersectiontimes subpath(4,length p2) of p2;
5041 (tim4,tim5-4)=p1 intersectiontimes subpath(4,length p2) of p2;
5042 (tim6,tim7)=p1 intersectiontimes subpath(0,1) of p2;
5043 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
5044 ..reverse subpath(0,rundy(p2,tim1).zpet) of p2
5045 ..reverse subpath(rundy(p2,tim3),length p2) of p2
5046 ..subpath(rundy(p0,tim2),infinity) of p0
5047 ..subpath(0,rundy(p1,tim4).zpet) of p1
5048 ..reverse subpath(rundy(p2,tim7),rundy(p2,tim5).zpet) of p2
5049 ..subpath(rundy(p1,tim6),infinity) of p1
5050 ..cycle;
5051 penlabels(0,1,2,3,4,5,6,7,8,9); labels(0',5');
5052 endchar;
5053
5054 iff known chars.greek_psi:
5055 bskchar "The Greek letter psi";
5056 beginchar(chars.greek_psi,12u#,asc_height#,desc_depth#); uni "0x03C8";
5057 italcorr bar_height#*slant;
5058 adjust_fit(serif_fit#,0);
5059 pickup tiny.nib;
5060 numeric tim[]; path p[]; oblu:=2oblu;
5061 pos1(vair,180); pos2(hair,90); pos3(stem,0); pos4(stem,0); pos5(hair,90);
5062 pos6(hair,180); pos7(curve,180);
5063 pos8(hair,0); pos9(hair,0); pos10(curve,0);
5064 top y2r=x_height; bot y5l=-o; x5=.5[x4l,x6];
5065 x3=x4l; lft x1l=.5u; x3l-x1r=max(1.5curve,2u);
5066 y2l-y1=1.5(x3-x1); y3=.35[y1,y2];
5067 z2=z1+whatever*dir60;
5068 y4-y5=y2-y3; rt x6l=w-u; y6=bar_height;
5069 top y7''=x_height+o;
5070 x7-x6=.45(y6-y7);
5071 z7'=z7+.2curve*down+o*left; z7''=z7+.5(curve-currentbreadth)*dir135;
5072 y8=h; y9=-d; x8=x9=.5[x3r,x7l];
5073 p0=z1r{up}..z2r..z3r..z4r..z5r..{up}z6r..z7'..{up}z7r;
5074 p1=z7r{up}..z7l..{down}z6l..z5l..z4l..z3l..z2l..{down}z1l;
5075 p2=z9l--z8l;
5076 p3=z8r--z9r;
5077 (tim0,tim1)=p0 intersectiontimes p2;
5078 (tim2,tim3)=p0 intersectiontimes p3;
5079 (tim4,tim5)=p1 intersectiontimes p3;
5080 (tim6,tim7)=p1 intersectiontimes p2;
5081 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
5082 ..subpath(rundy(p2,tim1),infinity) of p2
5083 ..subpath(0,rundy(p3,tim3).zpet) of p3
5084 ..subpath(rundy(p0,tim2),infinity) of p0
5085 &subpath(0,rundy(p1,tim4).zpet) of p1
5086 ..subpath(rundy(p3,tim5),infinity) of p3
5087 ..subpath(0,rundy(p2,tim7).zpet) of p2
5088 ..subpath(rundy(p1,tim6),infinity) of p1..cycle;
5089 penlabels(1,2,3,4,5,6,7,8,9); labels(7',7'');
5090 math_fit(mft-.5u#,ic#-.5u#);
5091 endchar;
5092
5093 iff known chars.greek_psi_BB:
5094 bskchar "The blackboard-bold Greek letter psi";
5095 beginchar(chars.greek_psi_BB,12u#,asc_height#,desc_depth#); uni "non";
5096 italcorr bar_height#*slant;
5097 adjust_fit(serif_fit#,0);
5098 pickup tiny.nib;
5099 numeric tim[]; path p[]; oblu:=2oblu;
5100 pos1(vair,180); pos2(hair,90); pos3(.8cap_stem,0); pos4(cap_stem,0); pos5(hair,90);
5101 pos6(hair,180); pos7(curve,180);
5102 pos8(hair,0); pos9(hair,0); pos10(curve,0);
5103 top y2r=x_height; bot y5l=-o; x5=.5[x4l,x6];
5104 x3=x4; lft x1l=.5u; x3l-x1r=max(1.5curve,2u);
5105 y2l-y1=1.5(x3-x1); y3=.35[y1,y2];
5106 z2=z1+whatever*dir60;
5107 y4-y5=y2-y3; rt x6l=w-u; y6=bar_height;
5108 top y7''=x_height+o;
5109 x7-x6=.45(y6-y7);
5110 z7'=z7+.2curve*down+o*left; z7''=z7+.5(curve-currentbreadth)*dir135;
5111 y8=h; y9=-d; x8=x9=.5[x3r,x7l];
5112 p0=z1r{up}..z2r..z3r..z4r..{right}z5r..{up}z6r..z7'..{up}z7r;
5113 p1=z7r{up}..z7l..{down}z6l..{left}z5l..z4l..z3l..z2l..{down}z1l;
5114 p2=z9l--z8l;
5115 p3=z8r--z9r;
5116 (tim0,tim1)=p0 intersectiontimes p2;
5117 (tim2,tim3)=p0 intersectiontimes p3;
5118 (tim4,tim5)=p1 intersectiontimes p3;
5119 (tim6,tim7)=p1 intersectiontimes p2;
5120 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
5121 ..subpath(rundy(p2,tim1),infinity) of p2
5122 ..subpath(0,rundy(p3,tim3).zpet) of p3
5123 ..subpath(rundy(p0,tim2),infinity) of p0
5124 &subpath(0,rundy(p1,tim4).zpet) of p1
5125 ..subpath(rundy(p3,tim5),infinity) of p3
5126 ..subpath(0,rundy(p2,tim7).zpet) of p2
5127 ..subpath(rundy(p1,tim6),infinity) of p1..cycle;
5128 p100:=subpath(1,4) of p0;
5129 p101:=subpath(3,6) of p1;
5130 oblu:=1.25bbw;
5131 z100=bsktouch(subpath(0,1) of p100,down,p101,up);
5132 z101=bsktouch(p100,down,subpath(0,1) of p101,up);
5133 tim100=xpart(p100 intersectiontimes (z100--(x100,y8)));
5134 tim101=xpart(p101 intersectiontimes (z100--z1));
5135 tim102=xpart(p100 intersectiontimes (z101--(x101,y3)));
5136 tim103=xpart(p101 intersectiontimes (z101--(x101,y9)));
5137 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
5138 ..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle;
5139 penlabels(1,2,3,4,5,6,7,8,9); labels(7',7'',100,101);
5140 endchar;
5141
5142 iff known chars.greek_psi_SS:
5143 bskchar "The sans-serif Greek letter psi";
5144 beginchar(chars.greek_psi_SS,12u#,asc_height#,desc_depth#); uni "non";
5145 italcorr bar_height#*slant;
5146 adjust_fit(-1.5u#,0);
5147 pickup tiny.nib;
5148 numeric tim[]; path p[]; oblu:=2oblu;
5149 pos1(vair,180); pos2(hair,0); pos3(stem,0); pos4(stem,0); pos5(hair,90);
5150 pos6(hair,180); pos7(curve,180);
5151 pos8(hair,0); pos9(hair,0); pos10(curve,0);
5152 top y2r=x_height; bot y5l=-o; x5=.5[x4l,x6];
5153 if boldmath:lft x4l=x3l; else: x4l=x3; fi;
5154 lft x1l=.5u; x3l-x1r=max(1.5curve,2u);
5155 y2l-y1=1.5(x3-x1); y3=.35[y1,y2];
5156 x2l=x3l;
5157 y4-y5=y2-y3; rt x6l=w-u; y6=bar_height;
5158 top y7=x_height;
5159 x7-x6=.45(y6-y7);
5160 y8=h; y9=-d; x8=x9=.5[x3r,x7l];
5161 p0=z2r---z3r..z4r..z5r..{up}z6r..z7r;
5162 p1=z7l..{down}z6l..z5l..z4l..z3l---z2l;
5163 p2=z9l--z8l;
5164 p3=z8r--z9r;
5165 (tim0,tim1)=p0 intersectiontimes p2;
5166 (tim2,tim3)=p0 intersectiontimes p3;
5167 (tim4,tim5)=p1 intersectiontimes p3;
5168 (tim6,tim7)=p1 intersectiontimes p2;
5169 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
5170 ..subpath(rundy(p2,tim1),infinity) of p2
5171 ..subpath(0,rundy(p3,tim3).zpet) of p3
5172 ..subpath(rundy(p0,tim2),infinity) of p0
5173 ..subpath(0,rundy(p1,tim4).zpet) of p1
5174 ..subpath(rundy(p3,tim5),infinity) of p3
5175 ..subpath(0,rundy(p2,tim7).zpet) of p2
5176 ..subpath(rundy(p1,tim6),infinity) of p1..cycle;
5177 penlabels(1,2,3,4,5,6,7,8,9);
5178 endchar;
5179
5180 iff known chars.greek_psi_curved:
5181 bskchar "The Greek letter psi (curved version)";
5182 beginchar(chars.greek_psi_curved,12u#,asc_height#,desc_depth#); uni "non";
5183 italcorr bar_height#*slant;
5184 adjust_fit(serif_fit#,0);
5185 pickup tiny.nib;
5186 numeric tim[]; path p[]; oblu:=2oblu;
5187 pos1(vair,180); pos2(hair,90); pos3(stem,0); pos4(stem,0); pos5(hair,90);
5188 pos6(hair,180); pos7(curve,180);
5189 pos8(hair,0); pos9(hair,0); pos10(curve,0);
5190 top y2r=x_height; bot y5l=-o; x5=.5[x4l,x6];
5191 x3=x4l; lft x1l=.5u; x3l-x1r=max(1.5curve,2u);
5192 y2l-y1=1.5(x3-x1); y3=.35[y1,y2];
5193 z2=z1+whatever*dir60;
5194 y4-y5=y2-y3; rt x6l=w-u; y6=bar_height;
5195 top y7''=x_height+o;
5196 x7-x6=.45(y6-y7);
5197 z7'=z7+.2curve*down+o*left; z7''=z7+.5(curve-currentbreadth)*dir135;
5198 y8=h; y9=-d+curve; x8=x9=.5[x3r,x7l]; y10=-d; x10r=x9l-o;
5199 p0=z1r{up}..z2r..z3r..z4r..z5r..{up}z6r..z7'..{up}z7r;
5200 p1=z7r{up}..z7l..{down}z6l..z5l..z4l..z3l..z2l..{down}z1l;
5201 p2=z10l..z9l---z8l;
5202 p3=z8r---z9r..z10r..z10l;
5203 (tim0,tim1)=p0 intersectiontimes p2;
5204 (tim2,tim3)=p0 intersectiontimes p3;
5205 (tim4,tim5)=p1 intersectiontimes p3;
5206 (tim6,tim7)=p1 intersectiontimes p2;
5207 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
5208 ..subpath(rundy(p2,tim1),infinity) of p2
5209 ..subpath(0,rundy(p3,tim3).zpet) of p3
5210 ..subpath(rundy(p0,tim2),infinity) of p0
5211 &subpath(0,rundy(p1,tim4).zpet) of p1
5212 ..subpath(rundy(p3,tim5),infinity) of p3
5213 ..subpath(0,rundy(p2,tim7).zpet) of p2
5214 ..subpath(rundy(p1,tim6),infinity) of p1..cycle;
5215 penlabels(1,2,3,4,5,6,7,8,9,10); labels(7',7'');
5216 math_fit(mft-.5u#,ic#-.5u#);
5217 endchar;
5218
5219 iff known chars.greek_omega:
5220 bskchar "The Greek letter omega";
5221 beginchar(chars.greek_omega,13.5u#,x_height#,0); uni "0x03C9";
5222 italcorr .5x_height#*slant;
5223 adjust_fit(0,0);
5224 pickup tiny.nib;
5225 numeric tim[]; path p[]; oblu:=2oblu;
5226 pos1(stem,90); pos2(hair,180); pos3(stem,270);
5227 pos4(hair,90); pos4'(hair,240); pos4''(.5[hair,stem],-60);
5228 pos5(hair,270); pos6(curve,0); pos7(stem,90);
5229 top y1r=h; lft x2r=u; y2=.5h; bot y3r=-o;
5230 rt x1=x3; .5[x3,x5]=.5w; x5-x3=1/3w;
5231 1/3[x4,x3]=.45w; y4l=bar_height;
5232 bot y5r=-o; y6=y2; rt x6r=w-.5u;
5233 x7-x6=(x2-x1); top y7r=h;
5234 y4'=y4''=.6bar_height; .5[x4',x4'']=x4; x4'-x4''=.35(y3-y4);
5235 z1'=z1+.2curve*right+o*up; z1''=z1+.5(curve-currentbreadth)*dir135;
5236 z7'=z7+.2curve*right+o*down; z7''=z7+.5(curve-currentbreadth)*dir45;
5237 p0=z7'{right}..z6l..z5l..z4'l..z4l{right}..z4''l..z3l{left}..z2l..{right}z1l;
5238 p1=z1l{right}..z1'..z1r..z1''..z2r..{right}z3r..z4''r..{left}z4r..z4'r..{right}z5r..z6r..z7''..z7r;
5239 (tim0,tim1-7)=subpath(0,6) of p1 intersectiontimes subpath (7,infinity) of p1;
5240 (tim2-1,tim3)=subpath(1,infinity) of p0 intersectiontimes p1;
5241 (tim4,tim5-4)=p1 intersectiontimes subpath(4,6) of p0;
5242 (tim6,tim7-4)=subpath(0,4) of p0 intersectiontimes subpath(4,infinity) of p0;
5243 filldraw subpath(0,rundy(p1,(tim0,hair)).zpet) of p1
5244 ..subpath(rundy(p1,(tim1,hair)),infinity) of p1..z7l
5245 ..subpath(0,rundy(p0,tim2).zpet) of p0
5246 ..subpath(rundy(p1,tim3),rundy(p1,(tim4,1.2hair)).zpet) of p1
5247 ..subpath(rundy(p0,tim5),infinity) of p0..cycle;
5248 oblu:=f_obl;
5249 infill subpath(rundy(p0,tim6),rundy(p0,tim7).zpet) of p0 ..cycle;
5250 penlabels(0,1,2,3,4,4',4'',5,6,7); labels(1',1'',7',7'');
5251 math_fit(mft-.5u#,ic#);
5252 endchar;
5253
5254 iff known chars.greek_omega_BB:
5255 bskchar "The blackboard-bold Greek letter omega";
5256 beginchar(chars.greek_omega_BB,13.5u#,x_height#,0); uni "non";
5257 italcorr .5x_height#*slant;
5258 adjust_fit(0,0);
5259 pickup tiny.nib;
5260 numeric tim[]; path p[]; oblu:=2oblu;
5261 pos1(stem,90); pos2(hair,180); pos3(stem,270);
5262 pos4(hair,90); pos4'(hair,240); pos4''(.5[hair,stem],-60);
5263 pos5(hair,270); pos6(cap_stem,0); pos7(stem,90);
5264 top y1r=h; lft x2r=u; y2=.5h; bot y3r=-o;
5265 rt x1=x3; .5[x3,x5]=.5w; x5-x3=1/3w;
5266 1/3[x4,x3]=.45w; y4l=bar_height;
5267 bot y5r=-o; y6=y2; rt x6r=w-.5u;
5268 x7-x6=(x2-x1); top y7r=h;
5269 y4'=y4''=.6bar_height; .5[x4',x4'']=x4; x4'-x4''=.35(y3-y4);
5270 z1'=z1+.2curve*right+o*up; z1''=z1+if not boldmath:.5\\fi(curve-currentbreadth)*dir135;
5271 z7'=z7+if boldmath: .3 else: .2\\fi curve*right+o*down; z7''=z7+if not boldmath:.5\\fi(curve-currentbreadth)*dir45;
5272 p0=z7'{right}..z6l..z5l..z4'l..z4l{right}..z4''l..z3l{left}..z2l..{right}z1l;
5273 p1=z1l{right}..z1'..z1r..z1''..z2r..{right}z3r..z4''r..{left}z4r..z4'r..{right}z5r..z6r..z7''..z7r;
5274 (tim0,tim1-7)=subpath(0,6) of p1 intersectiontimes subpath (7,infinity) of p1;
5275 (tim2-1,tim3)=subpath(1,infinity) of p0 intersectiontimes p1;
5276 (tim4,tim5-4)=p1 intersectiontimes subpath(4,6) of p0;
5277 (tim6,tim7-4)=subpath(0,4) of p0 intersectiontimes subpath(4,infinity) of p0;
5278 filldraw subpath(0,rundy(p1,(tim0,hair)).zpet) of p1
5279 ..subpath(rundy(p1,(tim1,hair)),infinity) of p1..z7l
5280 ..subpath(0,rundy(p0,tim2).zpet) of p0
5281 ..subpath(rundy(p1,tim3),rundy(p1,(tim4,1.2hair)).zpet) of p1
5282 ..subpath(rundy(p0,tim5),infinity) of p0..cycle;
5283 oblu:=f_obl;
5284 infill subpath(rundy(p0,tim6),rundy(p0,tim7).zpet) of p0 ..cycle;
5285 p100=subpath(0,2) of p0;
5286 p101=subpath(9,11) of p1;
5287 z100=bsktouch(subpath(0,1) of p100,1.5up,p101,1.5down);
5288 z101=bsktouch(p100,down,subpath(0,1) of p101,up);
5289 tim100=xpart(p100 intersectiontimes (z100--(x100,y6)));
5290 tim101=xpart(p101 intersectiontimes (z100--(x100,y7r+5)));
5291 tim102=xpart(p100 intersectiontimes (z101--(x101,y6)));
5292 tim103=xpart(p101 intersectiontimes (z101--(x101,y5r-u-5)));
5293 oblu:=bbw;
5294 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
5295 ..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle;
5296 penlabels(0,1,2,3,4,4',4'',5,6,7); labels(1',1'',7',7'',100,101);
5297 endchar;
5298
5299 iff known chars.greek_omega_SS:
5300 bskchar "The sans-serif Greek letter omega";
5301 beginchar(chars.greek_omega_SS,13.5u#,x_height#,0); uni "non";
5302 italcorr .5x_height#*slant;
5303 adjust_fit(0,0);
5304 pickup tiny.nib;
5305 numeric tim[]; path p[]; oblu:=2oblu;
5306 pos1(stem,90); pos2(hair,180); pos3(stem,270);
5307 pos4(hair,90); pos4'(hair,240); pos4''(.5[hair,stem],-60);
5308 pos5(hair,270); pos6(curve,0); pos7(stem,90);
5309 top y1r=h; lft x2r=u; y2=.5h; bot y3r=-o;
5310 rt x1=x3; .5[x3,x5]=.5w; x5-x3=1/3w;
5311 1/3[x4,x3]=.45w; y4l=bar_height;
5312 bot y5r=-o; y6=y2; rt x6r=w-.5u;
5313 x7-x6=(x2-x1); top y7r=h;
5314 y4'=y4''=.6bar_height; .5[x4',x4'']=x4; x4'-x4''=.35(y3-y4);
5315 p0=z7l{right}..z6l..z5l..z4'l..z4l{right}..z4''l..z3l{left}..z2l..{right}z1l;
5316 p1=z1l{right}..z1r{left}..z2r..{right}z3r..z4''r..{left}z4r..z4'r..{right}z5r..z6r..z7r;
5317 (tim0,tim1-5)=subpath(0,4) of p1 intersectiontimes subpath (5,infinity) of p1;
5318 (tim2-1,tim3)=subpath(1,infinity) of p0 intersectiontimes p1;
5319 (tim4,tim5-4)=p1 intersectiontimes subpath(4,6) of p0;
5320 (tim6,tim7-4)=subpath(0,4) of p0 intersectiontimes subpath(4,infinity) of p0;
5321 filldraw subpath(0,rundy(p1,(tim0,hair)).zpet) of p1
5322 ..subpath(rundy(p1,(tim1,hair)),infinity) of p1..z7l
5323 ..subpath(0,rundy(p0,tim2).zpet) of p0
5324 ..subpath(rundy(p1,tim3),rundy(p1,(tim4,1.2hair)).zpet) of p1
5325 ..subpath(rundy(p0,tim5),infinity) of p0..cycle;
5326 oblu:=f_obl;
5327 infill subpath(rundy(p0,tim6),rundy(p0,tim7).zpet) of p0 ..cycle;
5328 penlabels(0,1,2,3,4,4',4'',5,6,7);
5329 endchar;
5330
5331 iff known chars.greek_sampi:
5332 bskchar "The Greek letter sampi";
5333 beginchar(chars.greek_sampi,12u#,x_height#,desc_depth#); uni "0x03E1";
5334 adjust_fit(0,if slant<>0: -.75u# else: 0 fi);
5335 pickup tiny.nib;
5336 path p[]; numeric tim[], theta;
5337 oblu:=2oblu;
5338 pos1(hair,90); pos3(hair,0);
5339 top y1r=h+o; bot y3=-d; lft x1=2u; rt x3r=w-u;
5340 z2=1/3[.5[z1,z3],(x3,y1)];
5341 p0:=z1..z2..z3; theta=angle(direction 1 of p0)+90; pos2(curve,theta);
5342 p1:=z1r..z2r..z3r;
5343 p2:=z3l..z2l..z1l;
5344 pos4(hair,theta-90); pos5(hair,theta-90);
5345 z4=p0 intersectionpoint ((0,bar_height)--(w,bar_height));
5346 z5=p0 intersectionpoint ((0,0)--(w,0));
5347 pos6(curve,theta-100); pos7(curve,theta-80);
5348 pos6'(.5[curve,stem],theta-90); pos7'(.5[curve,stem],theta-90);
5349 lft x6l=u; z6r=z4l+whatever*dir(theta);
5350 z7l=z5r-abs(z6r-z4l)*dir(theta);
5351 z6'l=z6l+1/3(z4l-z6l)+.5hair*dir(theta-90);
5352 z7'r=z7r+1/3(z5r-z7r)+.5hair*dir(theta+90);
5353 p3:=reverse(z4l---z6'l..z6l&z6l..z6r..z6'r---z4r);
5354 p4:=z5r---z7'r..z7r&z7r..z7l..z7'l---z5l;
5355 (tim0,tim1)=p2 intersectiontimes p4;
5356 (tim2,tim3-1)=p2 intersectiontimes subpath(1,infinity) of p4;
5357 (tim4,tim5)=p2 intersectiontimes p3;
5358 (tim6,tim7-1)=p2 intersectiontimes subpath(1,infinity) of p3;
5359 filldraw subpath(0,rundy(p2,tim0).zpet) of p2
5360 ..subpath(rundy(p4,tim1),rundy(p4,tim3).zpet) of p4
5361 ..subpath(rundy(p2,tim2),rundy(p2,tim4).zpet) of p2
5362 ..subpath(rundy(p3,tim5),rundy(p3,tim7).zpet) of p3
5363 ..subpath(rundy(p2,tim6),infinity) of p2..p1..cycle;
5364 penlabels(1,2,3,4,5,6,6',7,7');
5365 math_fit(-.5[x_height#,bar_height#]*slant+.5u#,0);
5366 endchar;
5367
5368 iff known chars.greek_sampi_BB:
5369 bskchar "The blackboard-bold Greek letter sampi";
5370 beginchar(chars.greek_sampi_BB,12u#,x_height#,desc_depth#); uni "non";
5371 adjust_fit(0,0);
5372 pickup tiny.nib;
5373 path p[]; numeric tim[], theta;
5374 oblu:=2oblu;
5375 pos1(hair,90); pos3(hair,0);
5376 top y1r=h+o; bot y3=-d; lft x1=2u; rt x3r=w-u;
5377 z2=1/3[.5[z1,z3],(x3,y1)];
5378 p0:=z1..z2..z3; theta=angle(direction 1 of p0)+90; pos2(cap_stem,theta);
5379 p1:=z1r..z2r..z3r;
5380 p2:=z3l..z2l..z1l;
5381 pos4(hair,theta-90); pos5(hair,theta-90);
5382 z4=p0 intersectionpoint ((0,bar_height)--(w,bar_height));
5383 z5=p0 intersectionpoint ((0,0)--(w,0));
5384 pos6(curve,theta-100); pos7(curve,theta-80);
5385 pos6'(.5[curve,stem],theta-90); pos7'(.5[curve,stem],theta-90);
5386 lft x6l=u; z6r=z4l+whatever*dir(theta);
5387 z7l=z5r-abs(z6r-z4l)*dir(theta);
5388 z6'l=z6l+1/3(z4l-z6l)+.5hair*dir(theta-90);
5389 z7'r=z7r+1/3(z5r-z7r)+.5hair*dir(theta+90);
5390 p3:=reverse(z4l---z6'l..z6l&z6l..z6r..z6'r---z4r);
5391 p4:=z5r---z7'r..z7r&z7r..z7l..z7'l---z5l;
5392 (tim0,tim1)=p2 intersectiontimes p4;
5393 (tim2,tim3-1)=p2 intersectiontimes subpath(1,infinity) of p4;
5394 (tim4,tim5)=p2 intersectiontimes p3;
5395 (tim6,tim7-1)=p2 intersectiontimes subpath(1,infinity) of p3;
5396 filldraw subpath(0,rundy(p2,tim0).zpet) of p2
5397 ..subpath(rundy(p4,tim1),rundy(p4,tim3).zpet) of p4
5398 ..subpath(rundy(p2,tim2),rundy(p2,tim4).zpet) of p2
5399 ..subpath(rundy(p3,tim5),rundy(p3,tim7).zpet) of p3
5400 ..subpath(rundy(p2,tim6),infinity) of p2..p1..cycle;
5401 z100=bsktouch(subpath(0,1) of p1,dir210,p2,dir30);
5402 z101=bsktouch(p1,left,subpath(0,1) of p2,right);
5403 tim100=xpart(p1 intersectiontimes (z100--(w,y100)));
5404 tim101=xpart(p2 intersectiontimes (z100--(0,y100)));
5405 tim102=xpart(p1 intersectiontimes (z101--(w,y101)));
5406 tim103=xpart(p2 intersectiontimes (z101--(0,y101)));
5407 oblu:=bbw;
5408 infill subpath(rundy(p1,tim100),rundy(p1,tim102).zpet) of p1
5409 ..subpath(rundy(p2,tim103),rundy(p2,tim101).zpet) of p2..cycle;
5410 penlabels(1,2,3,4,5,6,6',7,7'); labels(100,101);
5411 endchar;
5412
5413 iff known chars.greek_sampi_SS:
5414 bskchar "The sans-serif Greek letter sampi";
5415 beginchar(chars.greek_sampi_SS,12u#,x_height#,desc_depth#); uni "non";
5416 adjust_fit(0,0);
5417 pickup tiny.nib;
5418 path p[]; numeric tim[], theta;
5419 oblu:=2oblu;
5420 pos1(hair,90); pos3(hair,0);
5421 top y1r=h+o; bot y3=-d; lft x1=2u; rt x3r=w-u;
5422 z2=1/3[.5[z1,z3],(x3,y1)];
5423 p0:=z1..z2..z3; theta=angle(direction 1 of p0)+90; pos2(curve,theta);
5424 p1:=z1r..z2r..z3r;
5425 p2:=z3l..z2l..z1l;
5426 pos4(hair,theta-90); pos5(hair,theta-90);
5427 z4=p0 intersectionpoint ((0,bar_height)--(w,bar_height));
5428 z5=p0 intersectionpoint ((0,0)--(w,0));
5429 pos6(curve,theta-100); pos7(curve,theta-80);
5430 lft x6l=1.25u; z6r=z4r+whatever*dir(theta);
5431 z7l=z5r-abs(z6r-z4l)*dir(theta);
5432 p3:=reverse(z4l---z6l&z6l..z6r---z4r);
5433 p4:=z5r---z7r&z7r..z7l---z5l;
5434 (tim0,tim1)=p2 intersectiontimes p4;
5435 (tim2,tim3-1)=p2 intersectiontimes subpath(1,infinity) of p4;
5436 (tim4,tim5)=p2 intersectiontimes p3;
5437 (tim6,tim7-1)=p2 intersectiontimes subpath(1,infinity) of p3;
5438 filldraw subpath(0,rundy(p2,tim0).zpet) of p2
5439 ..subpath(rundy(p4,tim1),rundy(p4,tim3).zpet) of p4
5440 ..subpath(rundy(p2,tim2),rundy(p2,tim4).zpet) of p2
5441 ..subpath(rundy(p3,tim5),rundy(p3,tim7).zpet) of p3
5442 ..subpath(rundy(p2,tim6),infinity) of p2..p1..cycle;
5443 penlabels(1,2,3,4,5,6,7);
5444 endchar;
5445
5446 iff known chars.greek_varsampi:
5447 bskchar "The Archaic Greek letter sampi";
5448 beginchar(chars.greek_varsampi,12u#,asc_height#,0); uni "0x0373";
5449 italcorr asc_height#*slant;
5450 adjust_fit(0,0);
5451 pickup tiny.nib;
5452 pos1(curve,-10); pos2(.5[hair,stem],0); pos1'(.5[curve,stem],0);
5453 pos3(curve,10); pos4(.5[hair,stem],0); pos5(stem,0); pos6(stem,0);
5454 bot y1=bot y3=.5[x_height,bar_height]; top y2=top y4=h; bot y5=0;
5455 y2r:=y4l:=y6=y2-bar+tiny; y3r:=y3r+o;
5456 lft x1l=u; rt x4r=w-u; x5=x6=.5w; x2'=x2r; x4'=x4l; x3=x4r;
5457 x2l=x1r; y1'-y1=.5bar_height; z1'l=whatever[z2l,z1l]+.5hair*right;
5458 bskpoints(5,6,0,hair);
5459 filldraw z1'l..z1l&z1l..z1r..z1'r---obl(2r,1'r,6l)---obl(6l,2r,5l)---z5l..z5rr
5460 ---obl(6r,5r,4l)---z4l+oblu*left..z4l+oblu*down{down}..{dir-70}z3l
5461 ..(x3r,y1)..z3r{dir130}..{up}obl(4r,3r,2l)---obl(2l,4r,1l)---cycle;
5462 penlabels(1,1',2,3,4,5,6); labels(3ll,5rr);
5463 math_fit(-.5[x_height#,bar_height#]*slant,ic#-3u#);
5464 endchar;
5465
5466 iff known chars.greek_varsampi_BB:
5467 bskchar "The blackboard-bold Archaic Greek letter sampi";
5468 beginchar(chars.greek_varsampi_BB,12u#,asc_height#,0); uni "non";
5469 italcorr asc_height#*slant;
5470 adjust_fit(0,0);
5471 pickup tiny.nib;
5472 pos1(curve,-10); pos2(.5[hair,stem],0); pos1'(.5[curve,stem],0);
5473 pos3(curve,10); pos4(.5[hair,stem],0); pos5(.8cap_stem,0); pos6(.8cap_stem,0);
5474 bot y1=bot y3=.5[x_height,bar_height]; top y2=top y4=h; bot y5=0;
5475 y2r:=y4l:=y6=y2-bar+tiny; y3r:=y3r+o;
5476 lft x1l=u; rt x4r=w-u; x5=x6=.5w; x2'=x2r; x4'=x4l; x3=x4r;
5477 x2l=x1r; y1'-y1=.5bar_height; z1'l=whatever[z2l,z1l]+.5hair*right;
5478 bskpoints(5,6,0,hair);
5479 filldraw z1'l..z1l&z1l..z1r..z1'r---obl(2r,1'r,6l)---obl(6l,2r,5l)---z5l..z5rr
5480 ---obl(6r,5r,4l)---z4l+oblu*left..z4l+oblu*down{down}..{dir-70}z3l
5481 ..(x3r,y1)..z3r{dir130}..{up}obl(4r,3r,2l)---obl(2l,4r,1l)---cycle;
5482 penlabels(1,1',2,3,4,5,6); labels(3ll,5rr);
5483 infill ifobl(6r,6l,5r,5l,,)---ifobl(5l,5r,6l,6r,,)--cycle;
5484 endchar;
5485
5486 iff known chars.greek_varsampi_SS:
5487 bskchar "The sans-serif Archaic Greek letter sampi";
5488 beginchar(chars.greek_varsampi_SS,12u#,asc_height#,0); uni "non";
5489 italcorr asc_height#*slant;
5490 adjust_fit(0,0);
5491 pickup tiny.nib;
5492 pos1(curve,0); pos2(.5[hair,stem],0); pos1'(.5[curve,stem],0);
5493 pos3(curve,0); pos4(.5[hair,stem],0); pos5(stem,0); pos6(stem,0);
5494 bot y1=bot y3=.5[x_height,bar_height]; top y2=top y4=h; bot y5=0;
5495 y2r:=y4l:=y6=y2-bar+tiny;
5496 lft x1l=u; rt x4r=w-u; x5=x6=.5w; x2'=x2r; x4'=x4l; x3=x4;
5497 x2=x1; y1'-y1=.5bar_height; z1'l=whatever[z2l,z1l];
5498 bskpoints(5,6,0,hair);
5499 filldraw z1'l..z1l&z1l..z1r...z1'r---obl(2r,1'r,6l)---obl(6l,2r,5l)---z5l..z5rr
5500 ---obl(6r,5r,4l)---z4l+oblu*left..z4l+oblu*down{down}..{down}z3l
5501 ..z3r{up}..{up}obl(4r,3r,2l)---obl(2l,4r,1l)---cycle;
5502 penlabels(1,1',2,3,4,5,6); labels(3ll,5rr);
5503 endchar;
5504
5505 iff known chars.greek_qoppa:
5506 bskchar "The Archaic Greek letter qoppa";
5507 beginchar(chars.greek_qoppa,9u#,x_height#,2/3desc_depth#); uni "0x03D9";
5508 italcorr bar_height#*slant;
5509 adjust_fit(0,0);
5510 pickup tiny.nib;
5511 oblu:=2oblu;
5512 path p[];
5513 pos1(curve,0); pos2(hair,90); pos3(curve,180); pos4(hair,270);
5514 pos5(.75[stem,hair],0); pos6(curve,-20);
5515 pos6'(.5[stem,hair],0); pos6''(.9curve,-20);
5516 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
5517 bot y2l=-o; top y4l=h+o; z5=z2l; x6=x5r; bot y6r=-d;
5518 z6'=2/3[z6l,z5l];
5519 z6''=z6+.5stem*up;
5520 p0:=z1l{down}..z2l..{up}z3l..z4l..{down}z1l;
5521 p1:=z5l---z6'l---z6''l...z6l..z6r...z6''r---z6'r---z5r;
5522 filldraw subpath(0,rundy(p0,1).zpet) of p0
5523 ..subpath(rundy(p1,0),rundy(p1,infinity).zpet) of p1
5524 ..subpath(rundy(p0,1),infinity) of p0&cycle;
5525 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
5526 penlabels(1,2,3,4,5,6,6',6'');
5527 math_fit(mft-.5u#,ic#-.5u#);
5528 endchar;
5529
5530 iff known chars.greek_qoppa_BB:
5531 bskchar "The blackboard-bold Archaic Greek letter qoppa";
5532 beginchar(chars.greek_qoppa_BB,9u#,x_height#,2/3desc_depth#); uni "non";
5533 italcorr bar_height#*slant;
5534 adjust_fit(0,0);
5535 pickup tiny.nib;
5536 oblu:=2oblu;
5537 path p[];
5538 pos1(cap_stem,0); pos2(hair,90); pos3(cap_stem,180); pos4(hair,270);
5539 pos5(.75[stem,hair],0); pos6(curve,-20);
5540 pos6'(.5[stem,hair],0); pos6''(.9curve,-20);
5541 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
5542 bot y2l=-o; top y4l=h+o; z5=z2l; x6=x5r; bot y6r=-d;
5543 z6'=2/3[z6l,z5l];
5544 z6''=z6+.5stem*up;
5545 p0:=z1l{down}..z2l..{up}z3l..z4l..{down}z1l;
5546 p1:=z5l---z6'l---z6''l...z6l..z6r...z6''r---z6'r---z5r;
5547 filldraw subpath(0,rundy(p0,1).zpet) of p0
5548 ..subpath(rundy(p1,0),rundy(p1,infinity).zpet) of p1
5549 ..subpath(rundy(p0,1),infinity) of p0&cycle;
5550 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
5551 numeric tim[];
5552 p100:=z4r..z1r{down}..z2r..z3r..cycle;
5553 p101:=reverse z4l..z1l{down}..z2l..{up}z3l..cycle;
5554 oblu:=1.25bbw;
5555 z100=bsktouch(subpath(0,1) of p100,up,p101,down);
5556 z101=bsktouch(subpath(1,2) of p100,down,p101,up);
5557 z102=bsktouch(subpath(3,4) of p100,up,p101,down);
5558 z103=bsktouch(subpath(2,3) of p100,down,p101,up);
5559 tim100=xpart(p100 intersectiontimes (z100--(x100,y1)));
5560 tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5)));
5561 tim102=xpart(p100 intersectiontimes (z101--(x101,y1)));
5562 tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5)));
5563 tim104=xpart(p100 intersectiontimes (z102--(x102,y1)));
5564 tim105=xpart(p101 intersectiontimes (z102--(x102,y4l+5)));
5565 tim106=xpart(p100 intersectiontimes (z103--(x103,y1)));
5566 tim107=xpart(p101 intersectiontimes (z103--(x103,y2l-5)));
5567 infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100
5568 ..subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle;
5569 infill subpath(rundy(p100,tim104).zpet,rundy(p100,tim106)) of p100
5570 ..subpath(rundy(p101,tim107),rundy(p101,tim105).zpet) of p101..cycle;
5571 penlabels(1,2,3,4,5,6,6',6''); labels(100,101,102,103);
5572 endchar;
5573
5574 iff known chars.greek_qoppa_SS:
5575 bskchar "The sans-serif Archaic Greek letter qoppa";
5576 beginchar(chars.greek_qoppa_SS,9u#,x_height#,2/3desc_depth#); uni "non";
5577 italcorr bar_height#*slant;
5578 adjust_fit(0,0);
5579 pickup tiny.nib;
5580 oblu:=2oblu;
5581 path p[];
5582 pos1(curve,0); pos2(hair,90); pos3(curve,180); pos4(hair,270);
5583 pos5(.75[stem,hair],0); pos6(curve,0);
5584 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
5585 bot y2l=-o; top y4l=h+o; z5=z2l; x6=x5; bot y6=-d;
5586 p0:=z1l{down}..z2l..{up}z3l..z4l..{down}z1l;
5587 p1:=z5l---z6l..z6r---z5r;
5588 filldraw subpath(0,rundy(p0,1).zpet) of p0
5589 ..subpath(rundy(p1,0),rundy(p1,infinity).zpet) of p1
5590 ..subpath(rundy(p0,1),infinity) of p0&cycle;
5591 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
5592 penlabels(1,2,3,4,5,6);
5593 endchar;
5594
5595 iff known chars.greek_stigma:
5596 bskchar "The Greek letter stigma";
5597 beginchar(chars.greek_stigma,9u#,x_height#,.5desc_depth#); uni "0x03DB";
5598 italcorr x_height#*slant-.25u#;
5599 adjust_fit(0,0);
5600 pickup tiny.nib;
5601 pos1(stem,90); pos2(hair,180); pos0(stem,90); pos0'(hair,90);
5602 pos3(stem,270); pos3'(stem,270); pos4(hair,180); pos5(hair,100); pos6(stem,0);
5603 lft x2r=u; top y1r=h+o; y2=bar_height-.5d; x1=.5w;
5604 rt x4r=w-u; y4=-.5d; x5=.5[x3,x4]; bot y5l=-d;
5605 rt x0'=w-u; x0=w-2.5u; y0=y1; y0'r=y0r; x3=.5w; bot y3r=bot y3'r=-o;
5606 x6=x5-stem; y6=y5+.5stem; x4-x3'=.75(y3'-y4);
5607 z6'=z6+.2stem*up+o*left; z6''=z6+.5(stem-currentbreadth)*dir-45;
5608 filldraw z0r---z1r..z2r..z3r---z3'r..z4r..z5r..z6''..z6'..z6l
5609 ..z5l{right}..z4l..z3'l---z3l..z2l..z1l---z0l..{up}z0'l..z0'r---cycle;
5610 penlabels(0,0',1,2,3,3',4,5,6); labels(6',6'');
5611 math_fit(mft-.5u#,0);
5612 endchar;
5613
5614 iff known chars.greek_stigma_BB:
5615 bskchar "The blackboard-bold Greek letter stigma";
5616 beginchar(chars.greek_stigma_BB,9u#,x_height#,.5desc_depth#); uni "non";
5617 italcorr x_height#*slant-.25u#;
5618 adjust_fit(0,0);
5619 pickup tiny.nib;
5620 pos1(.8cap_stem,90); pos2(hair,180); pos0(.8cap_stem,90); pos0'(hair,90);
5621 pos3(.8cap_stem,270); pos3'(.8cap_stem,270); pos4(hair,180); pos5(hair,100); pos6(stem,0);
5622 lft x2r=u; top y1r=h+o; y2=bar_height-.5d; x1=.5w;
5623 rt x4r=w-u; y4=-.5d; x5=.5[x3,x4]; bot y5l=-d;
5624 rt x0'=w-u; x0=w-2.5u; y0=y1; y0'r=y0r; x3=.5w; bot y3r=bot y3'r=-o;
5625 x6=x5-stem; y6=y5+.5stem; x4-x3'=.75(y3'-y4);
5626 z6'=z6+.2stem*up+o*left; z6''=z6+.5(stem-currentbreadth)*dir-45;
5627 filldraw z0r---z1r..z2r..z3r---z3'r..z4r..z5r..z6''..z6'..z6l
5628 ..z5l{right}..z4l..z3'l---z3l..z2l..z1l---z0l..{up}z0'l..z0'r---cycle;
5629 penlabels(0,0',1,2,3,3',4,5,6); labels(6',6'');
5630 path p[]; numeric tim[];
5631 p100:=subpath(0,6) of (z0'r---z0r---z1r..z2r..z3r---z3'r..z4r..z5r..z6''..z6'..z6l..{right}z5l);
5632 p101:=subpath(1,infinity) of (z5l{right}..z4l..z3'l---z3l..z2l..z1l---z0l..{up}z0'l);
5633 z100=bsktouch(subpath(0,3) of p100,right,p101,left);
5634 z101=bsktouch(subpath(3,4) of p100,right,p101,left);
5635 z102=bsktouch(subpath(5,infinity) of p100,right,p101,left);
5636 tim100=xpart(p100 intersectiontimes (z100--(0,y100)));
5637 tim101=xpart(p101 intersectiontimes (z100--(w,y100)));
5638 tim102=xpart(p100 intersectiontimes (z101--(0,y101)));
5639 tim103=xpart(p101 intersectiontimes (z101--(w,y101)));
5640 tim104=xpart(p100 intersectiontimes (z102--(0,y102)));
5641 tim105=xpart(p101 intersectiontimes (z102--(w,y102)));
5642 oblu:=bbw;
5643 infill subpath(rundy(p100,0),rundy(p100,tim100).zpet) of p100
5644 ..subpath(rundy(p101,tim101),rundy(p101,infinity).zpet) of p101..cycle;
5645 infill subpath(rundy(p100,tim102),rundy(p100,tim104).zpet) of p100
5646 ..subpath(rundy(p101,tim105),rundy(p101,tim103).zpet) of p101..cycle;
5647 labels(100,101,102,103);
5648 endchar;
5649
5650 iff known chars.greek_stigma_SS:
5651 bskchar "The sans-serif Greek letter stigma";
5652 beginchar(chars.greek_stigma_SS,9u#,x_height#,.5desc_depth#); uni "non";
5653 italcorr x_height#*slant-.25u#;
5654 adjust_fit(0,0);
5655 pickup tiny.nib;
5656 pos1(stem,90); pos2(hair,180); pos0(stem,90); pos0'(hair,90);
5657 pos3(stem,270); pos3'(stem,270); pos4(hair,180); pos5(hair,100); pos6(hair,90);
5658 lft x2r=u; top y1r=h+o; y2=bar_height-.5d; x1=.5w;
5659 rt x4r=w-u; y4=-.5d; x5=.5[x3,x4]; bot y5l=-d;
5660 rt x0'=w-u; x0=w-2.5u; y0=y1; y0'r=y0r; x3=.5w; bot y3r=bot y3'r=-o;
5661 x6=x5-stem; y6=y5; x4-x3'=.75(y3'-y4);
5662 z6'=z6+.2stem*up+o*left; z6''=z6+.5(stem-currentbreadth)*dir-45;
5663 filldraw z0r---z1r..z2r..z3r---z3'r..z4r..z5r---z6r
5664 ..z6l---z5l..z4l..z3'l---z3l..z2l..z1l---z0l..{up}z0'l..z0'r---cycle;
5665 penlabels(0,0',1,2,3,3',4,5,6); labels(6',6'');
5666 endchar;
5667
5668 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% One cyrilic letter
5669 iff known chars.cyrilic_Sha:
5670 bskchar "The Cyrilic letter Sha";
5671 beginchar(chars.cyrilic_Sha,17.5u#,cap_height#,0); uni "0x0428";
5672 italcorr cap_height#*slant+.25u#;
5673 adjust_fit(cap_serif_fit#,cap_serif_fit#);
5674 pickup tiny.nib;
5675 pos1(cap_stem,0); pos2(cap_stem,0);
5676 pos3(cap_stem,0); pos4(cap_stem,0);
5677 pos5(cap_stem,0); pos6(cap_stem,0);
5678 bot y1=bot y3=0; top y2=top y4=top y6=h; y5=y1+.5[cap_hair,cap_stem]-currentbreadth;
5679 lft x1l=lft x2l=2u; rt x3r=rt x4r=w-2u; x5=x6=.5w;
5680 cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l);
5681 cap_serifs_tl(4l); cap_serifs_tr(4r); cap_serifs_br(3r);
5682 {{ numeric old_jut; old_jut:=cap_jut; save cap_jut; cap_jut:=.75old_jut;
5683 cap_serifs_tl(6l); cap_serifs_tr(6r);
5684 }};
5685 y1r:=y3l:=y5;
5686 oblu:=2oblu;
5687 filldraw z1l.b{down}..{left}z1l.c..z1l.a---z3r.a..z3r.c{left}..z3r.b---z4r.b
5688 ..{right}z4r.c..z4r.a---z4l.a..{right}z4l.c..z4l.b---obl(3l,4l,5r)
5689 ---obl(5r,3l,6r)---z6r.b..{right}z6r.c..z6r.a---z6l.a..{right}z6l.c
5690 ..z6l.b---obl(5l,6l,1r)---obl(1r,5l,2r)---z2r.b..{right}z2r.c..z2r.a
5691 ---z2l.a..{right}z2l.c..z2l.b---cycle;
5692 penlabels(1,2,3,4,5,6);
5693 endchar;
5694
5695
5696 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Next letters are named ``calligraphic'' but they are only ``decorative''
5697 numeric cal_stem, cal_hair, cal_curve;
5698 cal_curve=cap_curve+.25cap_hair; cal_stem=cap_stem+.25cap_hair; cal_hair:=.5[cap_hair,cap_stem];
5699
5700 iff known chars.cal_A:
5701 bskchar "The calligraphic letter A";
5702 beginchar(chars.cal_A,13.5u#,cap_height#,0); uni "non";
5703 italcorr cap_height#*slant+.5u#;
5704 adjust_fit(0,0);
5705 path p[]; numeric tim[];
5706 pickup tiny.nib;
5707 pos1(cal_hair,0); pos2(cal_hair,90); pos3(cal_hair,180); pos4(cal_hair,180);
5708 pos5(cal_hair,90); pos6(cal_hair,0);
5709 pos7(.65[cal_stem,cal_hair],-10); pos8(cal_stem,10); pos9(cal_hair,90);
5710 pos11(cal_hair,-10); pos12(.5[cal_stem,cal_hair],60); pos13(.5[cal_stem,cal_hair],60);
5711 rt x1l=u; y1=cal_stem; bot y2l=-d-o; .5[x1,x3]=x2=x1+cal_stem; y3=.5bar_height;
5712 y4=.5[bar_height,x_height]; z4=z3+whatever*dir75; top y5r=h+o; x5=w-u-cal_hair;
5713 rt x6r=w; y6=y5-cal_hair; y8=cal_curve; y7=y5l-cal_curve; x8r=x7r=x5-.5cal_hair;
5714 bot y9l=0; x9=.5[x8r,w];
5715 z10=(w,y8r); z11r=z5r; z12r=z4; y13=y4; x13=x7r;
5716 p1:=z1r{down}..z2r..z3r..z4r..{right}z5r..{down}z6r;
5717 p2:=z6l{up}..{left}z5l..z4l..z3l..z2l..{up}z1l;
5718 p3:=z11l---z7l..z8l..z9l..{dir100}z10;
5719 p4:=z10+left{dir-80}..z9r..z8r..z7r---z11r;
5720 p5:=z12r{right}..{dir30}z13r;
5721 p6:=z13l{dir-120}..{left}z12l;
5722 (tim1,tim2)=p2 intersectiontimes p4;
5723 (tim3,tim4)=p3 intersectiontimes p6;
5724 (tim5,tim6)=p6 intersectiontimes p2;
5725 (tim7,tim8)=p2 intersectiontimes p3;
5726 (tim9,tim10)=p2 intersectiontimes p5;
5727 (tim11,tim12)=p5 intersectiontimes p3;
5728 filldraw p1..subpath(0,rundy(p2,tim1).zpet) of p2
5729 ..reverse subpath(0,rundy(p4,tim2).zpet) of p4
5730 ..reverse subpath(rundy(p3,tim3),infinity) of p3
5731 ..subpath(rundy(p6,tim4),rundy(p6,tim5).zpet) of p6
5732 ..subpath(rundy(p2,tim6),infinity) of p2..cycle;
5733 oblu:=2oblu;
5734 infill subpath(rundy(p2,tim7),rundy(p2,tim9).zpet) of p2
5735 ..subpath(rundy(p5,tim10),rundy(p5,tim11).zpet) of p5
5736 ..reverse subpath(rundy(p3,tim8),rundy(p3,tim12).zpet) of p3..cycle;
5737 penlabels(1,2,3,4,5,6,7,8,9,11,12,13); labels(10);
5738 math_fit(-u#,u#);
5739 endchar;
5740
5741 iff known chars.cal_B:
5742 bskchar "The calligraphic letter B";
5743 beginchar(chars.cal_B,11u#,cap_height#,0); uni "non";
5744 italcorr cap_height#*slant+.5u#;
5745 adjust_fit(0,0);
5746 path p[]; numeric tim[], bpos;
5747 bpos=.5[x_height,bar_height];
5748 pickup tiny.nib;
5749 pos1(hair,-30); pos2(cal_hair,-30); pos3(cal_hair,-20); pos4(hair,150);
5750 pos5(.9cal_hair,80); pos6(.65[cal_stem,cal_hair],10); pos7(cal_stem,-10);
5751 pos8(cal_hair,-90); pos9(cal_hair,180);
5752 pos10(.65[cal_stem,cal_hair],10); pos11(cal_stem,-10);
5753 pos12(cal_hair,-90); pos13(cal_hair,180);
5754 y1=h-cap_stem-cap_hair; bot y3r=0; lft x3l=0; lft x1l=u;
5755 x2l=x3r+.5hair; y2=1/3x_height;
5756 lft x9r=x2r+cal_hair; y9=bpos+cal_stem; bot y8r=bpos-o; x8=x9+cal_stem;
5757 x4l=0; top y4=h-cap_stem; top y5r=h; .75[x5,x4]=x1;
5758 y6-y7=.5(h-bpos); .5[y6,y7]=.5[h,bpos]; x6=x7; rt x6r=w-3.5u;
5759 y10-y11=1/3bpos; .5[y10,y11]=.5bpos; x10=x11; rt x10r=w-u;
5760 lft x13r=x2r+cal_stem; y13=cal_stem; bot y12r=-d-o; x12=x13+cal_stem;
5761 p0:=z4l..z5l..z6l..z7l..z8l..{up}z9l;
5762 p1:=z9r{down}..z8r..z7r..z6r..z5r..z4r;
5763 p2:=z8r{right}..z10l..z11l..z12l..{up}z13l;
5764 p3:=z13r{down}..z12r..z11r..z10r..{left}z8l;
5765 z100=bsktouch(p3,up,p1,down);
5766 tim0=xpart(p3 intersectiontimes (z100--(x100,y11)));
5767 tim1=xpart(p1 intersectiontimes (z100--(x100,y6)));
5768 filldraw z1l{z2l-z1l}..z2l..z3l&z3l..(x3l,y3r)..z3r..z2r..{z1r-z2r}z1r..cycle;
5769 filldraw subpath(0,4) of p0..p2
5770 ..subpath(0,rundy(p3,tim0).zpet) of p3
5771 ..subpath(rundy(p1,tim1),infinity) of p1..cycle;
5772 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); labels(100);
5773 math_fit(0,.5u#);
5774 endchar;
5775
5776 iff known chars.cal_C:
5777 bskchar "The calligraphic letter C";
5778 beginchar(chars.cal_C,9u#,cap_height#,0); uni "non";
5779 italcorr cap_height#*slant+.5u#;
5780 adjust_fit(0,0);
5781 pickup tiny.nib;
5782 pos1(cal_hair,-90); pos2(cal_hair,180);
5783 pos3(.65[cal_stem,cal_hair],-10); pos4(cal_stem,10); pos5(cal_hair,90);
5784 top y1l=h+o; x1=w-u-cal_hair; rt x2l=w; y2=y1-cal_hair;
5785 x3=x4; lft x3l=u; .5[y3,y4]=.5h; y3-y4=1/3h;
5786 bot y5l=-o; x5=.5[x4r,w]; z6=(w,cal_curve+cal_stem);
5787 filldraw z2l{up}..z1l..z3l..z4l..z5l..{dir90}z6
5788 ..z6+left{dir-100}..z5r..z4r..z3r..z1r..{down}z2r..cycle;
5789 penlabels(1,2,3,4,5,6);
5790 math_fit(-u#,1.5u#);
5791 endchar;
5792
5793 iff known chars.cal_D:
5794 bskchar "The calligraphic letter D";
5795 beginchar(chars.cal_D,12u#,cap_height#,0); uni "non";
5796 italcorr x_height#*slant;
5797 adjust_fit(0,0);
5798 path p[];
5799 pickup tiny.nib;
5800 pos1(hair,-30); pos2(cal_hair,-30); pos3(cal_hair,-20); pos4(hair,150);
5801 pos5(.9cal_hair,80); pos6(.65[cal_stem,cal_hair],10); pos7(cal_stem,-10);
5802 pos8(cal_hair,-90); pos9(cal_hair,180);
5803 y1=h-cap_stem-cap_hair; bot y3r=0; lft x3l=0; lft x1l=u;
5804 x2l=x3r+.5hair; y2=1/3x_height;
5805 lft x9r=x2r+cal_stem; y9=cal_stem; bot y8r=-d-o; x8=x9+cal_stem;
5806 x4l=0; top y4=h-cap_stem; top y5r=h; .75[x5,x4]=x1;
5807 y6-y7=1/3h; .5[y6,y7]=.5h; x6=x7; rt x6r=w-u;
5808 p0:=z4l..z5l..z6l..z7l..z8l..{up}z9l;
5809 p1:=z9r{down}..z8r..z7r..z6r..z5r..z4r;
5810 filldraw z1l{z2l-z1l}..z2l..z3l&z3l..(x3l,y3r)..z3r..z2r..{z1r-z2r}z1r..cycle;
5811 filldraw p0..p1..cycle;
5812 penlabels(1,2,3,4,5,6,7,8,9);
5813 math_fit(0,0);
5814 endchar;
5815
5816 iff known chars.cal_E:
5817 bskchar "The calligraphic letter E";
5818 beginchar(chars.cal_E,13.5u#,cap_height#,0); uni "non";
5819 italcorr cap_height#*slant-.5u#;
5820 adjust_fit(0,0);
5821 pickup tiny.nib;
5822 path p[]; numeric tim[]; oblu:=cap_curve;
5823 pos1(cal_hair,-30); pos2(cal_stem,-30); pos3(cal_hair,-20);
5824 pos4(cap_hair,60); pos5(cap_hair,90); pos6(cal_hair,180);
5825 pos7(cal_hair,180); pos8(.5[cal_stem,cal_hair],90);
5826 pos10(cal_hair,0); pos11(.5[cal_hair,hair],0); pos12(cal_hair,90);
5827 pos13(cal_hair,60); pos14(cal_hair,60); pos15(cal_stem,75); pos16(cal_stem,75);
5828 y1=h; bot y3l=0; x1l-x3l=u; rt x1r=4u;
5829 top y4r=h+o; lft x4=u;
5830 x2l=x3r+.5hair; y2=1/3x_height; z5r=z1r;
5831 rt x7l=w-u; lft x6l=x7; bot y7=0; top y6=.5bar_height;
5832 bot y8l=0; x8=x2l; y7r:=y8r-currentbreadth; top y9=bot y8l; x8l-x9=2(y8r-y8l);
5833 top y10=h; rt x10r=w-1.5u; z11=z10+cap_stem*dir(-100); z12r=z1l;
5834 y10r:=bot bot y10r; y10l:=bot bot y10r;
5835 x10'-x10l=x10-x10r; y10'=y10r;
5836 y13=y14=.25[y15,y15l]=.52[y1r,y8r]; x13=x2l; x14=.5[x2r,x6l]; x15=x14+cal_hair;
5837 z16=z15+hair*right;
5838 p0:=z1l{z2l-z1l}..z2l..z3l;
5839 p1:=z4l{dir-20}..{right}z5l;
5840 p2:=z3l..(x3l,y3r)..z3r..z2r..{z1r-z2r}z1r{dir180}..{dir160}z4r;
5841 p3:=z9{dir10}..z8l{dir10}..z7l{dir-10}..{dir130}z6l;
5842 p4:=z6r{dir-40}..z7r{dir160}..{dir190}z8r..{dir190}z9;
5843 p5:=z11r---z10r..z10..z12r..z4r;
5844 p6:=z4l..z12l..z10'..z10l---z11l;
5845 p7:=z13l{dir10}..{dir-10}z14l..z15l..z16l---z16r..z15r..z14r{dir170}..{dir190}z13r;
5846 (tim0,tim1)=p0 intersectiontimes p1;
5847 (tim2,tim3)=p0 intersectiontimes p4;
5848 (tim4,tim5)=p2 intersectiontimes p4;
5849 (tim6,tim7)=p2 intersectiontimes p6;
5850 (tim8,tim9)=p2 intersectiontimes p7;
5851 (tim10,tim11-2)=p2 intersectiontimes subpath(2,infinity) of p7;
5852 filldraw subpath(rundy(p0,tim0),rundy(p0,tim2).zpet) of p0
5853 ..subpath(rundy(p4,tim3),infinity) of p4..p3
5854 ..subpath(0,rundy(p4,tim5).zpet) of p4
5855 ..subpath(rundy(p2,tim4),rundy(p2,tim8).zpet) of p2
5856 ..subpath(rundy(p7,tim9),rundy(p7,tim11).zpet) of p7
5857 ..subpath(rundy(p2,tim10),rundy(p2,tim6).zpet) of p2
5858 ..subpath(rundy(p6,tim7),infinity) of p6
5859 ..p5
5860 ..subpath(0,rundy(p1,tim1).zpet) of p1..cycle;
5861 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16); labels(10');
5862 math_fit(0,0);
5863 endchar;
5864
5865 iff known chars.cal_F:
5866 bskchar "The calligraphic letter F";
5867 beginchar(chars.cal_F,13.5u#,cap_height#,0); uni "non";
5868 italcorr cap_height#*slant-.5u#;
5869 adjust_fit(0,0);
5870 pickup tiny.nib;
5871 path p[]; numeric tim[]; oblu:=cap_curve;
5872 pos1(cal_hair,-30); pos2(cal_hair,-30); pos3(cal_hair,-20);
5873 pos4(cap_hair,60); pos5(cap_hair,90);
5874 pos6(cal_hair,0); pos7(.5[cal_hair,hair],0); pos8(cal_hair,90);
5875 pos9(cal_hair,60); pos10(cal_hair,60); pos11(cal_stem,75); pos12(cal_stem,75);
5876 y1=h; bot y3r=0; x1l-x3l=u; rt x1r=4u;
5877 top y4r=h+o; lft x4=u;
5878 x2l=x3r+.5hair; y2=1/3x_height; z5r=z1r;
5879 top y6=h; rt x6r=w-1.5u; z7=z6+cap_stem*dir(-100); z8r=z1l;
5880 y6r:=bot bot y6r; y6l:=bot bot y6r;
5881 x6'-x6l=x6-x6r; y6'=y6r;
5882 y9=y10=y11=.52y1r; x9=x2l; x10=.5[x2r,x6]; x11=x10+cal_hair;
5883 z12=z11+hair*right;
5884 p0:=z1l{z2l-z1l}..z2l..z3l;
5885 p1:=z4l{dir-20}..{right}z5l;
5886 p2:=z3l..(x3l,y3r)..z3r..z2r..{z1r-z2r}z1r{dir180}..{dir160}z4r;
5887 p3:=z7r---z6r..z6..z8r..z4r;
5888 p4:=z4l..z8l..z6'..z6l---z7l;
5889 p5:=z9l{dir10}..{dir-10}z10l..z11l..z12l---z12r..z11r..z10r{dir170}..{dir190}z9r;
5890 (tim0,tim1)=p0 intersectiontimes p1;
5891 (tim2,tim3)=p2 intersectiontimes p4;
5892 (tim4,tim5)=p2 intersectiontimes p5;
5893 (tim6,tim7-2)=p2 intersectiontimes subpath(2,infinity) of p5;
5894 filldraw subpath(rundy(p0,tim0),infinity) of p0
5895 ..subpath(0,rundy(p2,tim4).zpet) of p2
5896 ..subpath(rundy(p5,tim5),rundy(p5,tim7).zpet) of p5
5897 ..subpath(rundy(p2,tim6),rundy(p2,tim2).zpet) of p2
5898 ..subpath(rundy(p4,tim3),infinity) of p4
5899 ..p3
5900 ..subpath(0,rundy(p1,tim1).zpet) of p1..cycle;
5901 penlabels(1,2,3,4,5,6,7,8,9,10,11,12); labels(6');
5902 math_fit(0,0);
5903 endchar;
5904
5905 iff known chars.cal_G:
5906 bskchar "The calligraphic letter G";
5907 beginchar(chars.cal_G,9.5u#,cap_height#,.75desc_depth#); uni "non";
5908 italcorr cap_height#*slant+.5u#;
5909 adjust_fit(0,0);
5910 pickup tiny.nib;
5911 path p[]; numeric tim[]; oblu:=cal_curve;
5912 pos1(cal_hair,-90); pos2(cal_hair,180);
5913 pos3(.65[cal_stem,cal_hair],-10); pos4(cal_stem,10); pos5(cal_hair,90);
5914 pos6(cal_hair,180); pos7(cal_hair,0); pos8(cal_hair,90); pos9(cal_hair,180);
5915 top y1l=h+o; x1=w-u-cal_hair; rt x2l=w; y2=y1-cal_hair;
5916 x3=x4; lft x3l=u; .5[y3,y4]=.5h; y3-y4=1/3h;
5917 bot y5l=-o; x5=.5[x4r,w]; z6=(w,y4);
5918 x7r=x5; y7=-d+cal_stem; bot y8l=-d-o; .5[x7,x9]=x8=x7+cal_stem; y9=-.35d;
5919 p0:=z2l{up}..z1l..z3l..z4l..z5l..{dir90}z6;
5920 p1:=z6+left{dir-100}..z5r..z4r..z3r..z1r..{down}z2r;
5921 p2=z6l{down}..z9l..z8l..{up}z7l..z7r{down}..z8r..z9r..{up}z6r;
5922 (tim0,tim1)=p0 intersectiontimes p2;
5923 filldraw reverse p1
5924 ..subpath(0,rundy(p2,tim1).zpet) of p2
5925 ..reverse subpath(0,rundy(p0,tim0).zpet) of p0..cycle;
5926 penlabels(1,2,3,4,5,6,7,8,9,10);
5927 math_fit(-u#,u#);
5928 endchar;
5929
5930 iff known chars.cal_H:
5931 bskchar "The calligraphic letter H";
5932 beginchar(chars.cal_H,14.5u#,cap_height#,0); uni "non";
5933 italcorr cap_height#*slant-.5u#;
5934 adjust_fit(0,0);
5935 pickup tiny.nib;
5936 path p[]; numeric tim[]; oblu:=cap_curve;
5937 pos1(hair,-30); pos2(cal_hair,-30); pos3(cal_hair,-20);
5938 pos4(cap_hair,60); pos5(cap_hair,90); pos6(cal_hair,-10);
5939 pos7(.65[cal_stem,cal_hair],-10); pos8(.45[cal_stem,cal_hair],10); pos9(cal_hair,90);
5940 pos11(cal_hair,60); pos12(cal_hair,60);
5941 y1=h; bot y3r=0; x1l-x3l=u; rt x1r=4u;
5942 top y4r=h+o; lft x4=u;
5943 x2l=x3r+.5hair; y2=1/3x_height; z5r=z1r; top y6l=h; x6r=w-u-cal_hair;
5944 y8=cal_curve; y7=h-cal_curve-cal_hair; x8r=x7r=w-u-1.5cal_hair;
5945 bot y9l=0; x9=.5[x8r,w]; z10=(w,y8r);
5946 y11r=y12=.75[bar_height,x_height]; x11r=x2l; x12=x7r;
5947 p0:=z1l{z2l-z1l}..z2l..z3l;
5948 p1:=z4l{dir-20}..{right}z5l;
5949 p2:=z3l..(x3l,y3r)..z3r..z2r..{z1r-z2r}z1r{dir180}..{dir160}z4r;
5950 p3:=z11l{right}..{dir50}z12l;
5951 p4:=z12r{dir-150}..{left}z11r;
5952 p5:=z6l---z7l..z8l..z9l..{dir100}z10;
5953 p6:=z10+left{dir-80}..z9r..z8r..z7r---z6r;
5954 (tim0,tim1)=p0 intersectiontimes p1;
5955 (tim2,tim3)=p2 intersectiontimes p3;
5956 (tim4,tim5)=p5 intersectiontimes p3;
5957 (tim6,tim7)=p5 intersectiontimes p4;
5958 (tim8,tim9)=p2 intersectiontimes p4;
5959 filldraw subpath(rundy(p0,tim0),infinity) of p0
5960 ..subpath(0,rundy(p2,tim2).zpet) of p2
5961 ..subpath(rundy(p3,tim3),rundy(p3,tim5).zpet) of p3
5962 ..subpath(rundy(p5,tim4),infinity) of p5..p6
5963 ..subpath(0,rundy(p5,tim6).zpet) of p5
5964 ..subpath(rundy(p4,tim7),rundy(p4,tim9).zpet) of p4
5965 ..subpath(rundy(p2,tim8),infinity) of p2
5966 ..subpath(0,rundy(p1,tim1).zpet) of p1..cycle;
5967 penlabels(1,2,3,4,5,6,7,8,9,10,11,12);
5968 math_fit(-u#,u#);
5969 endchar;
5970
5971 iff known chars.cal_I:
5972 bskchar "The calligraphic letter I";
5973 beginchar(chars.cal_I,9u#,cap_height#,0); uni "non";
5974 italcorr cap_height#*slant;
5975 adjust_fit(0,0);
5976 pickup tiny.nib;
5977 path p[]; numeric tim[]; oblu:=cap_curve;
5978 pos1(cal_hair,-30); pos2(cal_hair,-30); pos3(cal_hair,-20);
5979 pos4(cal_hair,60); pos5(cal_hair,60); pos6(cal_hair,90);
5980 pos7(cal_hair,90); pos8(cal_hair,60); pos9(cal_hair,60);
5981 y1=h; bot y3r=0; x1l-x3l=u; x1=.5w;
5982 x2l=x3r+.5hair; y2=1/3x_height;
5983 top y5=h; rt x5=rt x8=w-u; lft x4=lft x7=u; z4=whatever[z5r,z1l];
5984 bot y8=0; z7=whatever[z8l,z3r];
5985 z6r=z1l; z9l=z3r;
5986 p0:=z1l{z2l-z1l}..z2l..z3l;
5987 p1:=z3l..(x3l,y3r)..z3r..z2r..{z1r-z2r}z1r;
5988 p2:=z5r{dir200}..z6r..{left}z4r;
5989 p3:=z4l{right}..z6l..{dir20}z5l;
5990 p4:=z7l{dir20}..z9l..{right}z8l;
5991 p5:=z8r{left}..z9r..{dir200}z7r;
5992 (tim0,tim1)=p0 intersectiontimes p3;
5993 (tim2,tim3)=p1 intersectiontimes p3;
5994 (tim4,tim5)=p0 intersectiontimes p5;
5995 (tim6,tim7)=p1 intersectiontimes p5;
5996 filldraw subpath(rundy(p0,tim0),rundy(p0,tim4).zpet) of p0
5997 ..subpath(rundy(p5,tim5),infinity) of p5
5998 ..p4
5999 ..subpath(0,rundy(p5,tim7).zpet) of p5
6000 ..subpath(rundy(p1,tim6),rundy(p1,tim2).zpet) of p1
6001 ..subpath(rundy(p3,tim3),infinity) of p3
6002 ..p2..subpath(0,rundy(p3,tim1).zpet) of p3
6003 ..cycle;
6004 penlabels(1,2,3,4,5,6,7,8,9);
6005 math_fit(0,0);
6006 endchar;
6007
6008 iff known chars.cal_J:
6009 bskchar "The calligraphic letter J";
6010 beginchar(chars.cal_J,8u#,cap_height#,0); uni "non";
6011 italcorr cap_height#*slant;
6012 adjust_fit(0,0);
6013 pickup tiny.nib;
6014 path p[]; numeric tim[]; oblu:=cap_curve;
6015 pos1(cal_hair,-30); pos2(cal_hair,-30);
6016 pos3(cap_hair,60); pos4(cap_hair,90); pos5(cal_hair,260);
6017 pos6(cal_stem,210);
6018 y1=h; rt x1r=w-u;
6019 top y3r=h+o; rt x1r-lft x3=4u;
6020 x2l=x1-u; y2=1/3x_height; z4r=z1r;
6021 y6=.7bar_height; lft x6r=u; x5=1/3[x6,x2]; y5=0;
6022 p0:=z1l{z2l-z1l}..z2l..z5l..{up}z6l;
6023 p1:=z3l{dir-20}..{right}z4l;
6024 p2:=z6+o*up..z6r{down}..z5r..z2r..{z1r-z2r}z1r{dir180}..{dir160}z3r;
6025 (tim0,tim1)=p0 intersectiontimes p1;
6026 filldraw subpath(rundy(p0,tim0),infinity) of p0..p2
6027 ..subpath(0,rundy(p1,tim1).zpet) of p1..cycle;
6028 penlabels(1,2,3,4,5,6);
6029 math_fit(0,0);
6030 endchar;
6031
6032 iff known chars.cal_K:
6033 bskchar "The calligraphic letter K";
6034 beginchar(chars.cal_K,12u#,cap_height#,0); uni "non";
6035 italcorr cap_height#*slant;
6036 adjust_fit(0,0);
6037 pickup tiny.nib;
6038 path p[]; numeric tim[]; oblu:=cap_curve;
6039 pos1(hair,-30); pos2(cal_hair,-30); pos3(cal_hair,-20);
6040 pos4(cap_hair,60); pos5(cap_hair,90); pos6(cal_stem,-10);
6041 pos7(cal_stem,10); pos8(cal_hair,90);
6042 pos10(cal_stem,20); pos11(cal_hair,-10); pos12(cal_stem,0);
6043 y1=h; bot y3r=0; x1l-x3l=u; rt x1r=4u;
6044 top y4r=h+o; lft x4=u;
6045 x2l=x3r+.5hair; y2=1/3x_height; z5r=z1r;
6046 bot y8l=0; y7=cal_curve; x7r=w-u-1.5cal_hair;
6047 x8=.5[x7r,w]; z9=(w,y7r);
6048 x6=x2l; y6=.5[x_height,bar_height]; z11l=z6l; x10r=w-2u; y10=h;
6049 z12=z10+(u,-cal_stem);;
6050 p0:=z1l{z2l-z1l}..z2l..z3l;
6051 p1:=z4l{dir-20}..{right}z5l;
6052 p2:=z9+left{dir-80}..z8r..z7r..z6r;
6053 p3:=z6l..{dir-60}z7l..z8l..{dir100}z9;
6054 p4:=z10l{dir-40}..z12l{(z11-z12) rotated 20}..{(z11-z12) rotated -10}z11l;
6055 p5:=z11r{(z12-z11) rotated -10}..{(z12-z11) rotated 20}z12r..{dir130}z10r;
6056 p6:=z3l..(x3l,y3r)..z3r..z2r..{z1r-z2r}z1r{dir180}..{dir160}z4r;
6057 (tim0,tim1)=p0 intersectiontimes p1;
6058 (tim2,tim3)=p0 intersectiontimes p4;
6059 (tim4,tim5)=p0 intersectiontimes p3;
6060 (tim6,tim7)=p6 intersectiontimes p3;
6061 (tim8,tim9)=p6 intersectiontimes p4;
6062 filldraw subpath(rundy(p0,tim0),rundy(p0,tim2).zpet) of p0
6063 ..subpath(rundy(p4,(tim3,.5oblu)),infinity) of p4
6064 ..subpath(0,rundy(p3,(tim5,.5oblu)).zpet) of p3
6065 ..subpath(rundy(p0,tim4),infinity) of p0
6066 ..subpath(0,rundy(p6,tim6).zpet) of p6
6067 ..subpath(rundy(p3,tim7),infinity) of p3
6068 ..subpath(0,rundy(p2,infinity).zpet) of p2
6069 ..subpath(rundy(p5,0),infinity) of p5..z10
6070 ..subpath(0,rundy(p4,tim9).zpet) of p4
6071 ..subpath(rundy(p6,tim8),infinity) of p6
6072 ..subpath(0,rundy(p1,tim1).zpet) of p1..cycle;
6073 penlabels(1,2,3,4,5,6,7,8,9,10,11,12);
6074 math_fit(0,u#);
6075 endchar;
6076
6077 iff known chars.cal_L:
6078 bskchar "The calligraphic letter L";
6079 beginchar(chars.cal_L,13.5u#,cap_height#,0); uni "non";
6080 italcorr 0;
6081 adjust_fit(0,0);
6082 pickup tiny.nib;
6083 path p[]; numeric tim[]; oblu:=cap_curve;
6084 pos1(cal_hair,-30); pos2(cal_stem,-30); pos3(cal_hair,-20);
6085 pos4(cap_hair,60); pos5(cap_hair,90); pos6(cal_hair,180);
6086 pos7(cal_hair,180); pos8(.5[cal_stem,cal_hair],90);
6087 y1=h; bot y3l=0; x1l-x3l=u; rt x1r=4u;
6088 top y4r=h+o; lft x4=u;
6089 x2l=x3r+.5hair; y2=1/3x_height; z5r=z1r;
6090 rt x7l=w-u; lft x6l=x7; bot y7=0; top y6=.5bar_height;
6091 bot y8l=0; x8=x2l; y7r:=y8r-currentbreadth; top y9=bot y8l; x8l-x9=2(y8r-y8l);
6092 p0:=z1l{z2l-z1l}..z2l..z3l;
6093 p1:=z4l{dir-20}..{right}z5l;
6094 p2:=z3l..(x3l,y3r)..z3r..z2r..{z1r-z2r}z1r{dir180}..{dir160}z4r;
6095 p3:=z9{dir10}..z8l{dir10}..z7l{dir-10}..{dir130}z6l;
6096 p4:=z6r{dir-40}..z7r{dir160}..{dir190}z8r..{dir190}z9;
6097 (tim0,tim1)=p0 intersectiontimes p1;
6098 (tim2,tim3)=p0 intersectiontimes p4;
6099 (tim4,tim5)=p2 intersectiontimes p4;
6100 filldraw subpath(rundy(p0,tim0),rundy(p0,tim2).zpet) of p0
6101 ..subpath(rundy(p4,tim3),infinity) of p4..p3
6102 ..subpath(0,rundy(p4,tim5).zpet) of p4
6103 ..subpath(rundy(p2,tim4),infinity) of p2
6104 ..subpath(0,rundy(p1,tim1).zpet) of p1..cycle;
6105 penlabels(1,2,3,4,5,6,7,8); labels(9);
6106 math_fit(0,0);
6107 endchar;
6108
6109 iff known chars.cal_M:
6110 bskchar "The calligraphic letter M";
6111 beginchar(chars.cal_M,16u#,cap_height#,0); uni "non";
6112 italcorr cap_height#*slant-u#;
6113 adjust_fit(0,0);
6114 path p[]; numeric tim[];
6115 pickup tiny.nib;
6116 pos1(hair,-30); pos2(cal_hair,-30); pos3(cal_hair,-20);
6117 pos4(hair,-30); pos5(hair,-30); pos6(cal_hair,210); pos7(cal_stem,200);
6118 pos8(hair,180); pos9(hair,90); pos10(cal_hair,-10);
6119 pos11(.65[cal_stem,cal_hair],-10); pos12(cal_stem,10); pos13(cal_hair,90);
6120 y1=h-cap_stem-cap_hair; bot y3r=0; lft x3l=u; lft x1l=2u;
6121 x2l=x3r+.5hair; y2=1/3x_height;
6122 lft x4l=0; y4=y1-cal_hair; y5=y6r; z5=z4+whatever*dir60; z6r=z1r+cal_hair*dir60;
6123 x7=.5w ;y7r=0;
6124 top y9r=top y10l=h; y8=0; x8l=x7r; x9=w-2u;
6125 x10r=w-u-cal_hair;
6126 y12=cal_curve; y11=h-cal_curve-cal_hair; x12r=x11r=w-u-1.5cal_hair;
6127 bot y13l=0; x13=.5[x12r,w]; z14=(w,y12r);
6128 p1:=z4r---z5r..z6r..{down}z7r;
6129 p2:=z7l{up}..z6l..z5l---z4l;
6130 p3:=z8l{up}..z9l;
6131 p4:=z9r..{down}z8r;
6132 p5:=z10l---z11l..z12l..z13l..{dir100}z14;
6133 p6:=z14+left{dir-80}..z13r..z12r..z11r---z10r;
6134 (tim0,tim1)=p1 intersectiontimes p4;
6135 (tim2,tim3)=p3 intersectiontimes p5;
6136 z100=bsktouch(p4,left,p2,right);
6137 tim4=xpart(p4 intersectiontimes(z100--(w,y100)));
6138 tim5=xpart(p2 intersectiontimes(z100--(0,y100)));
6139 filldraw z1l{z2l-z1l}..z2l..z3l&z3l..(x3l,y3r)..z3r..z2r..{z1r-z2r}z1r..cycle;
6140 filldraw subpath(0,rundy(p1,tim0).zpet) of p1
6141 ..subpath(rundy(p4,tim1),infinity) of p4
6142 ..subpath(0,rundy(p3,tim2).zpet) of p3
6143 ..subpath(rundy(p5,tim3),infinity) of p5
6144 ..subpath(0,rundy(p6,infinity).zpet) of p6
6145 ..subpath(rundy(p4,0),rundy(p4,tim4).zpet) of p4
6146 ..subpath(rundy(p2,tim5),infinity) of p2..cycle;
6147 math_fit(0,ic#);
6148 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14);
6149 endchar;
6150
6151 iff known chars.cal_N:
6152 bskchar "The calligraphic letter N";
6153 beginchar(chars.cal_N,13u#,cap_height#,0); uni "non";
6154 italcorr cap_height#*slant;
6155 adjust_fit(0,0);
6156 path p[]; numeric tim[];
6157 pickup tiny.nib;
6158 pos1(hair,-30); pos2(cal_hair,-30); pos3(cal_hair,-20);
6159 pos4(hair,-30); pos5(hair,-30); pos6(cal_hair,210); pos7(cal_stem,200);
6160 pos8(hair,180); pos9(cal_stem,90); pos10(cal_stem,60);
6161 y1=h-cap_stem-cap_hair; bot y3r=0; lft x3l=u; lft x1l=2u;
6162 x2l=x3r+.5hair; y2=1/3x_height;
6163 lft x4l=0; y4=y1-cal_hair; y5=y6r; z5=z4+whatever*dir60; z6r=z1r+cal_hair*dir60;
6164 x7=w-3u; y7r=0;
6165 top y10r=h; y9=h-cal_stem; y8=0; x8l=x7r; x9=w-2.5u; rt x10=w-u;
6166 p1:=z4r---z5r..z6r..{down}z7r;
6167 p2:=z7l{up}..z6l..z5l---z4l;
6168 p3:=z8l{(z9-z8)rotated 10}..{(z9-z8)rotated -10}z9l..{right}z10l;
6169 p4:=z10r{left}..z9r{(z8-z9)rotated -10}..{(z8-z9) rotated 10}z8r;
6170 filldraw z1l{z2l-z1l}..z2l..z3l&z3l..(x3l,y3r)..z3r..z2r..{z1r-z2r}z1r..cycle;
6171 (tim0,tim1)=p1 intersectiontimes p4;
6172 z100=bsktouch(p4,left,p2,right);
6173 tim2=xpart(p4 intersectiontimes(z100--(w,y100)));
6174 tim3=xpart(p2 intersectiontimes(z100--(0,y100)));
6175 filldraw subpath(0,rundy(p1,tim0).zpet) of p1
6176 ..subpath(rundy(p4,tim1),infinity) of p4
6177 ..p3
6178 ..subpath(0,rundy(p4,tim2).zpet) of p4
6179 ..subpath(rundy(p2,tim3),infinity) of p2..cycle;
6180 penlabels(1,2,3,4,5,6,7,8,9,10);
6181 math_fit(0,0);
6182 endchar;
6183
6184 iff known chars.cal_O:
6185 bskchar "The calligraphic letter O";
6186 beginchar(chars.cal_O,10u#,cap_height#,0); uni "non";
6187 italcorr cap_height#*slant;
6188 adjust_fit(0,0);
6189 pickup tiny.nib;
6190 pos1(cal_hair,-90); pos2(cal_hair,180);
6191 pos3(.65[cal_stem,cal_hair],-10); pos4(cal_stem,10); pos5(cal_hair,90);
6192 pos6(.65[cal_stem,cal_hair],170);
6193 top y1l=h+o; x1=w-2u-cal_hair; rt x2l=w-u; y2=y1-cal_hair;
6194 x3=x4; lft x3l=u; .5[y3,y4]=.5h; y3-y4=1/3h;
6195 bot y5l=-o; x5=.5[x4r,w];
6196 y6=.55[y4,y3]; rt x6l=w; y7=y2-cal_hair; lft x7=rt x5;
6197 filldraw z2l{up}..z1l..z3l..z4l..z5l..z6l..{dir160}z7..{dir-20}z7+down
6198 ..z6r..z5r..z4r..z3r..z1r..{down}z2r..cycle;
6199 penlabels(1,2,3,4,5,6,7);
6200 math_fit(-u#,u#);
6201 endchar;
6202
6203 iff known chars.cal_P:
6204 bskchar "The calligraphic letter P";
6205 beginchar(chars.cal_P,10u#,cap_height#,0); uni "non";
6206 italcorr x_height#*slant-.25u#;
6207 adjust_fit(0,0);
6208 path p[];
6209 pickup tiny.nib;
6210 pos1(hair,-30); pos2(cal_hair,-30); pos3(cal_hair,-20); pos4(hair,150);
6211 pos5(.9cal_hair,80); pos6(.65[cal_stem,cal_hair],10); pos7(cal_stem,-10);
6212 pos8(cal_hair,-90); pos9(cal_hair,180);
6213 y1=h-cap_stem-cap_hair; bot y3r=0; lft x3l=0; lft x1l=u;
6214 x2l=x3r+.5hair; y2=1/3x_height;
6215 lft x9r=x2r+cal_hair; y9=bar_height+cal_stem; bot y8r=bar_height-o; x8=x9+cal_stem;
6216 x4l=0; top y4=h-cap_stem; top y5r=h; .75[x5,x4]=x1;
6217 y6-y7=.5(h-bar_height); .5[y6,y7]=.5[h,bar_height]; x6=x7; rt x6r=w-2u;
6218 p0:=z4l..z5l..z6l..z7l..z8l..{up}z9l;
6219 p1:=z9r{down}..z8r..z7r..z6r..z5r..z4r;
6220 filldraw z1l{z2l-z1l}..z2l..z3l&z3l..(x3l,y3r)..z3r..z2r..{z1r-z2r}z1r..cycle;
6221 filldraw p0..p1..cycle;
6222 penlabels(1,2,3,4,5,6,7,8,9);
6223 math_fit(0,-2u#);
6224 endchar;
6225
6226 iff known chars.cal_Q:
6227 bskchar "The calligraphic letter Q";
6228 beginchar(chars.cal_Q,11u#,cap_height#,.75desc_depth#); uni "non";
6229 italcorr cap_height#*slant;
6230 adjust_fit(0,0);
6231 pickup tiny.nib;
6232 path p[]; numeric tim[];
6233 pos1(cal_hair,-90); pos2(cal_hair,180);
6234 pos3(.65[cal_stem,cal_hair],-10); pos4(cal_stem,10); pos5(cal_hair,90);
6235 pos6(.65[cal_stem,cal_hair],170); pos8(cal_hair,160); pos9(cal_hair,60);
6236 pos10(cal_hair,90);
6237 top y1l=h+o; x1=w-3u-cal_hair; rt x2l=w-2u; y2=y1-cal_hair;
6238 x3=x4; lft x3l=u; .5[y3,y4]=.5h; y3-y4=1/6h;
6239 bot y5l=1/12h; x5=.5[x4r,x6r]; y8=.5y5; x8r=x2;
6240 y6=.55[y4,y3]; rt x6l=w-3u; y7=y2-cal_hair; lft x7=rt x5;
6241 x9=x5; y9l=-.7d; rt x10=w; bot y10l=-d;
6242 p0:=z9l{z8-z9}..z8l..z2l..z1l..z3l..z4l..z5l..z6l..{dir160}z7..{dir-20}z7+down
6243 ..z6r..z5r..z4r..z3r..z1r..z2r..z8r..{z9-z8}z9r;
6244 p1:=z10r{dir200}..{left}z9;
6245 p2:=z9l{right}..{dir20}z10l;
6246 (tim0,tim1)=subpath(0,1) of p0 intersectiontimes p1;
6247 filldraw subpath(rundy(p2,0),infinity) of p2
6248 ..subpath(0,rundy(p1,(tim1,2oblu)).zpet) of p1
6249 ..subpath(rundy(p0,(tim0,2oblu)),rundy(p0,infinity).zpet) of p0..cycle;
6250 penlabels(1,2,3,4,5,6,7,8,9,10);
6251 math_fit(-u#,u#);
6252 endchar;
6253
6254 iff known chars.cal_R:
6255 bskchar "The calligraphic letter R";
6256 beginchar(chars.cal_R,10.5u#,cap_height#,0); uni "non";
6257 italcorr x_height#*slant-.25u#;
6258 adjust_fit(0,0);
6259 path p[]; numeric tim[];
6260 pickup tiny.nib;
6261 pos1(hair,-30); pos2(cal_hair,-30); pos3(cal_hair,-20); pos4(hair,150);
6262 pos5(.9cal_hair,80); pos6(.65[cal_stem,cal_hair],10); pos7(cal_stem,-10);
6263 pos8(cal_hair,-90); pos9(cal_hair,180);
6264 pos10(.5[cal_stem,cal_hair],0); pos11(cal_stem,10); pos12(cal_hair,90);
6265 y1=h-cap_stem-cap_hair; bot y3r=0; lft x3l=0; lft x1l=u;
6266 x2l=x3r+.5hair; y2=1/3x_height;
6267 lft x9r=x2r+cal_hair; y9=bar_height+cal_stem; bot y8r=bar_height-o; x8=x9+cal_stem;
6268 x4l=0; top y4=h-cap_stem; top y5r=h; .75[x5,x4]=x1;
6269 y6-y7=.5(h-bar_height); .5[y6,y7]=.5[h,bar_height]; x6=x7; rt x6r=w-2.5u;
6270 bot y12l=0; y11=cal_curve; x11r=w-u-1.5cal_hair;
6271 x12=.5[x11r,w]; z13=(w,y11r);
6272 x10r=x2l; y10=.5[x_height,bar_height];
6273 p0:=z4l..z5l..z6l..z7l..z8l..{up}z9l;
6274 p1:=z9r{down}..z8r..z7r..z6r..z5r..z4r;
6275 p2:=z13+left{dir-80}..z12r..z11r..z10r..z10l;
6276 p3:=z10l..{dir-60}z11l..z12l..{dir100}z13;
6277 p4:=z1l{z2l-z1l}..z2l..z3l;
6278 p5:=z3l..(x3l,y3r)..z3r..z2r..{z1r-z2r}z1r;
6279 (tim0,tim1)=p4 intersectiontimes p2;
6280 (tim2,tim3)=p4 intersectiontimes p3;
6281 (tim4,tim5)=p5 intersectiontimes p3;
6282 z100=bsktouch(subpath(1,infinity) of p1,down,p2,up);
6283 tim6=xpart(p1 intersectiontimes (z100--(x100,h)));
6284 tim7=xpart(p2 intersectiontimes (z100--(x100,0)));
6285 (tim8,tim9)=p5 intersectiontimes p2;
6286 tim10=xpart(p2 intersectiontimes (z8l---(x8,0)));
6287 filldraw subpath(0,rundy(p4,tim0).zpet) of p4
6288 ..subpath(rundy(p2,tim1),infinity) of p2
6289 ..subpath(0,rundy(p3,tim3).zpet) of p3
6290 ..subpath(rundy(p4,tim2),infinity) of p4
6291 ..subpath(0,rundy(p5,tim4).zpet) of p5
6292 ..subpath(rundy(p3,tim5),infinity) of p3
6293 ..subpath(0,rundy(p2,tim7).zpet) of p2
6294 ..subpath(rundy(p1,tim6),infinity) of p1
6295 ..subpath(0,rundy(p0,4).zpet) of p0
6296 ..subpath(rundy(p2,tim10),rundy(p2,tim9).zpet) of p2
6297 ..subpath(rundy(p5,tim8),infinity) of p5..cycle;
6298 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); labels(100);
6299 math_fit(0,ic#);
6300 endchar;
6301
6302 iff known chars.cal_S:
6303 bskchar "The calligraphic letter S";
6304 beginchar(chars.cal_S,9u#,cap_height#,0); uni "non";
6305 italcorr cap_height#*slant-.5u#;
6306 adjust_fit(0,0);
6307 pickup tiny.nib;
6308 pos2(cal_hair,30); pos3(cal_stem,225); pos4(cal_hair,30);
6309 pos5(cal_stem,180); pos6(cal_stem,180);
6310 y5=.5[y2l,y3]+.5like_cap_hair;
6311 y6=.5[y4r,y3]-.5like_cap_hair; rt x6l=w-u;
6312 x3=x4=.5w; top y2r=h+o; bot y4l=-o; x2=.5[x1,x5l];
6313 y3=.5[y2l,y4r]+.5cap_hair;
6314 x5l=3u; x1r=w-x5r+.5u;
6315 pos1(cal_stem,-10); y1=.5[y5,y2l];
6316 pos7(cap_stem,30); x7l=w-x6l; y7=y6;
6317 filldraw z1r{dir110}..z2r{left}..z5r..z3r..z6r..{left}z4r..{up}z7r..z7l{down}..z4l{right}
6318 ..z6l..z3l..z5l..{right}z2l..{dir-70}z1l..cycle;
6319 math_fit(0,0);
6320 penlabels(0,1,2,3,4,5,6,7);
6321 endchar;
6322
6323 iff known chars.cal_T:
6324 bskchar "The calligraphic letter T";
6325 beginchar(chars.cal_T,13u#,cap_height#,0); uni "non";
6326 italcorr cap_height#*slant-.5u#;
6327 adjust_fit(0,0);
6328 pickup tiny.nib;
6329 path p[]; numeric tim[]; oblu:=cap_curve;
6330 pos1(cal_hair,-30); pos2(cal_hair,-30); pos3(cal_hair,-20);
6331 pos4(cap_hair,60); pos5(cap_hair,90);
6332 pos6(cal_hair,0); pos7(.5[cal_hair,hair],0); pos8(cal_hair,90);
6333 pos9(cal_hair,180); pos10(.5[cal_hair,hair],180);
6334 y1=h; bot y3r=0; x1l-x3l=u; rt x1r=.5w;
6335 top y4r=h+o; lft x4=u;
6336 x2l=x3r+.5hair; y2=1/3x_height; z5r=z1r;
6337 top y6=h; rt x6r=w-1.5u; z7=z6+cap_stem*dir(-100); z8r=z1l;
6338 y6r:=bot bot y6r; y6l:=bot bot y6r;
6339 x6'-x6l=x6r-x6; y6'=y6r;
6340 top y9=h; lft x9r=.5u; z10=z9+cap_stem*dir(-70);
6341 y9r:=y6r; y9l:=y6l;
6342 x9'-x9l=x9-x9r; y9'=y9r;
6343 p0:=z1l{z2l-z1l}..z2l..z3l;
6344 p1:=z8l..z9'..z9l---z10l;
6345 p2:=z3l..(x3l,y3r)..z3r..z2r..{z1r-z2r}z1r{dir180}..z9..z9r---z10r;
6346 p3:=z7r---z6r..z6..z8r..z4r;
6347 p4:=z8l{dir20}..{dir-20}z6'..z6l---z7l;
6348 (tim0,tim1)=p0 intersectiontimes p1;
6349 (tim2,tim3)=p2 intersectiontimes p4;
6350 tim4=xpart(p3 intersectiontimes (z8r--(x8r,h+stem)));
6351 filldraw subpath(rundy(p0,tim0),infinity) of p0
6352 ..subpath(0,rundy(p2,tim2).zpet) of p2
6353 ..subpath(rundy(p4,tim3),infinity) of p4
6354 ..subpath(0,rundy(p3,tim4)) of p3
6355 ..subpath(rundy(p2,4),infinity) of p2
6356 ..reverse subpath(rundy(p1,tim1),infinity) of p1
6357 ..cycle;
6358 penlabels(1,2,3,4,5,6,7,8,9,10); labels(6',9');
6359 math_fit(0,0);
6360 endchar;
6361
6362 iff known chars.cal_U:
6363 bskchar "The calligraphic letter U";
6364 beginchar(chars.cal_U,12u#,cap_height#,0); uni "non";
6365 italcorr cap_height#*slant;
6366 adjust_fit(0,0);
6367 pickup tiny.nib;
6368 path p[]; numeric tim[]; oblu:=cap_curve;
6369 pos1(cal_hair,-30); pos2(cal_hair,-30);
6370 pos3(cap_hair,60); pos4(cap_hair,90); pos5(cal_hair,260);
6371 pos6(cal_stem,150); pos7(cal_stem,160); pos8(hair,-90);
6372 y1=h; rt x1r=w-u; x7r=1.5u; y7=.5[x_height,h]; y8l=h+o; x8=x7r-u;
6373 top y3r=h+o; rt x1r-lft x3=3u;
6374 x2l=x1-u; z4r=z1r;
6375 y2=y6=.5bar_height; lft x6r=u; x5=1/3[x6,x2]; y5=0;
6376 p0:=z1l{z2l-z1l}..z2l..z5l..z6l..{dir80}z7l..{dir200}z8l;
6377 p1:=z3l{dir-20}..{right}z4l;
6378 p2:=z8r{dir20}..z7r{dir-100}..z6r..z5r..z2r..{z1r-z2r}z1r{dir180}..{dir160}z3r;
6379 (tim0,tim1)=p0 intersectiontimes p1;
6380 filldraw subpath(rundy(p0,tim0),infinity) of p0..p2
6381 ..subpath(0,rundy(p1,tim1).zpet) of p1..cycle;
6382 penlabels(1,2,3,4,5,6,7,8);
6383 math_fit(0,0);
6384 endchar;
6385
6386 iff known chars.cal_V:
6387 bskchar "The calligraphic letter V";
6388 beginchar(chars.cal_V,13u#,cap_height#,0); uni "non";
6389 italcorr cap_height#*slant;
6390 adjust_fit(0,0);
6391 path p[]; numeric tim[];
6392 pickup tiny.nib;
6393 pos1(hair,-30); pos2(hair,-30); pos3(cal_hair,210); pos4(cal_stem,200);
6394 pos5(hair,180); pos6(cal_stem,90); pos7(cal_stem,60);
6395 y3r=h-cap_hair; lft x3r=2u+cal_hair;
6396 lft x1l=0; y1=.9h; y2=y3r; z2=z1+whatever*dir60;
6397 x4=.5w; y4r=0;
6398 top y7r=h; y6=h-cal_stem; y5=0; x5l=x4r; x6=w-2.5u; rt x7=w-u;
6399 p1:=z1r---z2r..z3r..{down}z4r;
6400 p2:=z4l{up}..z3l..z2l---z1l;
6401 p3:=z5l{(z6-z5)rotated -10}..{(z6-z5)rotated 10}z6l..{right}z7l;
6402 p4:=z7r{left}..z6r{(z5-z6)rotated 10}..{(z5-z6) rotated -10}z5r;
6403 (tim0,tim1)=p1 intersectiontimes p4;
6404 z100=bsktouch(p4,left,p2,right);
6405 tim2=xpart(p4 intersectiontimes(z100--(w,y100)));
6406 tim3=xpart(p2 intersectiontimes(z100--(0,y100)));
6407 filldraw subpath(0,rundy(p1,tim0).zpet) of p1
6408 ..subpath(rundy(p4,tim1),infinity) of p4
6409 ..p3
6410 ..subpath(0,rundy(p4,tim2).zpet) of p4
6411 ..subpath(rundy(p2,tim3),infinity) of p2..cycle;
6412 penlabels(1,2,3,4,5,6,7);
6413 math_fit(0,-2u#);
6414 endchar;
6415
6416 iff known chars.cal_W:
6417 bskchar "The calligraphic letter W";
6418 beginchar(chars.cal_W,16.5u#,cap_height#,0); uni "non";
6419 italcorr cap_height#*slant+u#;
6420 adjust_fit(0,0);
6421 path p[]; numeric tim[];
6422 pickup tiny.nib;
6423 pos1(hair,-30); pos2(hair,-30); pos3(cal_hair,210); pos4(cal_stem,200);
6424 pos5(hair,180); pos6(cal_stem,90); pos7(cal_stem,60);
6425 pos8(hair,-30); pos9(hair,-30); pos10(cal_hair,210); pos11(cal_stem,200);
6426 pos12(hair,180); pos13(cal_stem,90); pos14(cal_stem,60);
6427 y3r=y10r=h-cap_hair; lft x3r=lft x10r-5u=u+cal_hair;
6428 lft x1l=lft x8l-5u=0; y1=y8=.9h; y2=y9=y3r; z2=z1+whatever*dir60; z9=z8+whatever*dir60;
6429 x4=.375w; x11=.7w; y4r=y11r=0;
6430 top y7r=top y14r=h; y6=y13=h-cal_stem; y5=y12=0; x5l=x4r; x12l=x11r; x6=w-6u; x13=w-1.5u;
6431 rt x7=w-5u; rt x14=w;
6432 p1:=z1r---z2r..z3r..{down}z4r;
6433 p2:=z4l{up}..z3l..z2l---z1l;
6434 p3:=z5l{(z6-z5)rotated -10}..{(z6-z5)rotated 10}z6l..{right}z7l;
6435 p4:=z7r{left}..z6r{(z5-z6)rotated 10}..{(z5-z6) rotated -10}z5r;
6436 p5:=z8r---z9r..z10r..{down}z11r;
6437 p6:=z11l{up}..z10l..z9l---z8l;
6438 p7:=z12l{(z13-z12)rotated -10}..{(z13-z12)rotated 10}z13l..{right}z14l;
6439 p8:=z14r{left}..z13r{(z12-z13)rotated 10}..{(z12-z13) rotated -10}z12r;
6440 (tim0,tim1)=p1 intersectiontimes p4;
6441 z100=bsktouch(p4,left,p2,right);
6442 tim2=xpart(p4 intersectiontimes(z100--(w,y100)));
6443 tim3=xpart(p2 intersectiontimes(z100--(0,y100)));
6444 (tim4,tim5)=p3 intersectiontimes p5;
6445 z101=bsktouch(p8,left,p6,right);
6446 tim6=xpart(p8 intersectiontimes(z101--(w,y101)));
6447 tim7=xpart(p6 intersectiontimes(z101--(0,y101)));
6448 (tim8,tim9)=p5 intersectiontimes p4;
6449 filldraw subpath(0,rundy(p1,tim0).zpet) of p1
6450 ..subpath(rundy(p4,tim1),infinity) of p4
6451 ..subpath(0,rundy(p3,tim4).zpet) of p3
6452 ..subpath(rundy(p5,tim5),infinity) of p5
6453 ..p7
6454 ..subpath(0,rundy(p8,tim6).zpet) of p8
6455 ..subpath(rundy(p6,tim7),2) of p6
6456 ..subpath(1,rundy(p5,tim8).zpet) of p5
6457 ..subpath(rundy(p4,tim9),rundy(p4,tim2).zpet) of p4
6458 ..subpath(rundy(p2,tim3),infinity) of p2
6459 ..cycle;
6460 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14); labels(100,101);
6461 math_fit(0,-u#);
6462 endchar;
6463
6464 iff known chars.cal_X:
6465 bskchar "The calligraphic letter X";
6466 beginchar(chars.cal_X,12u#,cap_height#,0); uni "non";
6467 italcorr cap_height#*slant+.5u#;
6468 adjust_fit(0,0);
6469 path p[]; numeric tim[];
6470 pickup tiny.nib;
6471 pos1(cal_hair,0); pos2(cal_hair,90); pos3(cal_hair,180); pos4(cal_hair,180);
6472 pos5(cal_hair,90); pos6(cal_hair,0); pos7(cal_stem,-10);
6473 pos8(cal_stem,10); pos9(cal_hair,90);
6474 rt x1l=u; y1=cal_stem; bot y2l=-d-o; .45[x1,x3]=x2=x1+cal_stem; y3=.45bar_height;
6475 y4=1[bar_height,x_height]; z4=z3+whatever*dir75; top y5r=h+o; x5=w-u-cal_hair;
6476 rt x6r=w; y6=y5-cal_hair; bot y9l=0; y8=cal_curve; x8r=w-u-1.5cal_hair;
6477 x9=.5[x8r,w]; z10=(w,y8r);
6478 lft x7l=u; y7=h;
6479 p0:=z1r{down}..z2r..z3r..z4r..{right}z5r..{down}z6r;
6480 p1:=z6l{up}..{left}z5l..z4l..z3l..z2l..{up}z1l;
6481 p2:=z10+left{dir-80}..z9r..z8r..z7r;
6482 p3:=z7l..{dir-60}z8l..z9l..{dir100}z10;
6483 (tim0,tim1)=p0 intersectiontimes p3;
6484 (tim2,tim3)=p0 intersectiontimes p2;
6485 (tim4,tim5)=p1 intersectiontimes p2;
6486 (tim6,tim7)=p1 intersectiontimes p3;
6487 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
6488 ..(reverse subpath(0,rundy(p3,tim1).zpet) of p3)
6489 ..(reverse subpath(rundy(p2,(tim3,2oblu)),infinity) of p2)
6490 ..subpath(rundy(p0,(tim2,2oblu)),infinity) of p0
6491 ..subpath(0,rundy(p1,tim4).zpet) of p1
6492 ..(reverse subpath(0,rundy(p2,tim5).zpet) of p2)
6493 ..(reverse subpath(rundy(p3,(tim7,2oblu)),infinity) of p3)
6494 ..subpath(rundy(p1,(tim6,2oblu)),infinity) of p1..cycle;
6495 penlabels(1,2,3,4,5,6,7,8,9); labels(10);
6496 math_fit(-.5u#,u#);
6497 endchar;
6498
6499 iff known chars.cal_Y:
6500 bskchar "The calligraphic letter Y";
6501 beginchar(chars.cal_Y,12u#,cap_height#,0); uni "non";
6502 italcorr cap_height#*slant+.5u#;
6503 adjust_fit(0,0);
6504 path p[]; numeric tim[];
6505 pickup tiny.nib;
6506 pos1(cal_hair,0); pos2(cal_hair,90); pos3(cal_hair,180); pos4(cal_hair,180);
6507 pos5(cal_hair,90); pos6(cal_hair,0);
6508 pos7(hair,-30); pos8(hair,-30); pos9(cal_hair,210); pos10(cal_stem,200);
6509 y1=cal_stem; bot y2l=-d-o; .5[x1,x3]=x2=4.5u=x1+cal_stem; y3=.5bar_height;
6510 y4=.5[bar_height,x_height]; z4=z3+whatever*dir80; top y5r=h+o; x5=w-u-cal_hair;
6511 rt x6r=w; y6=y5-cal_hair;
6512 y9r=h-cap_hair; lft x9r=2u+cal_hair;
6513 lft x7l=u; y7=.9h; y8=y9r; z8=z7+whatever*dir60;
6514 x10l=x4; y10r=0;
6515 p1:=z6r{up}..{left}z5r..z4r..z3r..z2r..{up}z1r;
6516 p2:=z1l{down}..z2l..z3l..z4l..z5l{right}..{down}z6l;
6517 p3:=z7r---z8r..z9r..{down}z10r;
6518 p4:=z10l{up}..z9l..z8l---z7l;
6519 (tim0,tim1)=p3 intersectiontimes p1;
6520 z100=bsktouch(p1,left,p4,right);
6521 tim2=xpart(p1 intersectiontimes(z100--(w,y100)));
6522 tim3=xpart(p4 intersectiontimes(z100--(0,y100)));
6523 filldraw subpath(0,rundy(p3,tim0).zpet) of p3
6524 ..subpath(rundy(p1,tim1),infinity) of p1..p2
6525 ..subpath(0,rundy(p1,tim2).zpet) of p1
6526 ..subpath(rundy(p4,tim3),infinity) of p4..cycle;
6527 penlabels(1,2,3,4,5,6,7,8,9,10); labels(10);
6528 math_fit(-u#,-2u#);
6529 endchar;
6530
6531 iff known chars.cal_Z:
6532 bskchar "The calligraphic letter Z";
6533 beginchar(chars.cal_Z,11u#,cap_height#,0); uni "non";
6534 italcorr cap_height#*slant-.5u#;
6535 adjust_fit(0,0);
6536 pickup tiny.nib;
6537 path p[]; numeric tim[]; oblu:=cap_curve;
6538 pos1(cal_hair,90); pos2(cal_hair,180); pos3(.5[cal_hair,hair],180);
6539 pos4(cal_stem,-10); pos5(cal_stem,0); pos6(cal_hair,0);
6540 pos7(cal_hair,90); pos8(cal_stem,70); pos9(hair,90);
6541 top y2=top y1r=h; lft x2r=0; z3=z2+cap_stem*dir(-70);
6542 y2r:=bot bot y2r; y2l:=bot bot y2r; rt x1r=w-u;
6543 x2'-x2l=x2-x2r; y2'=y2r;
6544 z4r=z1r; y5=bar_height; x5=.5w; top y7l=0; z7r=z6l; lft x6l=u;
6545 x9=w; bot y9=-cal_hair; y8l=y6; x8=2/3[x7,x9];
6546 p1:=z1l..z2'..z2l---z3l;
6547 p2:=z3r---z2r..z2..z1r;
6548 p3:=z4r..z5r..z6r;
6549 p4:=z6l..z5l..z4l;
6550 p5:=z7r..z8r..z9r;
6551 p6:=z9l..z8l..z7l;
6552 (tim0,tim1)=p1 intersectiontimes p4;
6553 (tim2,tim3)=p3 intersectiontimes p5;
6554 filldraw subpath(rundy(p1,tim0),infinity) of p1
6555 ..subpath(0,rundy(p2,infinity).zpet) of p2
6556 ..subpath(rundy(p3,0),rundy(p3,tim2).zpet) of p3
6557 ..subpath(rundy(p5,tim3),infinity) of p5
6558 ..subpath(0,rundy(p6,infinity).zpet) of p6
6559 ..subpath(0,rundy(p4,tim1).zpet) of p4..cycle;
6560 penlabels(1,2,3,4,5,6,7,8,9,10); labels(6',9');
6561 math_fit(0,.5u#);
6562 endchar;
6563
6564 iff known chars.cal_Gamma:
6565 bskchar "The calligraphic Greek letter Gamma";
6566 beginchar(chars.cal_Gamma,13.5u#,cap_height#,0); uni "non";
6567 italcorr cap_height#*slant-.5u#;
6568 adjust_fit(0,0);
6569 pickup tiny.nib;
6570 path p[]; numeric tim[]; oblu:=cap_curve;
6571 pos1(cal_hair,-30); pos2(cal_hair,-30); pos3(cal_hair,-20);
6572 pos4(cap_hair,60); pos5(cap_hair,90);
6573 pos6(cal_hair,0); pos7(.5[cal_hair,hair],0); pos8(cal_hair,90);
6574 y1=h; bot y3r=0; x1l-x3l=u; rt x1r=4u;
6575 top y4r=h+o; lft x4=u;
6576 x2l=x3r+.5hair; y2=1/3x_height; z5r=z1r;
6577 top y6=h; rt x6r=w-1.5u; z7=z6+cap_stem*dir(-100); z8r=z1l;
6578 y6r:=bot bot y6r; y6l:=bot bot y6r;
6579 x6'-x6l=x6-x6r; y6'=y6r;
6580 p0:=z1l{z2l-z1l}..z2l..z3l;
6581 p1:=z4l{dir-20}..{right}z5l;
6582 p2:=z3l..(x3l,y3r)..z3r..z2r..{z1r-z2r}z1r{dir180}..{dir160}z4r;
6583 p3:=z7r---z6r..z6..z8r..z4r;
6584 p4:=z4l..z8l..z6'..z6l---z7l;
6585 (tim0,tim1)=p0 intersectiontimes p1;
6586 (tim2,tim3)=p2 intersectiontimes p4;
6587 filldraw subpath(rundy(p0,tim0),infinity) of p0
6588 ..subpath(0,rundy(p2,tim2).zpet) of p2
6589 ..subpath(rundy(p4,tim3),infinity) of p4
6590 ..p3
6591 ..subpath(0,rundy(p1,tim1).zpet) of p1..cycle;
6592 penlabels(1,2,3,4,5,6,7,8); labels(6');
6593 math_fit(0,-5u#);
6594 endchar;
6595
6596 iff known chars.cal_Lambda:
6597 bskchar "The calligraphic Greek letter Lambda";
6598 beginchar(chars.cal_Lambda,13.5u#,cap_height#,0); uni "non";
6599 italcorr cap_height#*slant+.5u#;
6600 adjust_fit(0,0);
6601 path p[]; numeric tim[];
6602 pickup tiny.nib;
6603 pos1(cal_hair,0); pos2(cal_hair,90); pos3(cal_hair,180); pos4(cal_hair,180);
6604 pos5(cal_hair,90); pos6(cal_hair,0);
6605 pos7(.65[cal_stem,cal_hair],-10); pos8(cal_stem,10); pos9(cal_hair,90);
6606 pos11(cal_hair,-10);
6607 rt x1l=u; y1=cal_stem; bot y2l=-d-o; .5[x1,x3]=x2=x1+cal_stem; y3=.5bar_height;
6608 y4=.5[bar_height,x_height]; z4=z3+whatever*dir75; top y5r=h+o; x5=w-u-cal_hair;
6609 rt x6r=w; y6=y5-cal_hair; y8=cal_curve; y7=y5l-cal_curve; x8r=x7r=x5-.5cal_hair;
6610 bot y9l=0; x9=.5[x8r,w];
6611 z10=(w,y8r); z11r=z5r;
6612 p1:=z1r{down}..z2r..z3r..z4r..{right}z5r..{down}z6r;
6613 p2:=z6l{up}..{left}z5l..z4l..z3l..z2l..{up}z1l;
6614 p3:=z11l---z7l..z8l..z9l..{dir100}z10;
6615 p4:=z10+left{dir-80}..z9r..z8r..z7r---z11r;
6616 (tim1,tim2)=p2 intersectiontimes p4;
6617 (tim3,tim4)=p3 intersectiontimes p2;
6618 filldraw p1..subpath(0,rundy(p2,tim1).zpet) of p2
6619 ..reverse subpath(0,rundy(p4,tim2).zpet) of p4
6620 ..reverse subpath(rundy(p3,(tim3,2oblu)),infinity) of p3
6621 ..subpath(rundy(p2,(tim4,2oblu)),infinity) of p2..cycle;
6622 penlabels(1,2,3,4,5,6,7,8,9,11); labels(10);
6623 math_fit(-u#,u#);
6624 endchar;
6625