Debian Codegraph @

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

raw
1 %Boisik Latin letters in italic form
2
3 def mft = -.5bar_height#*slant enddef;
4
5 charscription(10.5u,x_height,0)(
6 path p[]; numeric tim[]; oblu:=2oblu;
7 pos1(stem,0); pos2(stem,0);
8 x1=x2; rt x2r=w-2.5u;
9 top y1=h-hair; y2=.35bar_height;
10 pos4(hair,90); pos5(curve,180); pos6(.5[hair,stem],-90);
11 pos7(stem,0); x7=x1; y7=.5bar_height;
12 top y4r=h+o; x4=.5w+u; y5=bar_height; lft x5r=u;
13 bot y6r=-o; x6=x4-u;
14 p0=z4r{left}..z5r..z6r..{up}z7r;
15 ital_hook(2,3);
16 p1=_ih;
17 p2=z4l{left}..z5l..z6l..{up}z7l---z1l;
18 (tim0,tim1)=p0 intersectiontimes p1;
19 filldraw subpath(rundy(p1,tim1),infinity) of p1---z1r
20 ..subpath(0,rundy(p0,tim0).zpet) of p0..cycle;
21 infill p2..cycle;
22 penlabels(0,1,2,4,5,6,7);
23 );
24
25 iff known chars.latin_a:
26 bskchar "The italic letter a";
27 beginchar(chars.latin_a,10.5u#,x_height#,0); uni "0x0061";
28 italcorr x_height#*slant-1.25u#;
29 adjust_fit(0,0);
30 pickup tiny.nib;
31 usechar;
32 math_fit(mft+.5u#,ic#+.5u#);
33 endchar;
34
35 iff known chars.latin_aacute:
36 bskchar "The italic letter a with acute";
37 beginchar(chars.latin_aacute,10.5u#,asc_height#,0); uni "0x00E1";
38 italcorr asc_height#*slant-1.25u#;
39 adjust_fit(0,0);
40 pickup tiny.nib;
41 usechar;
42 .5[x100,x101]=x4; acute(100,101);
43 endchar;
44
45 iff known chars.latin_agrave:
46 bskchar "The italic letter a with grave";
47 beginchar(chars.latin_agrave,10.5u#,asc_height#,0); uni "0x00E0";
48 italcorr x_height#*slant-1.25u#;
49 adjust_fit(0,0);
50 pickup tiny.nib;
51 usechar;
52 x101=x1; grave(100,101);
53 endchar;
54
55 iff known chars.latin_aumlaut:
56 bskchar "The italic letter a with umlaut";
57 beginchar(chars.latin_aumlaut,10.5u#,asc_height#-dot_size#,0); uni "0x00E4";
58 italcorr (asc_height#-dot_size#)*slant-u#;
59 adjust_fit(0,0);
60 pickup tiny.nib;
61 usechar;
62 .5[x100,x101]=x6; x101-x100=1/3w; umlaut(100,101);
63 endchar;
64
65 iff known chars.latin_adoublegrave:
66 bskchar "The italic letter a with doublegrave";
67 beginchar(chars.latin_adoublegrave,10.5u#,asc_height#,0); uni "0x0201";
68 italcorr x_height#*slant-.5u#;
69 pickup tiny.nib;
70 adjust_fit(0,0);
71 usechar;
72 x102-x100=3u;
73 d_grave(100,101,102,103,x6);
74 endchar;
75
76 iff known chars.latin_acircumflex:
77 bskchar "The italic letter a with circumflex";
78 beginchar(chars.latin_acircumflex,10.5u#,asc_height#-.1x_height#,0); uni "0x00E2";
79 italcorr .5[asc_height#,x_height#]*slant;
80 adjust_fit(0,0);
81 pickup tiny.nib;
82 usechar;
83 x101=x4;
84 circumflex(100,101,102);
85 endchar;
86
87 iff known chars.latin_acaron:
88 bskchar "The italic letter a with caron";
89 beginchar(chars.latin_acaron,10.5u#,asc_height#,0); uni "0x01CE";
90 italcorr asc_height#*slant;
91 adjust_fit(0,0);
92 pickup tiny.nib;
93 usechar;
94 x101=x4;
95 hacek(100,101,102);
96 endchar;
97
98 iff known chars.latin_abreve:
99 bskchar "The italic letter a with breve";
100 beginchar(chars.latin_abreve,10.5u#,asc_height#+apex_o#,0); uni "0x0103";
101 italcorr asc_height#*slant;
102 adjust_fit(0,0);
103 pickup tiny.nib;
104 usechar;
105 x101=x4; x102-x100=5u;
106 breve(100,101,102);
107 endchar;
108
109 iff known chars.latin_ainvbreve:
110 bskchar "The italic letter a with inverted breve";
111 beginchar(chars.latin_ainvbreve,10.5u#,asc_height#,0); uni "0x0203";
112 italcorr .5[asc_height#,x_height#]*slant;
113 adjust_fit(0,0);
114 pickup tiny.nib;
115 usechar;
116 x101=x4; x102-x100=5u;
117 tieacc(100,101,102);
118 endchar;
119
120 iff known chars.latin_amacron:
121 bskchar "The italic letter a with macron";
122 beginchar(chars.latin_amacron,10.5u#,.5[asc_height#,x_height#],0); uni "0x0101";
123 italcorr .5[asc_height#,x_height#]*slant-u#;
124 adjust_fit(0,0);
125 pickup tiny.nib;
126 usechar;
127 macron(100,101);
128 endchar;
129
130 iff known chars.latin_atilde:
131 bskchar "The italic letter a with tilde";
132 beginchar(chars.latin_atilde,10.5u#,asc_height#,0); uni "0x00E3";
133 italcorr asc_height#*slant-.5u#;
134 adjust_fit(0,0);
135 pickup tiny.nib;
136 usechar;
137 x101-x100=6u; lft x.tilde=x6;
138 tilde(100,101);
139 endchar;
140
141 iff known chars.latin_aring:
142 bskchar "The italic letter a with ring";
143 beginchar(chars.latin_aring,10.5u#,asc_height#,0); uni "0x00E5";
144 italcorr .5[asc_height#,x_height#]*slant-u#;
145 adjust_fit(0,0);
146 pickup tiny.nib;
147 usechar;
148 lft x100=x4; x100-x101=1.3u;
149 ring(100,101);
150 endchar;
151
152 iff known chars.latin_adotabove:
153 bskchar "The italic letter a with dot above";
154 beginchar(chars.latin_adotabove,10.5u#,asc_height#-.5dot_size#,0); uni "0x0227";
155 italcorr x_height#*slant-u#;
156 adjust_fit(0,0);
157 pickup tiny.nib;
158 usechar;
159 x100=x4;
160 dotabove(100);
161 endchar;
162
163 iff known chars.latin_a_feminine:
164 bskchar "Feminine ordinal indicator (superscript italic a)";
165 beginchar(chars.latin_a_feminine,6.25u#,asc_height#-.5x_height#,0); uni "0x00AA";
166 italcorr asc_height#*slant;
167 adjust_fit(0,0);
168 pickup tiny.nib;
169 multiply(.85)(curve,hair,vair);
170 usechar shifted (-u,-y6r) scaled .5 shifted (u+HH*slant,HH);
171 endchar;
172
173 iff known chars.latin_aogonek:
174 bskchar "The italic letter a with ogonek";
175 beginchar(chars.latin_a,10.5u#,x_height#,.85desc_depth#); uni "0x0105";
176 italcorr x_height#*slant-1.25u#;
177 adjust_fit(0,0);
178 pickup tiny.nib;
179 path p[]; numeric tim[]; oblu:=2oblu;
180 pos1(stem,0); pos2(stem,0);
181 x1=x2; rt x2r=w-2.5u;
182 top y1=h-hair; y2=.35bar_height;
183 pos4(hair,90); pos5(curve,180); pos6(.5[hair,stem],-90);
184 pos7(stem,0); x7=x1; y7=.5bar_height;
185 pos8(stem,0); pos9(curve,0); pos10(hair,45); pos11(hair,160);
186 top y4r=h+o; x4=.5w+u; y5=bar_height; lft x5r=u;
187 bot y6r=-o; x6=x4-u;
188 x8=x9l+1.5u; z8r=z2'l; x10-x9l=3u; rt x11l=x10+1.5u;
189 y9=-.5d; bot y10l=-d; y11=-2/3d;
190 p0=z4r{left}..z5r..z6r..{up}z7r;
191 ital_hook(2,3);
192 p1=_ih;
193 p2=z4l{left}..z5l..z6l..{up}z7l---z1l;
194 p3=z8l{z9l-z8r}..z9l...z10l..{z8-z9}z11l..z11r{z9-z8}..z10r..z9r..z8r;
195 (tim2,tim3-2)=p1 intersectiontimes subpath(2,infinity) of p3;
196 (tim4,tim5)=p0 intersectiontimes p1;
197 filldraw subpath(rundy(p3,0),rundy(p3,tim3).zpet) of p3
198 ..subpath(rundy(p1,tim2),infinity) of p1---z1r
199 ..subpath(0,rundy(p0,tim4).zpet) of p0..cycle;
200 infill p2..cycle;
201 penlabels(0,1,2,4,5,6,7,8,9,10,11);
202 endchar;
203
204 iff known chars.latin_b:
205 bskchar "The italic letter b";
206 beginchar(chars.latin_b,11.25u#,asc_height#,0); uni "0x0062";
207 italcorr bar_height#*slant;
208 adjust_fit(serif_fit#,0);
209 pickup tiny.nib;
210 numeric tim[]; path p[]; oblu:=3oblu;
211 pos1(stem,0); pos2(stem,0);
212 x1=x2; lft x1l=2.75u;
213 y1=h; y2=.5bar_height;
214 ital_serif(1,2);
215 pos3(.5[hair,stem],90); pos4(curve,180);
216 pos5(hair,-90); pos6(stem,0);
217 x3=.5[w-u,x2]-u; bot y3l=-o;
218 rt x4l=w-u; y4=bar_height;
219 x5=x3+1.5u; top y5l=x_height+o;
220 x6=x2; y6=.5bar_height;
221 p0=z2r--z1r;
222 p1=z2l..z3l..z4l..{left}z5l..{down}z6l;
223 (tim0,tim1)=p0 intersectiontimes p1;
224 filldraw subpath(rundy(p0,tim0),infinity) of p0.._is---subpath(0,rundy(p1,tim1).zpet) of p1..cycle;
225 infill z6r{down}..z3r..z4r..{left}z5r..cycle;
226 math_fit(-x_height#*slant,ic#);
227 penlabels(1,2,3,4,5,6);
228 endchar;
229
230 iff known chars.sign_blank_b:
231 bskchar "Blank italic b sign";
232 beginchar(chars.sign_blank_b,11.25u#,asc_height#,0); uni "0x2422";
233 italcorr bar_height#*slant;
234 adjust_fit(serif_fit#,0);
235 pickup tiny.nib;
236 numeric tim[]; path p[]; oblu:=3f_obl; oblu.light:=2f_obl;
237 pos1(stem,0); pos2(stem,0);
238 x1=x2; lft x1l=2.75u;
239 y1=h; y2=.5bar_height;
240 ital_serif(1,2);
241 pos3(.5[hair,stem],90); pos4(curve,180);
242 pos5(hair,-90); pos6(stem,0);
243 x3=.5[w-u,x2]-u; bot y3l=-o;
244 rt x4l=w-u; y4=bar_height;
245 x5=x3+1.5u; top y5l=x_height+o;
246 x6=x2; y6=.5bar_height;
247 lft x7=.5u; x8=.5w+u; y8=.6[x_height,h]; y7=x_height;
248 theta:=angle(z8-z7)+90;
249 pos7(bar,theta); pos8(bar,theta);
250 x7'l=x7'r=x1l; x8'l=x8'r=x1r; bskpoints(7,8,hair,hair);
251 z7'l=whatever[z7l,z8l]; z8'l=whatever[z7l,z8l];
252 z7'r=whatever[z7r,z8r]; z8'r=whatever[z7r,z8r];
253 p0=z2r---obl(8'l,2r,8l).light---z8ll..z8r---obl(8'r,8r,1r).light---z1r;
254 p1=z2l..z3l..z4l..{left}z5l..{down}z6l;
255 (tim0,tim1)=p0 intersectiontimes p1;
256 filldraw subpath(rundy(p0,tim0),infinity) of p0.._is
257 ---obl(7'r,1'',7r).light---z7rr..z7l
258 ---obl(7'l,7l,2l)---subpath(0,rundy(p1,tim1).zpet) of p1..cycle;
259 infill z6r{down}..z3r..z4r..{left}z5r..cycle; labels(8ll,7rr);
260 penlabels(1,2,3,4,5,6,7,7',8,8');
261 endchar;
262
263 charscription(9u,x_height,0)(
264 numeric cend; cend:=stem;
265 pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(cend,20);
266 pos0(hair,135);
267 lft x1l=u; y1=.5h; x2=.5w+u; x3=.5w+1.25u; bot y2l=-o; top y3l=h+o;
268 rt x0l=w-u; y0=.25h;
269 rt x4r=w-1.25u; top y4r=.9h;
270 z4'=z4l+.75stem*unitvector(z4-z3);
271 filldraw z0l{dir-100}..{left}z2l..z1l..{right}z3l..z4r..z4'..{up}z4l..
272 z3r{left}..z1r..{right}z2r..{dir80}z0r..cycle;
273 penlabels(0,1,2,3,4); labels(4');
274 );
275
276 iff known chars.latin_c:
277 bskchar "The italic letter c";
278 beginchar(chars.latin_c,9u#,x_height#,0); uni "0x0063";
279 italcorr .5[bar_height#,x_height#]*slant;
280 adjust_fit(0,0);
281 pickup tiny.nib;
282 usechar;
283 math_fit(mft,ic#);
284 endchar;
285
286 iff known chars.latin_ccaron:
287 bskchar "The italic letter c with caron";
288 beginchar(chars.latin_ccaron,9u#,asc_height#,0); uni "0x010D";
289 italcorr asc_height#*slant;
290 adjust_fit(0,0);
291 pickup tiny.nib;
292 usechar;
293 x101=x3;
294 hacek(100,101,102);
295 endchar;
296
297 iff known chars.latin_cacute:
298 bskchar "The italic letter c with acute";
299 beginchar(chars.latin_cacute,9u#,asc_height#,0); uni "0x0107";
300 italcorr asc_height#*slant;
301 adjust_fit(0,0);
302 pickup tiny.nib;
303 usechar;
304 x100=x4;
305 acute(100,101);
306 endchar;
307
308 iff known chars.latin_ccircumflex:
309 bskchar "The italic letter c with circumflex";
310 beginchar(chars.latin_ccircumflex,9u#,asc_height#-.1x_height#,0); uni "0x0109";
311 italcorr asc_height#*slant;
312 adjust_fit(0,0);
313 pickup tiny.nib;
314 usechar;
315 lft x101=x3;
316 circumflex(100,101,102);
317 endchar;
318
319 iff known chars.latin_cdotabove:
320 bskchar "The italic letter c with dot above";
321 beginchar(chars.latin_cdotabove,9u#,asc_height#-.5dot_size#,0); uni "0x010B";
322 italcorr x_height#*slant;
323 adjust_fit(0,0);
324 pickup tiny.nib;
325 usechar;
326 x100=x3;
327 dotabove(100);
328 endchar;
329
330 iff known chars.latin_ccedilla:
331 bskchar "The italic letter c with cedilla";
332 beginchar(chars.latin_ccedilla,9u#,x_height#,.65desc_depth#); uni "0x00E7";
333 italcorr .5[bar_height#,x_height#]*slant;
334 adjust_fit(0,0);
335 pickup tiny.nib;
336 numeric cend, tim[]; cend:=stem;
337 path p[];
338 pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(cend,20);
339 pos0(hair,135);
340 pos5(.5stem,0); pos6(.5stem,0); pos7(.8stem,0); pos8(.5stem,-110);
341 lft x1l=u; y1=.5h; x2=.5w+u; x3=.5w+1.25u; bot y2l=-o; top y3l=h+o;
342 rt x0l=w-u; y0=.25h;
343 rt x4r=w-1.25u; top y4r=.9h;
344 z4'=z4l+.75stem*unitvector(z4-z3);
345 x5r=x6r; z5r=z2l; y6=-hair; y7=-.5d;
346 rt x7r-lft x8r=4u; x5r-lft x8r=2u; y8r=-d;
347 p1:=z0l{dir-100}..{left}z2l..z1l..{right}z3l;
348 p2:=z6r..{down}z7r..{left}z8r..{right}z8l..{up}z7l..z6l--z5l;
349 p3:=z5r{down}..subpath (rundy(p2,(0,curve)),infinity) of p2;
350 tim1=xpart(p1 intersectiontimes (z6l--(x6l,y2r)));
351 filldraw subpath(0,rundy(p1,1).zpet) of p1..subpath(rundy(p3,0),rundy(p3,infinity).zpet) of p3..subpath(rundy(p1,tim1),infinity) of p1..z4r..z4'..{up}z4l..
352 z3r{left}..z1r..{right}z2r..{dir80}z0r..cycle;
353 penlabels(0,1,2,3,4,5,6,7,8); labels(4');
354 endchar;
355
356 iff known chars.sign_cent:
357 bskchar "Cent sign";
358 beginchar(chars.sign_cent,9u#,asc_height#,comma_depth#); uni "0x00A2";
359 italcorr x_height#*slant;
360 adjust_fit(0,0);
361 pickup tiny.nib;
362 numeric cend, tim[]; cend:=stem;
363 path p[];
364 pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(cend,20);
365 pos0(hair,135);
366 lft x1l=u; y1=.5x_height; x2=.5w+u; x3=.5w+1.25u; bot y2l=-o; top y3l=x_height+o;
367 rt x0l=w-u; y0=.25x_height;
368 rt x4r=w-1.25u; top y4r=.9x_height;
369 z4'=z4l+.75stem*unitvector(z4-z3);
370 top z5=(x3,h); z6=(x3,-d); pos5(hair, angle(z6-z5)+90); pos6(hair,angle(z6-z5)+90);
371 bskpoints(5,6,hair,hair);
372 p0:=z0l{dir-100}..{left}z2l..z1l..{right}z3l..z4r..z4'..{up}z4l;
373 p1:=z4l{up}..z3r{left}..z1r..{right}z2r..{dir80}z0r;
374 p2:=z6ll---z5l;
375 p3:=z5rr---z6r;
376 (tim0,tim1)=p0 intersectiontimes p3;
377 (tim2,tim3)=p0 intersectiontimes p2;
378 (tim4-2,tim5)=subpath (2,infinity) of p0 intersectiontimes p2;
379 (tim6-2,tim7)=subpath (2,infinity) of p0 intersectiontimes p3;
380 (tim8,tim9)=p1 intersectiontimes p3;
381 (tim10-2,tim11)=subpath(2,infinity) of p1 intersectiontimes p3;
382 (tim12,tim13)=p1 intersectiontimes p2;
383 (tim14-2,tim15)=subpath(2,infinity) of p1 intersectiontimes p2;
384 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
385 ..subpath(rundy(p3,tim1),infinity) of p3
386 ---subpath(0,rundy(p2,tim3).zpet) of p2
387 ..subpath(rundy(p0,tim2),rundy(p0,tim4).zpet) of p0
388 ..subpath(rundy(p2,tim5),infinity) of p2
389 ..subpath(0,rundy(p3,tim7).zpet) of p3
390 ..subpath(rundy(p0,tim6),infinity) of p0
391 ..subpath(0,rundy(p1,tim8).zpet) of p1
392 ..subpath(rundy(p3,tim9),rundy(p3,tim11).zpet) of p3
393 ..subpath(rundy(p1,tim10),infinity) of p1..cycle;
394 infill subpath(rundy(p1,tim12),rundy(p1,tim14).zpet) of p1
395 ..subpath(rundy(p2,tim15),rundy(p2,tim13).zpet) of p2
396 ..cycle;
397 penlabels(0,1,2,3,4,5,6); labels(4');
398 endchar;
399
400 iff known chars.sign_cent_old:
401 bskchar "Old style cent sign";
402 beginchar(chars.sign_cent,9u#,asc_height#,comma_depth#); uni "non";
403 italcorr asc_height#*slant;
404 adjust_fit(0,0);
405 pickup tiny.nib;
406 numeric cend, tim[]; cend:=stem;
407 path p[];
408 pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(cend,20);
409 pos0(hair,135);
410 lft x1l=u; y1=.5x_height; x2=.5w+u; x3=.5w+1.25u; bot y2l=-o; top y3l=x_height+o;
411 rt x0l=w-u; y0=.25x_height;
412 rt x4r=w-1.25u; top y4r=.9x_height;
413 z4'=z4l+.75stem*unitvector(z4-z3);
414 z5=(w-u,h); z6=(u,-d); pos5(hair, angle(z6-z5)+90); pos6(hair,angle(z6-z5)+90);
415 bskpoints(5,6,hair,hair);
416 p0:=z0l{dir-100}..{left}z2l..z1l..{right}z3l..z4r..z4'..{up}z4l;
417 p1:=z4l{up}..z3r{left}..z1r..{right}z2r..{dir80}z0r;
418 p2:=z6ll---z5l;
419 p3:=z5rr---z6r;
420 (tim0,tim1)=p0 intersectiontimes p3;
421 (tim2,tim3)=p0 intersectiontimes p2;
422 (tim4-2,tim5)=subpath (2,infinity) of p0 intersectiontimes p2;
423 (tim6-2,tim7)=subpath (2,infinity) of p0 intersectiontimes p3;
424 (tim8,tim9)=p1 intersectiontimes p3;
425 (tim10-2,tim11)=subpath(2,infinity) of p1 intersectiontimes p3;
426 (tim12,tim13)=p1 intersectiontimes p2;
427 (tim14-2,tim15)=subpath(2,infinity) of p1 intersectiontimes p2;
428 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
429 ..subpath(rundy(p3,tim1),infinity) of p3
430 ---subpath(0,rundy(p2,tim3).zpet) of p2
431 ..subpath(rundy(p0,tim2),rundy(p0,tim4).zpet) of p0
432 ..subpath(rundy(p2,tim5),infinity) of p2
433 ..subpath(0,rundy(p3,tim7).zpet) of p3
434 ..subpath(rundy(p0,tim6),infinity) of p0
435 ..subpath(0,rundy(p1,tim8).zpet) of p1
436 ..subpath(rundy(p3,tim9),rundy(p3,tim11).zpet) of p3
437 ..subpath(rundy(p1,tim10),infinity) of p1..cycle;
438 infill subpath(rundy(p1,tim12),rundy(p1,tim14).zpet) of p1
439 ..subpath(rundy(p2,tim15),rundy(p2,tim13).zpet) of p2
440 ..cycle;
441 penlabels(0,1,2,3,4,5,6); labels(4');
442 endchar;
443
444 charscription(11u,asc_height,0)(
445 numeric tim[]; path p[]; oblu:=3oblu;
446 pos1(stem,0); pos2(stem,0);
447 x1=x2; rt x1r=w-2u; x1'l=x1l-2stem;
448 y1=h; y2=.35bar_height;
449 ital_serif(1,2); ital_hook(2,3);
450 pos4(hair,-90); pos5(curve,180);
451 pos6(.5[hair,stem],90); pos7(stem,0);
452 x4=.5[u,x2]-u; bot y4r=-o;
453 lft x5r=u; y5=bar_height;
454 x6=x4+1.5u; top y6r=x_height+o;
455 x7=x2; y7=bar_height;
456 p0=z7l--reverse _is;
457 p1=z7r{down}..z4r..z5r..{right}z6r..{down}z7r;
458 p2=reverse _ih..z7l;
459 (tim0,tim1)=p0 intersectiontimes p1;
460 (tim2-1,tim3)=subpath(1,infinity) of p2 intersectiontimes p1;
461 filldraw subpath(rundy(p0,tim0),infinity) of p0
462 ---subpath(0,rundy(p2,tim2).zpet) of p2
463 ..subpath(rundy(p1,tim3),rundy(p1,tim1).zpet) of p1
464 ..cycle;
465 infill z7l{down}..z4l..z5l..{right}z6l..cycle;
466 penlabels(1,2,4,5,6,7);
467 );
468
469 iff known chars.latin_d:
470 bskchar "The italic letter d";
471 beginchar(chars.latin_d,11u#,asc_height#,0); uni "0x0064";
472 italcorr asc_height#*slant-.5u#;
473 adjust_fit(0,0);
474 pickup tiny.nib;
475 usechar;
476 math_fit(mft+.5u#,ic#);
477 endchar;
478
479 iff known chars.latin_dcaron:
480 bskchar "The italic letter d with caron (treated like comma)";
481 beginchar(chars.latin_dcaron,11u#,asc_height#,0); uni "0x010F";
482 italcorr asc_height#*slant+1.25u#;
483 adjust_fit(0,0);
484 pickup tiny.nib;
485 usechar;
486 y100''r=h; rt x100'''=w+.5u;
487 comma(100,.75dot_size,.5hair,.75comma_depth);
488 endchar;
489
490 iff known chars.latin_dstroke:
491 bskchar "The italic letter d with stroke";
492 beginchar(chars.latin_dstroke,11u#,asc_height#,0); uni "0x0111";
493 italcorr .4[x_height#,asc_height#]*slant+.5u#;
494 adjust_fit(0,0);
495 pickup tiny.nib;
496 numeric tim[]; path p[];
497 pos1(stem,0); pos2(stem,0);
498 pos8(bar,90); pos8'(bar,90); pos9(bar,90); pos9'(bar,90);
499 x1=x2; rt x1r=w-2u; x1'l=x1l-2stem;
500 y1=h; y2=.35bar_height;
501 ital_serif(1,2); ital_hook(2,3);
502 pos4(hair,-90); pos5(curve,180);
503 pos6(.5[hair,stem],90); pos7(stem,0);
504 x4=.5[u,x2]-u; bot y4r=-o;
505 lft x5r=u; y5=bar_height;
506 x6=x4+1.5u; top y6r=x_height+o;
507 x7=x2; y7=bar_height;
508 x9-x8=4u; y9=y9'=y8=y8'=.4[x_height,h]; .5[x8,x9]=x1;
509 x8'=x1l; x9'=x1r; bskpoints(8,9,hair,hair);
510 p0=z7l---obl(8'l,7l,8l)---z8l..z8rr---obl(8'r,8r,1l)---reverse _is
511 ---obl(9'r,1r,9r)---z9r..z9ll---obl(9'l,9l,2r);
512 p1=z7r{down}..z4r..z5r..{right}z6r..{down}z7r;
513 p2=reverse _ih..z7l;
514 (tim0,tim1)=p0 intersectiontimes p1;
515 (tim2-1,tim3)=subpath(1,infinity) of p2 intersectiontimes p1;
516 oblu:=3oblu;
517 filldraw subpath(rundy(p0,tim0),infinity) of p0
518 ---subpath(0,rundy(p2,tim2).zpet) of p2
519 ..subpath(rundy(p1,tim3),rundy(p1,tim1).zpet) of p1
520 ..cycle;
521 infill z7l{down}..z4l..z5l..{right}z6l..cycle;
522 penlabels(1,2,4,5,6,7,8,8',9,9'); labels(8rr,9ll);
523 endchar;
524
525 iff known chars.sign_dong:
526 bskchar "Dong sign";
527 beginchar(chars.sign_dong,11u#,asc_height#,2rule_thickness#+o#); uni "0x20AB";
528 italcorr .4[x_height#,asc_height#]*slant+.5u#;
529 adjust_fit(0,0);
530 pickup tiny.nib;
531 numeric tim[]; path p[];
532 pos1(stem,0); pos2(stem,0);
533 pos8(bar,90); pos8'(bar,90); pos9(bar,90); pos9'(bar,90);
534 pos10(rule_thickness,90); pos11(rule_thickness,90);
535 x1=x2; rt x1r=w-2u; x1'l=x1l-2stem;
536 y1=h; y2=.35bar_height;
537 ital_serif(1,2); ital_hook(2,3);
538 pos4(hair,-90); pos5(curve,180);
539 pos6(.5[hair,stem],90); pos7(stem,0);
540 x4=.5[u,x2]-u; bot y4r=-o;
541 lft x5r=u; y5=bar_height;
542 x6=x4+1.5u; top y6r=x_height+o;
543 x7=x2; y7=bar_height;
544 x8=.5[x5,x6]; rt x9=w-.5u; y9=y9'=y8=y8'=.4[x_height,h];
545 x8'=x1l; x9'=x1r; bskpoints(8,9,hair,hair);
546 bot y10l=bot y11l=-d; lft x10=u; rt x11=w-u;
547 p0=z7l---obl(8'l,7l,8l)---z8l..z8rr---obl(8'r,8r,1l)---reverse _is
548 ---obl(9'r,1r,9r)---z9r..z9ll---obl(9'l,9l,2r);
549 p1=z7r{down}..z4r..z5r..{right}z6r..{down}z7r;
550 p2=reverse _ih..z7l;
551 (tim0,tim1)=p0 intersectiontimes p1;
552 (tim2-1,tim3)=subpath(1,infinity) of p2 intersectiontimes p1;
553 oblu:=3oblu;
554 filldraw subpath(rundy(p0,tim0),infinity) of p0
555 ---subpath(0,rundy(p2,tim2).zpet) of p2
556 ..subpath(rundy(p1,tim3),rundy(p1,tim1).zpet) of p1
557 ..cycle;
558 infill z7l{down}..z4l..z5l..{right}z6l..cycle;
559 filldraw bskrule(10,11,rule_thickness,rule_thickness);
560 penlabels(1,2,4,5,6,7,8,8',9,9'); labels(8rr,9ll);
561 endchar;
562
563 iff known chars.latin_eth:
564 bskchar "The italic letter eth";
565 beginchar(chars.latin_eth,10u#,asc_height#,0); uni "0x00F0";
566 italcorr bar_height#*slant;
567 adjust_fit(0,0);
568 pickup tiny.nib;
569 path p[]; numeric tim[], theta; oblu:=2oblu;
570 pos1(curve,0); pos2(hair,90); pos3(hair,180); pos4(hair,270);
571 pos5(curve,180); pos6(hair,-90);
572 lft x1l=u; y1=y3=.5x_height; x2=x4=.5w+.5hair; bot y2l=-o; .5[y4r,y2r]=y3;
573 rt x5l=w-u; y5l=y3l+stem; top y6l=h+o; lft x6=u;
574 p0=z2r{right}..z5r..{dir170}z6r; x3l=xpart (((w,y3)--(.5w,y3))intersectionpoint p0);
575 p1=z2l{left}..z1l..z4l..{down}z3l;
576 p2=z2r{right}..z5r..{dir170}z6r;
577 z0=bsktouch(p1,right,p2,left);
578 tim1=xpart(p1 intersectiontimes (z0--(x4,y0)));
579 tim2=xpart(p2 intersectiontimes (z0--(w,y0)));
580 p3:=z6l{dir-10}..z5l..{left}z2l;
581 p4:=z2l{left}..subpath(0,rundy(p1,tim1).zpet) of p1..subpath(rundy(p2,tim2),infinity) of p2;
582 tim0=xpart(p3 intersectiontimes ((0,.5[x_height,h])--(w,.5[x_height,h])));
583 top y8=h; x8=.5[x5,x4]; z7=z8+5u*unitvector(((direction tim0 of p3) rotated -95));
584 if y7<y4l+o: y7:=y7+hair; fi
585 theta:=angle(z8-z7)+90;
586 pos7(bar,theta); pos8(bar,theta); bskpoints(7,8,bar,bar);
587 p5:=z7rr---z8r;
588 p6:=z8ll---z7l;
589 (tim3,tim4)=p3 intersectiontimes p5;
590 (tim5,tim6)=p3 intersectiontimes p6;
591 (tim7,tim8)=p4 intersectiontimes p6;
592 (tim9,tim10)=p4 intersectiontimes p5;
593 filldraw subpath(0,rundy(p3,tim3).zpet) of p3
594 ..subpath(rundy(p5,tim4),infinity) of p5
595 ..{z7l-z8l}z8ll..subpath(rundy(p3,(tim5,2hair)),infinity) of p3
596 ..subpath(0,rundy(p4,tim7).zpet) of p4
597 ..subpath(rundy(p6,tim8),infinity) of p6
598 ..subpath(0,rundy(p5,tim10).zpet) of p5
599 ..subpath(rundy(p4,tim9),infinity) of p4..cycle;
600 infill z1r{up}..z4r..z3r..z2r..cycle;
601 penlabels(1,2,3,4,5,6,7,8); labels(7rr,8ll);
602 endchar;
603
604 charscription(8.5u,x_height,0)(
605 numeric tim[]; path p[]; oblu:=2oblu;
606 pair esmer;
607 pos1(curve,0); pos2(hair,90); pos3(hair,270);
608 pos0(hair,135);
609 lft x1l=u; y1=.5h; x2=.5w+u; x3=.5w+1.25u; bot y2l=-o; top y3l=h+o;
610 rt x0l=w-u; y0=.2h;
611 rt x4l=w-u; top y4l=.9h;
612 pos4(.5[hair,stem],angle(z4l-z1)+180); pos5(hair,angle(z4-z1)+90);
613 z5r=z1; esmer=(z1-z4) rotated -10;
614 p1=z0l{dir-100}..{left}z2l..z1l..{right}z3l..z4l..{esmer}z5l;
615 p2=z5r{-esmer}..z4r..z3r{left}..z1r..{right}z2r..{dir80}z0r;
616 (tim1,tim2-2)=p1 intersectiontimes subpath(2,4) of p2;
617 (tim3,tim4-1)=p2 intersectiontimes subpath(1,infinity) of p2;
618 filldraw subpath(0,rundy(p1,tim1).zpet) of p1
619 ..subpath(rundy(p2,tim2),infinity) of p2..cycle;
620 infill subpath(rundy(p2,tim3),rundy(p2,tim4).zpet) of p2..cycle;
621 penlabels(0,1,2,3,4,5);
622 );
623
624 iff known chars.latin_e:
625 bskchar "The italic letter e";
626 beginchar(chars.latin_e,8.5u#,x_height#,0); uni "0x0065";
627 italcorr .5[bar_height#,x_height#]*slant;
628 adjust_fit(0,0);
629 pickup tiny.nib;
630 usechar;
631 math_fit(mft,ic#);
632 endchar;
633
634 iff known chars.latin_eacute:
635 bskchar "The italic letter e with acute";
636 beginchar(chars.latin_eacute,8.5u#,asc_height#,0); uni "0x00E9";
637 italcorr asc_height#*slant-.5u#;
638 adjust_fit(0,0);
639 pickup tiny.nib;
640 x101=x3-u;
641 usechar;
642 acute(100,101);
643 endchar;
644
645 iff known chars.latin_ecaron:
646 bskchar "The italic letter e with caron";
647 beginchar(chars.latin_ecaron,8.5u#,asc_height#,0); uni "0x011B";
648 italcorr asc_height#*slant+.5u#;
649 adjust_fit(0,0);
650 pickup tiny.nib;
651 usechar;
652 x101=x3;
653 hacek(100,101,102);
654 endchar;
655
656 iff known chars.latin_egrave:
657 bskchar "The italic letter e with grave";
658 beginchar(chars.latin_egrave,8.5u#,asc_height#,0); uni "0x00E8";
659 italcorr .5[bar_height#,x_height#]*slant;
660 adjust_fit(0,0);
661 pickup tiny.nib;
662 usechar;
663 x101r=x3;
664 grave(100,101);
665 endchar;
666
667 iff known chars.latin_edoublegrave:
668 bskchar "The italic letter e with double grave";
669 beginchar(chars.latin_edoublegrave,8.5u#,asc_height#,0); uni "0x0205";
670 italcorr asc_height#*slant-.75u#;
671 adjust_fit(0,0);
672 pickup tiny.nib;
673 usechar;
674 x102-x100=3u; x102r=x3;
675 d_grave(100,101,102,103,whatever);
676 endchar;
677
678 iff known chars.latin_ecircumflex:
679 bskchar "The italic letter e with circumflex";
680 beginchar(chars.latin_ecircumflex,8.5u#,asc_height#-.1x_height#,0); uni "0x00EA";
681 italcorr asc_height#*slant;
682 adjust_fit(0,0);
683 pickup tiny.nib;
684 usechar;
685 x101=x3;
686 circumflex(100,101,102);
687 endchar;
688
689 iff known chars.latin_eumlaut:
690 bskchar "The italic letter e with umlaut";
691 beginchar(chars.latin_eumlaut,8.5u#,asc_height#-dot_size#,0); uni "0x00EB";
692 italcorr (asc_height#-dot_size#)*slant;
693 adjust_fit(0,0);
694 pickup tiny.nib;
695 usechar;
696 .5[x100,x101]=x3; x101-x100=3u;
697 umlaut(100,101);
698 endchar;
699
700 iff known chars.latin_emacron:
701 bskchar "The italic letter e with macron";
702 beginchar(chars.latin_emacron,8.5u#,.5[asc_height#,x_height#],0); uni "0x0113";
703 italcorr .5[asc_height#,x_height#]*slant+.25u#;
704 adjust_fit(0,0);
705 pickup tiny.nib;
706 usechar;
707 x100=x1r;
708 macron(100,101);
709 endchar;
710
711 iff known chars.latin_edotabove:
712 bskchar "The italic letter e with dot above";
713 beginchar(chars.latin_edotabove,8.5u#,asc_height#-.5dot_size#,0); uni "0x0117";
714 italcorr x_height#*slant;
715 adjust_fit(0,0);
716 pickup tiny.nib;
717 usechar;
718 x100=x3;
719 dotabove(100);
720 endchar;
721
722 iff known chars.latin_ebreve:
723 bskchar "The italic letter e with breve";
724 beginchar(chars.latin_ebreve,8.5u#,asc_height#,0); uni "0x0115";
725 italcorr asc_height#*slant+.25u#;
726 adjust_fit(0,0);
727 pickup tiny.nib;
728 usechar;
729 x101=x3; x102-x100=5u;
730 breve(100,101,102);
731 endchar;
732
733 iff known chars.latin_einvbreve:
734 bskchar "The italic letter e with inverted breve";
735 beginchar(chars.latin_einvbreve,8.5u#,asc_height#+o#,0); uni "0x0207";
736 italcorr asc_height#*slant;
737 adjust_fit(0,0);
738 pickup tiny.nib;
739 usechar;
740 x101=x3; x102-x100=5u;
741 tieacc(100,101,102);
742 endchar;
743
744 iff known chars.latin_eogonek:
745 bskchar "The italic letter e with ogonek";
746 beginchar(chars.latin_e,8.5u#,x_height#,.85desc_depth#); uni "0x0119";
747 italcorr .5[bar_height#,x_height#]*slant;
748 adjust_fit(0,0);
749 pickup tiny.nib;
750 numeric tim[]; path p[]; oblu:=2oblu;
751 pair esmer;
752 pos1(curve,0); pos2(hair,90); pos3(hair,270); pos0(hair,135);
753 pos6(stem,0); pos7(curve,0); pos8(hair,45); pos9(hair,160);
754 lft x1l=u; y1=.5h; x2=.5w+u; x3=.5w+1.25u; bot y2l=-o; top y3l=h+o;
755 rt x0l=w-u; y0=.2h;
756 rt x4l=w-u; top y4l=.9h;
757 pos4(.5[hair,stem],angle(z4l-z1)+180); pos5(hair,angle(z4-z1)+90);
758 z5r=z1; esmer=(z1-z4) rotated -10;
759 x6=x7l+1.5u; z6r=z2l; x8-x7l=3u; rt x9l=x8+1.5u;
760 y7=-.5d; bot y8l=-d; y9=-2/3d;
761 p1=z0l{dir-100}..{left}z2l..z1l..{right}z3l..z4l..{esmer}z5l;
762 p2=z5r{-esmer}..z4r..z3r{left}..z1r..{right}z2r..{dir80}z0r;
763 (tim1,tim2-2)=p1 intersectiontimes subpath(2,4) of p2;
764 (tim3,tim4-1)=p2 intersectiontimes subpath(1,infinity) of p2;
765 tim0=xpart(p1 intersectiontimes((x6l,-o)--(x6l,y2r)));
766 p3=reverse(z6l{z7l-z6r}..z7l...z8l..{z6-z7}z9l..z9r{z7-z6}..z8r..z7r..z6r);
767 filldraw subpath(0,rundy(p1,1).zpet) of p1
768 ..subpath(rundy(p3,0),rundy(p3,infinity).zpet) of p3
769 ..subpath(rundy(p1,tim0),rundy(p1,tim1).zpet) of p1
770 ..subpath(rundy(p2,tim2),infinity) of p2..cycle;
771 infill subpath(rundy(p2,tim3),rundy(p2,tim4).zpet) of p2..cycle;
772 penlabels(0,1,2,3,4,5,6,7,8,9);
773 endchar;
774
775 iff known chars.latin_ecedilla:
776 bskchar "The italic letter e with cedilla";
777 beginchar(chars.latin_ecedilla,8.5u#,x_height#,.65desc_depth#); uni "0x0229";
778 italcorr .5[bar_height#,x_height#]*slant;
779 adjust_fit(0,0);
780 pickup tiny.nib;
781 numeric tim[]; path p[]; oblu:=2oblu;
782 pair esmer;
783 pos1(curve,0); pos2(hair,90); pos3(hair,270); pos0(hair,135);
784 pos6(.5stem,0); pos7(.5stem,0); pos8(.8stem,0); pos9(.5stem,-110);
785 lft x1l=u; y1=.5h; x2=.5w+u; x3=.5w+1.25u; bot y2l=-o; top y3l=h+o;
786 rt x0l=w-u; y0=.2h;
787 rt x4l=w-u; top y4l=.9h;
788 pos4(.5[hair,stem],angle(z4l-z1)+180); pos5(hair,angle(z4-z1)+90);
789 z5r=z1; esmer=(z1-z4) rotated -10;
790 x6r=x7r; z6r=z2l; y7=-hair; y8=-.5d;
791 rt x8r-lft x9r=4u; x6r-lft x9r=2u; y9r=-d;
792 p1=z0l{dir-100}..{left}z2l..z1l..{right}z3l..z4l..{esmer}z5l;
793 p2=z5r{-esmer}..z4r..z3r{left}..z1r..{right}z2r..{dir80}z0r;
794 p3=z7r..{down}z8r..{left}z9r..{right}z9l..{up}z8l..z7l--z6l;
795 p4=z6r{down}..subpath (rundy(p2,(0,curve)),infinity) of p3;
796 tim0=xpart(p1 intersectiontimes (z7l--(x6l,y2r)));
797 (tim1,tim2-2)=p1 intersectiontimes subpath(2,4) of p2;
798 (tim3,tim4-1)=p2 intersectiontimes subpath(1,infinity) of p2;
799 filldraw subpath(0,rundy(p1,1).zpet) of p1
800 ..subpath(rundy(p4,0),rundy(p4,infinity).zpet) of p4..
801 subpath(rundy(p1,tim0),rundy(p1,tim1).zpet) of p1
802 ..subpath(rundy(p2,tim2),infinity) of p2..cycle;
803 infill subpath(rundy(p2,tim3),rundy(p2,tim4).zpet) of p2..cycle;
804 penlabels(0,1,2,3,4,5,6,7,8,9);
805 endchar;
806
807 iff known chars.latin_oe:
808 bskchar "The italic letter oe";
809 beginchar(chars.latin_oe,13.5u#,x_height#,0); uni "0x00E6";
810 italcorr .5[bar_height#,x_height#]*slant;
811 adjust_fit(0,0);
812 pickup tiny.nib;
813 numeric tim[]; path p[]; oblu:=2oblu;
814 pair esmer;
815 pos1(curve,0); pos2(hair,90); pos3(hair,270);
816 pos0(hair,135);
817 pos6(curve,0); pos7(hair,90); pos8(curve,180); pos9(hair,270);
818 lft x1l=6.5u; y1=.5h; x2=10.25u; x3-x2=.25u; bot y2l=bot y7l=-o; top y3l=top y9l=h+o;
819 rt x0l=w-u; y0=.2h;
820 rt x4l=w-u; top y4l=.9h;
821 pos4(.5[hair,stem],angle(z4l-z1)+180); pos5(hair,angle(z4-z1)+90);
822 z5r=z1; esmer=(z1-z4) rotated -10;
823 lft x6l=u; x8=x1; y6=y8=.5h; .5[x7,x9]=.5[x6,x8]; x7=x9;
824 x9r:=x9r+.25u; x7r:=x7r-.25u;
825 p1=z0l{dir-100}..{left}z2l..z1l..{right}z3l..z4l..{esmer}z5l;
826 p2=z5r{-esmer}..z4r..z3r{left}..z1r..{right}z2r..{dir80}z0r;
827 p3=z8l{down}..z7l..z6l{up}..z9l..{down}z8l;
828 (tim0,tim1)=p1 intersectiontimes p3;
829 (tim2,tim3-2)=p3 intersectiontimes subpath(2,3) of p1;
830 (tim4,tim5-2)=p1 intersectiontimes subpath(2,4) of p2;
831 (tim6,tim7-1)=p2 intersectiontimes subpath(1,infinity) of p2;
832 filldraw subpath(0,rundy(p1,tim0).zpet) of p1
833 ..subpath(rundy(p3,tim1),rundy(p3,tim2).zpet) of p3
834 ..subpath(rundy(p1,tim3),rundy(p1,tim4).zpet) of p1
835 ..subpath(rundy(p2,tim5),infinity) of p2..cycle;
836 infill subpath(rundy(p2,tim6),rundy(p2,tim7).zpet) of p2..cycle;
837 infill z6r{up}..z9r..{down}z8r..z7r..{up}cycle;
838 penlabels(0,1,2,3,4,5,6,7,8,9);
839 endchar;
840
841 charscription(13u,x_height,0)(
842 numeric tim[]; path p[]; oblu:=2oblu;
843 pair esmer;
844 pos1(curve,0); pos2(hair,90); pos3(hair,270);
845 pos0(hair,135); pos6(stem,0); pos7(stem,0);
846 pos9(hair,90); pos10(curve,180); pos11(.5[hair,stem],-90);
847 pos12(stem,0);
848 lft x1l=6u; y1=.5h; x2=10.25u; x3-x2=.25u; bot y2l=-o; top y3l=top y9r=h+o;
849 rt x0l=w-u; y0=.2h;
850 rt x4l=w-u; top y4l=.9h;
851 x6=x7=x1; x12=x6; y12=.5bar_height;
852 top y6=h-hair; y7=.35bar_height;
853 x9=x7-u; y10=bar_height; lft x10r=u;
854 bot y11r=-o; x11=x9-u;
855 pos4(.5[hair,stem],angle(z4l-z1)+180); pos5(hair,angle(z4-z1)+90);
856 z5r=z1; esmer=(z1-z4) rotated -10;
857 p1=z0l{dir-100}..{left}z2l..z1l..{right}z3l..z4l..{esmer}z5l;
858 p2=z5r{-esmer}..z4r..z3r{left}..z1r..{right}z2r..{dir80}z0r;
859 p3=z12r---z6r..z9r{left}..z10r..z11r..{up}z12r;
860 x8l=x0;
861 ital_hook(7,8);
862 p4=_ih;
863 p5=z9l{left}..z10l..z11l..{up}z12l---z6l;
864 (tim0,tim1)=p1 intersectiontimes p4;
865 (tim2,tim3)=p4 intersectiontimes p3;
866 (tim4-2,tim5)=subpath(2,infinity) of p1 intersectiontimes subpath (0,3) of p3;
867 (tim6,tim7-2)=p1 intersectiontimes subpath(2,4) of p2;
868 (tim8,tim9-1)=p2 intersectiontimes subpath(1,infinity) of p2;
869 filldraw subpath(0,rundy(p1,tim0).zpet) of p1
870 ..(reverse subpath(rundy(p4,(tim2,f_obl)),rundy(p4,tim1).zpet) of p4)
871 ..(reverse subpath(rundy(p3,tim5),rundy(p3,(tim3,f_obl)).zpet) of p3)
872 ..subpath(rundy(p1,tim4),rundy(p1,tim6).zpet) of p1
873 ..subpath(rundy(p2,tim7),infinity) of p2..cycle;
874 infill subpath(rundy(p2,tim8),rundy(p2,tim9).zpet) of p2..cycle;
875 infill p5..cycle;
876 penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12);
877 );
878
879 iff known chars.latin_ae:
880 bskchar "The italic letter ae";
881 beginchar(chars.latin_ae,13u#,x_height#,0); uni "0x0153";
882 italcorr .5[bar_height#,x_height#]*slant;
883 adjust_fit(0,0);
884 pickup tiny.nib;
885 usechar;
886 endchar;
887
888 iff known chars.latin_aemacron:
889 bskchar "The italic ligature ae with macron";
890 beginchar(chars.latin_aemacron,13u#,.5[asc_height#,x_height#],0); uni "0x01E3";
891 italcorr .5[bar_height#,x_height#]*slant;
892 adjust_fit(0,0);
893 pickup tiny.nib;
894 usechar;
895 x101=x3;
896 macron(100,101);
897 endchar;
898
899 iff known chars.latin_aeacute:
900 bskchar "The italic ligature ae with acute";
901 beginchar(chars.latin_aeacute,13u#,asc_height#,0); uni "0x01FD";
902 italcorr .5[bar_height#,x_height#]*slant;
903 adjust_fit(0,0);
904 pickup tiny.nib;
905 usechar;
906 x101=x6r;
907 acute(100,101);
908 endchar;
909
910 iff known chars.latin_f:
911 bskchar "The italic letter f";
912 beginchar(chars.latin_f,7u#,asc_height#,desc_depth#); uni "0x0066";
913 italcorr asc_height#*slant+3.5u#;
914 adjust_fit(0,0);
915 pickup tiny.nib;
916 oblu:=2oblu;
917 pos1(stem,0); pos2(stem,0); pos3(hair,-90);
918 pos4(hair,-90); pos5(stem,-150); pos6(stem,30);
919 x1=x2; x1=.5w;
920 y2=-.5d; .5[y1,y2]=.5(h-d);
921 bot y4r=-d-o; if monospace: lft x5r=0; x4=.5[x5,x2]; else: x4=.5u; lft x5r=x4-x1; fi y5l=.75[y4l,y2];
922 z5'=z5l+.5stem*unitvector(z5-z4);
923 top y3l=h+o; x6-x1=x2-x5; y6r=y3-1.5like_stem; x3=.5[x1,x6];
924 z6'=z6+.25stem*unitvector(z6-z3);
925 pos7(hair,90); pos8(hair,90); pos9(hair,90); pos10(hair,90);
926 y7=y8=y9=y10=bot x_height;
927 x1-x7=x10-x1; x8=x1l; x9=x1r; lft x7=.5u;
928 filldraw z4r{right}..z2r---obl(9l,2r,10l)
929 ---z10l..z10r---obl(9r,10r,1r)---z1r
930 ..{right}z3r..z6l..z6'..z6r{up}..z3l{left}
931 ..z1l---obl(8r,1l,7r)---z7r..z7l
932 ---obl(8l,7l,2l)---z2l..{left}z4l..z5l{up}
933 ..z5'..z5r..cycle;
934 math_fit(desc_depth#*slant+2u#,x_height#*slant-1.5u#);
935 penlabels(1,2,3,4,5,6,7,8,9,10); labels(5',6');
936 endchar;
937
938 iff known chars.latin_fi:
939 bskchar "The italic ligature fi";
940 beginchar(chars.latin_fi,12u#,asc_height#,desc_depth#); uni "0xFB01";
941 italcorr asc_height#*slant-.75u#;
942 adjust_fit(0,0);
943 pickup tiny.nib;
944 oblu:=2oblu;
945 pos1(stem,0); pos2(stem,0); pos3(hair,-90);
946 pos4(hair,-90); pos5(stem,-150); penpos6(dot_size,0);
947 pos11(stem,0); pos12(stem,0);
948 x1=x2; x1=.5*7u;
949 y2=-.5d; .5[y1,y2]=.5(h-d);
950 bot y4r=-d-o; if monospace: x5=0; x4=.5[x2,x5]; else: x4=.5u; lft x5r=x4-x1; fi y5l=.75[y4l,y2];
951 z5'=z5l+.5stem*unitvector(z5-z4);
952 top y3l=h+o; if monospace: x6r=w-2u; else: x6-x1=x2-x5; fi
953 y6r=y3-1.5like_stem; x3=.5[x1,x6];
954 pos7(hair,90); pos8(hair,90); pos9(hair,90); pos10(hair,90);
955 y7=y8=y9=y10=bot x_height;
956 x1-x7=x10-x1; x8=x1l; x9=x1r; lft x7=.5u;
957 x11r=x12r=x6;
958 y11=x_height-.3bar_height; y12=.35bar_height;
959 ital_hook(12,13);
960 filldraw z4r{right}..z2r---obl(9l,2r,10l)
961 ---z10l..z11l---_ih---z11r
962 ..z10r---obl(9r,10r,1r)---z1r
963 ..{right}z3r..z6l{dir-120}..z6r{up}..z3l{left}
964 ..z1l---obl(8r,1l,7r)---z7r..z7l
965 ---obl(8l,7l,2l)---z2l..{left}z4l..z5l{up}
966 ..z5'..z5r..cycle;
967 penlabels(0,1,2);
968 penlabels(1,2,3,4,5,6,7,8,9,10,11,12); labels(5');
969 endchar;
970
971 iff known chars.latin_fj:
972 bskchar "The italic ligature fj";
973 beginchar(chars.latin_fj,11u#,asc_height#,desc_depth#); uni "non";
974 italcorr asc_height#*slant;
975 adjust_fit(0,0);
976 pickup tiny.nib;
977 oblu:=2oblu;
978 pos1(stem,0); pos2(stem,0); pos3(hair,-90);
979 pos4(hair,-90); pos5(stem,-150); penpos6(dot_size,0);
980 pos11(stem,0); pos12(stem,0);
981 pos14(hair,-90); pos15(stem,-150);
982 x1=x2; x1=.5*7u;
983 y2=-.5d; .5[y1,y2]=.5(h-d);
984 bot y4r=-d-o; if monospace: x5=0; x4=.5[x2,x5]; else: x4=.5u; lft x5r=x4-x1; fi y5l=.75[y4l,y2];
985 z5'=z5l+.5stem*unitvector(z5-z4);
986 top y3l=h+o; if monospace: x6r=w-2u; else: x6-x1=x2-x5; fi y6r=y3-1.5like_stem; x3=.5[x1,x6];
987 z6'=z6+.25stem*unitvector(z6-z3);
988 pos7(hair,90); pos8(hair,90); pos9(hair,90); pos10(hair,90);
989 y7=y8=y9=y10=bot x_height;
990 x1-x7=x10-x1; x8=x1l; x9=x1r; lft x7=.5u;
991 x11=x12; rt x11r=w-u;
992 y11=x_height-.3bar_height; y12=-.6d;
993 bot y14r=-d-o; x15r=x2r+2hair; .5[x11,x15]=x14; y15l=.75[y14l,y12];
994 z15'=z15l+.5stem*unitvector(z15-z14);
995 filldraw z4r{right}..z2r---obl(9l,2r,10l)
996 ---z10l..z11l---z12l..{left}z14l
997 ..z15l{up}..z15'..z15r..z14r{right}..z12r---z11r
998 ..z10r---obl(9r,10r,1r)---z1r
999 ..{right}z3r..z6l{dir-120}..z6r{up}..z3l{left}
1000 ..z1l---obl(8r,1l,7r)---z7r..z7l
1001 ---obl(8l,7l,2l)---z2l..{left}z4l..z5l{up}
1002 ..z5'..z5r..cycle;
1003 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,14,15); labels(5',6',15');
1004 endchar;
1005
1006 charscription(12.5u,asc_height,desc_depth)(
1007 oblu:=2oblu;
1008 pos1(stem,0); pos2(stem,0); pos3(hair,-90);
1009 pos4(hair,-90); pos5(stem,-150); pos6(stem,30);
1010 pos11(stem,0); pos12(stem,0);
1011 x1=x2; x1=.5*7u;
1012 y2=-.5d; .5[y1,y2]=.5(h-d);
1013 bot y4r=-d-o; if monospace: x5=0; x4=.5[x2,x5]; else: x4=.5u; lft x5r=x4-x1; fi y5l=.75[y4l,y2];
1014 z5'=z5l+.5stem*unitvector(z5-z4);
1015 top y3l=h+o; if monospace: x6r=w-2.5u; else: x6-x1=x2-x5; fi y6r=y3-1.5like_stem; x3=.5[x1,x6];
1016 z5'=z5l+.5stem*unitvector(z5-z4);
1017 z6'=z6+.25stem*unitvector(z6-z3);
1018 pos7(hair,90); pos8(hair,90); pos9(hair,90); pos10(hair,90);
1019 y7=y8=y9=y10=bot x_height;
1020 x1-x7=x10-x1; x8=x1l; x9=x1r; lft x7=.5u;
1021 x11=x12=x6;
1022 y11=h; y12=.35bar_height;
1023 ital_hook(12,13);
1024 filldraw z4r{right}..z2r---obl(9l,2r,10l)
1025 ---z10l..z10r---obl(9r,10r,1r)---z1r
1026 ..{right}z3r..z11l+1.5curve*down---_ih
1027 ---z11r---z11l+o*down..z3l{left}
1028 ..z1l---obl(8r,1l,7r)---z7r..z7l
1029 ---obl(8l,7l,2l)---z2l..{left}z4l..z5l{up}
1030 ..z5'..z5r..cycle;
1031 penlabels(1,2,3,4,5,6,7,8,9,10,11,12); labels(5',6');
1032 );
1033
1034 iff known chars.latin_fl:
1035 bskchar "The italic ligature fl";
1036 beginchar(chars.latin_fl,12.5u#,asc_height#,desc_depth#); uni "0xFB02";
1037 italcorr asc_height#*slant-u#;
1038 adjust_fit(0,0);
1039 pickup tiny.nib;
1040 usechar;
1041 endchar;
1042
1043 iff known chars.latin_flacute:
1044 bskchar "The italic ligature fl with acute";
1045 beginchar(chars.latin_flacute,12.5u#, asc_height#+.3x_height#, 0); uni "non";
1046 italcorr (asc_height#+.3x_height#)*slant;
1047 adjust_fit(0,serif_fit#);
1048 pickup tiny.nib;
1049 usechar;
1050 x101=x11l-hair; x100r=w-u; y101=asc_height+.75u;
1051 acute(100,101).capital;
1052 endchar;
1053
1054 iff known chars.latin_flcaron:
1055 bskchar "The italic ligature fl with caron";
1056 beginchar(chars.latin_flcaron,12.5u#, asc_height#, 0); uni "non";
1057 italcorr asc_height#*slant+u#;
1058 adjust_fit(0,serif_fit#);
1059 pickup tiny.nib;
1060 usechar;
1061 y100''r=h; x100'''=w;
1062 comma(100,.75dot_size,.5hair,.75comma_depth);
1063 endchar;
1064
1065 iff known chars.latin_ff:
1066 bskchar "The italic ligature ff";
1067 beginchar(chars.latin_ff,12.5u#,asc_height#,desc_depth#); uni "0xFB00";
1068 italcorr asc_height#*slant+2.25u#;
1069 adjust_fit(0,0);
1070 pickup tiny.nib;
1071 numeric tim[]; oblu:=2oblu;
1072 path p[];
1073 pos1(stem,0); pos2(stem,0); pos3(hair,-90);
1074 pos4(hair,-90); pos5(stem,-150); pos6(stem,30);
1075 pos11(stem,0); pos12(stem,0); pos13(hair,-90);
1076 pos14(hair,-90); pos15(stem,-150); pos16(stem,30);
1077 x1=x2=.5*7u; x11=x12=x6;
1078 y2=y12=-.5d; .5[y1,y2]=.5(h-d); y11=y1;
1079 bot y4r=bot y14r=-d-o; if monospace: x5=0; x4=.5[x2,x5]; else: x4=.5u; lft x5r=x4-x1; fi y5l=y15l=.75[y4l,y2];
1080 x14=.5[x15,x11]; lft x15r=x2r+2hair; x16-x11=x12-x15; x13=.5[x11,x16];
1081 z5'=z5l+.5stem*unitvector(z5-z4);
1082 top y3l=top y13l=h+o; if monospace: x6=w-3u; else: x6-x1=x2-x5; fi y6r=y16r=y3-1.5like_stem; x3=.5[x1,x6];
1083 z6'=z6+.25stem*unitvector(z6-z3);
1084 z15'=z15l+.5stem*unitvector(z15-z14); z16'=z16+.25stem*unitvector(z16-z13);
1085 pos7(hair,90); pos8(hair,90); pos9(hair,90); pos10(hair,90);
1086 pos17(hair,90); pos18(hair,90); pos19(hair,90); pos20(hair,90);
1087 y7=y8=y9=y10=y17=y18=y19=y20=bot x_height;
1088 x1-x7=x10-x1; x8=x1l; x9=x1r; lft x7=.5u;
1089 x11-x17=x20-x11; x18=x11l; x19=x11r; lft x17=.5w;
1090 p0:=z4r{right}..z2r---obl(9l,2r,18l)---obl(18l,9l,12l)---z12l..{left}z14l
1091 ..z15l{up} ..z15'..z15r..z14r{right}..z12r---obl(19l,12r,20l)---z20l
1092 ..z20r---obl(19r,20r,11r)---z11r ..{right}z13r..z16l..z16'..z16r{up}
1093 ..z13l{left}..{down}z11l;
1094 p1:=z6r{up}..{left}z3l..z1l---obl(8r,1l,7r)--z7r..z7l---obl(8l,7l,2l)
1095 ---z2l..z4l{left}..{up}z5l..z5'..z5r..{right}z4r;
1096 (tim0-length p0 +2,tim1)=subpath (length p0-2,infinity) of p0 intersectiontimes p1;
1097 if y6l>y11l:
1098 p2:=z11l---obl(18r,11l,9r)---obl(9r,18r,1r)---z1r..{right}z3r..z6l..z6';
1099 p3:=z13l{left}..{down}z11l;
1100 else:
1101 p2:=obl(9r,18r,1r)---z1r..{right}z3r..z6l..z6';
1102 p3:=z13l{left}..{down}z11l---obl(18r,11l,9r);
1103 fi
1104 (tim2,tim3)=p2 intersectiontimes p3;
1105 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
1106 ..subpath(rundy(p1,tim1),infinity) of p1..cycle
1107 ;
1108 infill subpath(0,rundy(p2,(tim2,f_obl)).zpet) of p2
1109 ..subpath(rundy(p3,(tim3,f_obl)),infinity) of p3..cycle;
1110 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20); labels(5',6',15',16');
1111 endchar;
1112
1113 iff known chars.latin_ffi and not monospace:
1114 bskchar "The italic ligature ffi";
1115 beginchar(chars.latin_ffi,17.5u#,asc_height#,desc_depth#); uni "0xFB03";
1116 italcorr asc_height#*slant-.75u#;
1117 adjust_fit(0,0);
1118 pickup tiny.nib;
1119 numeric tim[]; oblu:=2oblu;
1120 path p[];
1121 pos1(stem,0); pos2(stem,0); pos3(hair,-90);
1122 pos4(hair,-90); pos5(stem,-150); pos6(stem,30);
1123 pos11(stem,0); pos12(stem,0); pos13(hair,-90);
1124 pos14(hair,-90); pos15(stem,-150); penpos16(dot_size,0);
1125 pos21(stem,0); pos22(stem,0);
1126 x1=x2=.5*7u; x11=x12=x6;
1127 y2=y12=-.5d; .5[y1,y2]=.5(h-d); y11=y1;
1128 bot y4r=bot y14r=-d-o; x4=.5u; lft x5r=x4-x1; y5l=y15l=.75[y4l,y2];
1129 x14=.5[x15,x11]; lft x15r=x2r+2hair; x16-x11=4/3(x12-x15); x13=.5[x11,x16];
1130 z5'=z5l+.5stem*unitvector(z5-z4);
1131 top y3l=top y13l=h+o; x6-x1=x2-x5; y6r=y16r=y3-1.5like_stem; x3=.5[x1,x6];
1132 z6'=z6+.25stem*unitvector(z6-z3);
1133 z15'=z15l+.5stem*unitvector(z15-z14); z16'=z16+.25stem*unitvector(z16-z13);
1134 pos7(hair,90); pos8(hair,90); pos9(hair,90); pos10(hair,90);
1135 pos17(hair,90); pos18(hair,90); pos19(hair,90); pos20(hair,90);
1136 y7=y8=y9=y10=y17=y18=y19=y20=bot x_height;
1137 x1-x7=x10-x1; x8=x1l; x9=x1r; lft x7=.5u;
1138 x11-x17=x20-x11; x18=x11l; x19=x11r; lft x17=6u;
1139 x21r=x22r=x16; y21=x_height-.3bar_height; y22=.35bar_height;
1140 ital_hook(22,23).alt;
1141 p0:=z4r{right}..z2r---obl(9l,2r,18l)---obl(18l,9l,12l)---z12l..{left}z14l
1142 ..z15l{up} ..z15'..z15r..z14r{right}..z12r---obl(19l,12r,20l)---z20l
1143 ..z21l---_ih---z21r..z20r---obl(19r,20r,11r)---z11r ..{right}z13r
1144 ..{dir-120}z16l..z16r{up}..z13l{left}..{down}z11l;
1145 p1:=z6r{up}..{left}z3l..z1l---obl(8r,1l,7r)--z7r..z7l---obl(8l,7l,2l)
1146 ---z2l..z4l{left}..{up}z5l..z5'..z5r..{right}z4r;
1147 if y6l>y11l:
1148 p2:=z11l---obl(18r,11l,9r)---obl(9r,18r,1r)---z1r..{right}z3r..z6l..z6';
1149 p3:=z13l{left}..{down}z11l;
1150 else:
1151 p2:=obl(9r,18r,1r)---z1r..{right}z3r..z6l..z6';
1152 p3:=z13l{left}..{down}z11l---obl(18r,11l,9r);
1153 fi
1154 (tim0,tim1)=p0 intersectiontimes p1;
1155 (tim2,tim3)=p2 intersectiontimes p3;
1156 {{ if testdpi: save rundy; def rundy(expr p,t)suffix modifier:= if pair t: xpart(t) else: t fi enddef; fi
1157 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
1158 ..subpath(rundy(p1,tim1),infinity) of p1..cycle;
1159 infill subpath(0,rundy(p2,(tim2,f_obl)).zpet) of p2
1160 ..subpath(rundy(p3,(tim3,f_obl)),infinity) of p3..cycle;
1161 }};
1162 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22); labels(5',6',15',16');
1163 endchar;
1164
1165 iff known chars.latin_ffl and not monospace:
1166 bskchar "The italic ligature ffl";
1167 beginchar(chars.latin_ffl,18u#,asc_height#,desc_depth#); uni "0xFB04";
1168 italcorr asc_height#*slant-u#;
1169 adjust_fit(0,0);
1170 pickup tiny.nib;
1171 numeric tim[]; oblu:=2oblu;
1172 path p[];
1173 pos1(stem,0); pos2(stem,0); pos3(hair,-90);
1174 pos4(hair,-90); pos5(stem,-150); pos6(stem,30);
1175 pos11(stem,0); pos12(stem,0); pos13(hair,-90);
1176 pos14(hair,-90); pos15(stem,-150); penpos16(dot_size,0);
1177 pos21(stem,0); pos22(stem,0);
1178 x1=x2=.5*7u; x11=x12=x6;
1179 y2=y12=-.5d; .5[y1,y2]=.5(h-d); y11=y1;
1180 bot y4r=bot y14r=-d-o; x4=.5u; lft x5r=x4-x1; y5l=y15l=.75[y4l,y2];
1181 x14=.5[x15,x11]; lft x15r=x2r+2hair; x16-x11=4/3(x12-x15); x13=.5[x11,x16];
1182 z5'=z5l+.5stem*unitvector(z5-z4);
1183 top y3l=top y13l=h+o; x6-x1=x2-x5; y6r=y16r=y3-1.5like_stem; x3=.5[x1,x6];
1184 z6'=z6+.25stem*unitvector(z6-z3);
1185 z15'=z15l+.5stem*unitvector(z15-z14); z16'=z16+.25stem*unitvector(z16-z13);
1186 pos7(hair,90); pos8(hair,90); pos9(hair,90); pos10(hair,90);
1187 pos17(hair,90); pos18(hair,90); pos19(hair,90); pos20(hair,90);
1188 y7=y8=y9=y10=y17=y18=y19=y20=bot x_height;
1189 x1-x7=x10-x1; x8=x1l; x9=x1r; lft x7=.5u;
1190 x11-x17=x20-x11; x18=x11l; x19=x11r; lft x17=6u;
1191 x21=x22=x16; y21=h; y22=.35bar_height;
1192 ital_hook(22,23).alt;
1193 p0:=z4r{right}..z2r---obl(9l,2r,18l)---obl(18l,9l,12l)---z12l..{left}z14l
1194 ..z15l{up} ..z15'..z15r..z14r{right}..z12r---obl(19l,12r,20l)---z20l
1195 ..z20r---obl(19r,20r,11r)---z11r ..{right}z13r
1196 ..z21l+1.5curve*down---_ih---z21r---z21l+o*down
1197 ..z13l{left}..{down}z11l;
1198 p1:=z6r{up}..{left}z3l..z1l---obl(8r,1l,7r)--z7r..z7l---obl(8l,7l,2l)
1199 ---z2l..z4l{left}..{up}z5l..z5'..z5r..{right}z4r;
1200 if y6l>y11l:
1201 p2:=z11l---obl(18r,11l,9r)---obl(9r,18r,1r)---z1r..{right}z3r..z6l..z6';
1202 p3:=z13l{left}..{down}z11l;
1203 else:
1204 p2:=obl(9r,18r,1r)---z1r..{right}z3r..z6l..z6';
1205 p3:=z13l{left}..{down}z11l---obl(18r,11l,9r);
1206 fi
1207 (tim0,tim1)=p0 intersectiontimes p1;
1208 (tim2,tim3)=p2 intersectiontimes p3;
1209 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
1210 ..subpath(rundy(p1,tim1),infinity) of p1..cycle;
1211 infill subpath(0,rundy(p2,(tim2,hair)).zpet) of p2
1212 ..subpath(rundy(p3,(tim3,hair)),infinity) of p3..cycle;
1213 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22); labels(5',6',15',16');
1214 endchar;
1215
1216 charscription(10.5u,x_height,desc_depth)(
1217 path p[]; numeric tim[]; oblu:=2oblu;
1218 pos1(curve,0); pos2(hair,90); pos3(curve,180); pos4(hair,270);
1219 lft x1l=1.75u; rt x3l=w-2.25u; y1=y3=.5[y4l,y2l]; .5[x2,x4]=.5[x1,x3]; x2=x4;
1220 bot y2l=1/3bar_height+.25stem; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
1221 p0:=z1l{down}..z2l..{up}z3l..z4l..{down}z1l;
1222 tim1=xpart(p0 intersectiontimes ((0,y2l+tiny)--(w,y2l+tiny)));
1223 z5r=point tim1 of p0;
1224 tim2=xpart(p0 intersectiontimes ((x5r-hair+tiny,0)--(x5r-hair+tiny,h)));
1225 z5l=point tim2 of p0; z5=.5[z5l,z5r];
1226 lft z5'=(1.75u,0);
1227 pos6(stem,90); pos8(hair,270);
1228 y7l=-.5d; y6=0; x6=.5w; x6r:=x6r-.5hair;
1229 rt x7l=w-2u; x8=x2; bot y8r=-d;
1230 pos9(dot_size,180); lft x9r=u; top y9=-.5d;
1231 p1=subpath(0,.5tim2) of p0 .. z5l+hair*dir-130{dir-130}..z5'..{right}z6l..z7l..{left}z8l;
1232 pos7(stem,angle(direction 3 of p1)+90);
1233 y9'-y9=.1d; z9'=whatever[z9,z5];
1234 pos10(hair,135); pos11(hair,135); z11-z10=tiny*dir45;
1235 z10=(.5[z2,z4]--(w-u,h+u)) intersectionpoint p0;
1236 pos12(stem,45); pos12'(stem,45); x12r=w-u; y12l=y11l; z12'=z12+.5tiny*dir135;
1237 p2=.5[z2,z4]---z11l..{dir-60}z12'l--z12l;
1238 p3=z12r---z12'r..z11r---z10r--z10;
1239 p4=z8r{right}..z7r..{dir190}z6r..{dir30}z5r;
1240 (tim3,tim4)=p0 intersectiontimes p2;
1241 (tim5,tim6)=p3 intersectiontimes p0;
1242 filldraw p1..{(w,h)-z9l}z9l..z9'{left}..{down}z9r..
1243 subpath(0,rundy(p4,(infinity,if bold_face: 1.5f_obl else: oblu fi)).zpet) of p4
1244 ..subpath(rundy(p0,tim1),rundy(p0,tim3).zpet) of p0..
1245 subpath(rundy(p2,1),infinity) of p2{dir0}..
1246 subpath(0,rundy(p3,(2,hair)).zpet) of p3..
1247 subpath(rundy(p0,(tim6, if bold_face: f_obl else: oblu fi)),infinity) of p0-- cycle;
1248 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
1249 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,12'); labels(5',9');
1250 );
1251
1252 iff known chars.latin_g:
1253 bskchar "The italic letter g";
1254 beginchar(chars.latin_g,10.5u#,x_height#,desc_depth#); uni "0x0067";
1255 italcorr x_height#*slant;
1256 adjust_fit(0,0);
1257 pickup tiny.nib;
1258 usechar;
1259 math_fit(.5u#,ic#-1.5u#);
1260 endchar;
1261
1262 iff known chars.latin_gacute:
1263 bskchar "The italic letter g with acute";
1264 beginchar(chars.latin_gacute,10.5u#,asc_height#,desc_depth#); uni "0x01F5";
1265 italcorr x_height#*slant;
1266 adjust_fit(0,0);
1267 pickup tiny.nib;
1268 usechar;
1269 x101=x4-o;
1270 acute(100,101);
1271 endchar;
1272
1273 iff known chars.latin_gcaron:
1274 bskchar "The italic letter g with caron";
1275 beginchar(chars.latin_gcaron,10.5u#,asc_height#,desc_depth#); uni "0x01E7";
1276 italcorr x_height#*slant;
1277 adjust_fit(0,0);
1278 pickup tiny.nib;
1279 usechar;
1280 x101=x4r;
1281 hacek(100,101,102);
1282 endchar;
1283
1284 iff known chars.latin_gcircumflex:
1285 bskchar "The italic letter g with circumflex";
1286 beginchar(chars.latin_gcircumflex,10.5u#,asc_height#-.1x_height#,desc_depth#); uni "0x011D";
1287 italcorr x_height#*slant;
1288 adjust_fit(0,0);
1289 pickup tiny.nib;
1290 usechar;
1291 x101=x4r;
1292 circumflex(100,101,102);
1293 endchar;
1294
1295 iff known chars.latin_gcedilla:
1296 bskchar "The italic letter g with cedilla (treated as comma)";
1297 beginchar(chars.latin_gcedilla,10.5u#,x_height#+.75comma_depth#+o#,desc_depth#); uni "0x0123";
1298 italcorr x_height#*slant;
1299 adjust_fit(0,0);
1300 pickup tiny.nib;
1301 usechar;
1302 lft x100=x4; bot y100''r=x_height+2o;
1303 ammoc(100,.75dot_size,.5hair,.75comma_depth);
1304 endchar;
1305
1306 iff known chars.latin_gdotabove:
1307 bskchar "The italic letter g with dot above";
1308 beginchar(chars.latin_gdotabove,10.5u#,asc_height#-.5dot_size#,desc_depth#); uni "0x0121";
1309 italcorr x_height#*slant;
1310 adjust_fit(0,0);
1311 pickup tiny.nib;
1312 usechar;
1313 x100=x4;
1314 dotabove(100);
1315 endchar;
1316
1317 iff known chars.latin_gbreve:
1318 bskchar "The italic letter g with breve";
1319 beginchar(chars.latin_gbreve,10.5u#,asc_height#,desc_depth#); uni "0x011F";
1320 italcorr x_height#*slant;
1321 adjust_fit(0,0);
1322 pickup tiny.nib;
1323 usechar;
1324 x101=x4r; x102-x100=5u;
1325 breve(100,101,102);
1326 endchar;
1327
1328 iff known chars.latin_g_alt:
1329 bskchar "The variant italic letter g";
1330 beginchar(chars.latin_g_alt,9u#,x_height#,desc_depth#); uni "non";
1331 italcorr x_height#*slant;
1332 adjust_fit(0,0);
1333 pickup tiny.nib;
1334 path p[]; numeric tim[]; oblu:=2oblu;
1335 pos1(stem,0); pos2(stem,0);
1336 x1=x2; rt x2r=w-u;
1337 top y1=bot y4l-hair; y2=-1/2d;
1338 pos3(hair,-90); pos3'(stem,-150); pos4(hair,90);
1339 pos5(curve,180); pos6(.5[hair,stem],-90); pos7(stem,0);
1340 x7=x1; y7=.5bar_height;
1341 top y4r=h+o; rt x4=lft x1l-hair; y5=bar_height; lft x5r=u;
1342 bot y6r=-o; x6=x4-u;
1343 x3=.5[x3',x1]; lft x3'r=u; bot y3r=-d-o; y3'l=.75[y3l,y2];
1344 z3''=z3'l+.5stem*unitvector(z3'-z3);
1345 p0=z4r{left}..z5r..z6r..{up}z7r;
1346 p1=z3r{right}..z2r---z1r..z1l---z2l..{left}z3l..z3'l{up}..z3''..z3'r..{right}z3r;
1347 p2=z4l{left}..z5l..z6l..{up}z7l---z1l;
1348 (tim0,tim1)=p0 intersectiontimes p1;
1349 filldraw subpath(0,2) of p1..subpath(0,rundy(p0,tim0).zpet) of p0
1350 ..subpath(rundy(p1,tim1),infinity) of p1&cycle;
1351 infill p2..cycle;
1352 math_fit(mft+u#,ic#-u#);
1353 penlabels(0,1,2,3,3',4,5,6,7); labels(3'');
1354 endchar;
1355
1356 charscription(12u,asc_height,0)(
1357 numeric tim[]; oblu:=3oblu;
1358 path p[];
1359 pos1(stem,0); pos2(stem,0); pos2'(.8stem,5);
1360 pos3(hair,90); pos4(stem,0); pos5(stem,0);
1361 x1=x2=x2'; x1l=2.5u;
1362 y1=h; y2=u; bot y2'=0;
1363 x4=x5; rt x4r=w-2u; y4=.5[bar_height,x_height]; y5=.35bar_height;
1364 top y3r=x_height+o; x3=.5[x2,x4]+.5u;
1365 ital_serif(1,2); ital_hook(5,6);
1366 p0=z4r..z3r..{down}z2l;
1367 p0:=z4r{up}..{direction 1 of p0}z3r..{down}z2l;
1368 p1=z2r---z1r.._is---z2l..z2'l..z2'r;
1369 (tim0,tim1)=p0 intersectiontimes p1;
1370 filldraw z2r{up}..z3l..z4l---_ih---subpath(0,rundy(p0,tim0).zpet) of p0
1371 ..subpath(rundy(p1,tim1),infinity) of p1..{up}cycle;
1372 penlabels(1,2,2',3,4,5);
1373 );
1374
1375 iff known chars.latin_h:
1376 bskchar "The italic letter h";
1377 beginchar(chars.latin_h,12u#,asc_height#,0); uni "0x0068";
1378 italcorr .5[bar_height#,x_height#]*slant-.75u#;
1379 adjust_fit(serif_fit#,0);
1380 pickup tiny.nib;
1381 usechar;
1382 math_fit(-u#,ic#);
1383 endchar;
1384
1385 iff known chars.latin_hcaron:
1386 bskchar "The italic letter h with caron";
1387 beginchar(chars.latin_hcaron,12u#,asc_height#,0); uni "0x021F";
1388 italcorr .5[bar_height#,x_height#]*slant-.25u#;
1389 adjust_fit(serif_fit#,0);
1390 pickup tiny.nib;
1391 usechar;
1392 lft x101=x3+o; x102-x100=4.5u; y100=h+hair; y101l=1/4[x_height,y100]+hair;
1393 hacek(100,101,102);
1394 endchar;
1395
1396 iff known chars.latin_hcircumflex:
1397 bskchar "The italic letter h with circumflex";
1398 beginchar(chars.latin_hcircumflex,12u#,asc_height#,0); uni "0x0125";
1399 italcorr .5[bar_height#,x_height#]*slant-.75u#;
1400 adjust_fit(serif_fit#,0);
1401 pickup tiny.nib;
1402 usechar;
1403 lft x101=x3+o; x102-x100=4.5u;
1404 circumflex(100,101,102);
1405 endchar;
1406
1407 iff known chars.latin_hstroke:
1408 bskchar "The italic letter h with stroke";
1409 beginchar(chars.latin_hstroke,12u#, asc_height#, 0); uni "0x0127";
1410 italcorr .5[bar_height#,x_height#]*slant-.75u#;
1411 adjust_fit(serif_fit#,serif_fit#);
1412 pickup tiny.nib;
1413 numeric tim[];
1414 path p[];
1415 pos1(stem,0); pos2(stem,0); pos2'(.8stem,5);
1416 pos3(hair,90); pos4(stem,0); pos5(stem,0);
1417 pos7(bar,90); pos7'(bar,90); pos8(bar,90); pos8'(bar,90);
1418 x1=x2=x2'; x1l=2.5u;
1419 y1=h; y2=u; bot y2'=0;
1420 x4=x5; rt x4r=w-2u; y4=.5[bar_height,x_height]; y5=.35bar_height;
1421 top y3r=x_height+o; x3=.5[x2,x4]+.5u;
1422 ital_serif(1,2); ital_hook(5,6);
1423 x8-x7=4u; y8=y8'=y7=y7'=.4[x_height,h]; .5[x7,x8]=x1;
1424 x7'=x1l; x8'=x1r; bskpoints(7,8,hair,hair);
1425 p0=z4r..z3r..{down}z2l;
1426 p0:=z4r{up}..{direction 1 of p0}z3r..{down}z2l;
1427 p1=z2r---obl(8'l,2r,8l)---z8ll..z8r---obl(8'r,8r,1r)---z1r.._is
1428 ---obl(7'r,1l,7r)---z7rr..z7l---obl(7'l,7l,2l)---z2l..z2'l..z2'r;
1429 (tim0,tim1)=p0 intersectiontimes p1;
1430 oblu:=3oblu;
1431 filldraw z2r{up}..z3l..z4l---_ih---subpath(0,rundy(p0,tim0).zpet) of p0
1432 ..subpath(rundy(p1,tim1),infinity) of p1..{up}cycle;
1433 math_fit(-u#,ic#);
1434 penlabels(1,2,2',3,4,5,7,7',8,8'); labels(7',8');
1435 endchar;
1436
1437 iff known chars.latin_hbar:
1438 bskchar "The italic letter h with bar (Dirac constant)";
1439 beginchar(chars.latin_hbar,12u#, asc_height#, 0); uni "0x210F";
1440 italcorr .5[bar_height#,x_height#]*slant-.75u#;
1441 adjust_fit(serif_fit#,serif_fit#);
1442 pickup tiny.nib; oblu.more:=2f_obl;
1443 numeric tim[], theta;
1444 path p[];
1445 pos1(stem,0); pos2(stem,0); pos2'(.8stem,5);
1446 pos3(hair,90); pos4(stem,0); pos5(stem,0);
1447 x1=x2=x2'; x1l=2.5u;
1448 y1=h; y2=u; bot y2'=0;
1449 x4=x5; rt x4r=w-2u; y4=.5[bar_height,x_height]; y5=.35bar_height;
1450 top y3r=x_height+o; x3=.5[x2,x4]+.5u;
1451 ital_serif(1,2); ital_hook(5,6);
1452 x8-x7=4u; y8-y7=stem; .5[y7,y8]=.35[x_height,h]; .5[x7,x8]=x1;
1453 theta:=angle(z8-z7)+90;
1454 pos7(bar,theta); pos8(bar,theta);
1455 x7'l=x7'r=x1l; x8'l=x8'r=x1r; bskpoints(7,8,hair,hair);
1456 z7'l=whatever[z7l,z8l]; z8'l=whatever[z7l,z8l];
1457 z7'r=whatever[z7r,z8r]; z8'r=whatever[z7r,z8r];
1458 p0=z4r..z3r..{down}z2l;
1459 p0:=z4r{up}..{direction 1 of p0}z3r..{down}z2l;
1460 p1=z2r---obl(8'l,2r,8l)---z8ll..z8r---obl(8'r,8r,1r).more---z1r.._is
1461 ---obl(7'r,1l,7r)---z7rr..z7l---obl(7'l,7l,2l).more---z2l..z2'l..z2'r;
1462 (tim0,tim1)=p0 intersectiontimes p1;
1463 oblu:=3f_obl;
1464 filldraw z2r{up}..z3l..z4l---_ih---subpath(0,rundy(p0,tim0).zpet) of p0
1465 ..subpath(rundy(p1,tim1),infinity) of p1..{up}cycle;
1466 math_fit(-u#,ic#);
1467 penlabels(1,2,2',3,4,5,7,7',8,8'); labels(7',8');
1468 endchar;
1469
1470 charscription(6u,x_height,0)(
1471 numeric H; H=x_height;
1472 pos1(stem,0); pos2(stem,0);
1473 .5[x1,x2]=.5w; x1-x2=0;
1474 y1=H-.3bar_height; y2=.35bar_height;
1475 ital_kooh(1,4).alt; ital_hook(2,3);
1476 filldraw _ih---_ik---cycle;
1477 penlabels(0,1,2);
1478 );
1479
1480 iff known chars.latin_dotless_i:
1481 bskchar "The italic dotless i";
1482 beginchar(chars.latin_dotless_i,6u#, x_height#, 0); uni "0x0131";
1483 italcorr x_height#*slant-2u#;
1484 adjust_fit(0,0);
1485 pickup tiny.nib;
1486 usechar;
1487 math_fit(-.7x_height#*slant+u#,ic#+.75u#);
1488 endchar;
1489
1490 iff known chars.latin_i:
1491 bskchar "The italic letter i";
1492 beginchar(chars.latin_i,6u#, asc_height#-.5dot_size#, 0); uni "0x0069";
1493 italcorr (asc_height#-.5dot_size#)*slant-1.75u#;
1494 adjust_fit(0,0);
1495 pickup tiny.nib;
1496 usechar;
1497 top z0=(x1l,h-.5dot_size); dot(0);
1498 math_fit(-.7x_height#*slant+u#,ic#);
1499 endchar;
1500
1501 iff known chars.latin_iacute:
1502 bskchar "The italic letter i with acute";
1503 beginchar(chars.latin_iacute,6u#, asc_height#, 0); uni "0x00ED";
1504 italcorr asc_height#*slant-1.5u#;
1505 adjust_fit(0,0);
1506 pickup tiny.nib;
1507 x101=x1';
1508 usechar;
1509 acute(100,101);
1510 endchar;
1511
1512 iff known chars.latin_igrave:
1513 bskchar "The italic letter i with grave";
1514 beginchar(chars.latin_igrave,6u#,asc_height#,0); uni "0x00EC";
1515 italcorr x_height#*slant-2u#;
1516 adjust_fit(0,0);
1517 pickup tiny.nib;
1518 usechar;
1519 x101=x2l;
1520 grave(100,101);
1521 endchar;
1522
1523 iff known chars.latin_idoublegrave:
1524 bskchar "The italic letter i with double grave";
1525 beginchar(chars.latin_idoublegrave,6u#,asc_height#,0); uni "0x0209";
1526 italcorr x_height#*slant-1.5u#;
1527 adjust_fit(0,0);
1528 pickup tiny.nib;
1529 usechar;
1530 x102-x100=2.25u; x103r=x2r;
1531 d_grave(100,101,102,103,whatever);
1532 endchar;
1533
1534 iff known chars.latin_imacron:
1535 bskchar "The italic letter i with macron";
1536 beginchar(chars.latin_imacron,6u#,.5[asc_height#,x_height#],0); uni "0x012B";
1537 italcorr .5[asc_height#,x_height#]*slant-.25u#;
1538 adjust_fit(0,0);
1539 pickup tiny.nib;
1540 usechar;
1541 x101=.5[x2,x3]; x100=.5u;
1542 macron(100,101);
1543 endchar;
1544
1545 iff known chars.latin_icircumflex:
1546 bskchar "The italic letter i with circumflex";
1547 beginchar(chars.latin_icircumflex,6u#,asc_height#-.1x_height#,0); uni "0x00EE";
1548 italcorr .5[asc_height#,x_height#]*slant+.25u#;
1549 adjust_fit(0,0);
1550 pickup tiny.nib;
1551 usechar;
1552 x101=x2l;
1553 circumflex(100,101,102);
1554 endchar;
1555
1556 iff known chars.latin_iumlaut:
1557 bskchar "The italic letter i with umlaut";
1558 beginchar(chars.latin_iumlaut,6u#,asc_height#-dot_size#,0); uni "0x00EF";
1559 italcorr (asc_height#-dot_size#)*slant-.5u#;
1560 adjust_fit(0,0);
1561 pickup tiny.nib;
1562 usechar;
1563 .5[x100,x101]=x2l; x100-x101=1.8dot_size;
1564 umlaut(100,101);
1565 endchar;
1566
1567 iff known chars.latin_ibreve:
1568 bskchar "The italic letter i with breve";
1569 beginchar(chars.latin_ibreve,6u#,asc_height#,0); uni "0x012D";
1570 italcorr asc_height#*slant-.5u#;
1571 adjust_fit(0,0);
1572 pickup tiny.nib;
1573 usechar;
1574 x101=x2l;
1575 breve(100,101,102);
1576 endchar;
1577
1578 iff known chars.latin_iinvbreve:
1579 bskchar "The italic letter i with inverted breve";
1580 beginchar(chars.latin_iinvbreve,6u#,asc_height#,0); uni "0x020B";
1581 italcorr .5[x_height#,asc_height#]*slant-.25u#;
1582 adjust_fit(0,0);
1583 pickup tiny.nib;
1584 usechar;
1585 x101=x2l;
1586 tieacc(100,101,102);
1587 endchar;
1588
1589 iff known chars.latin_itilde:
1590 bskchar "The italic letter i with tilde";
1591 beginchar(chars.latin_itilde,6u#,asc_height#,0); uni "0x0129";
1592 italcorr asc_height#*slant;
1593 adjust_fit(0,0);
1594 pickup tiny.nib;
1595 usechar;
1596 x101-x100=5.5u; rt x.tilde=x2l;
1597 tilde(100,101);
1598 endchar;
1599
1600 iff known chars.latin_icaron:
1601 bskchar "The italic letter i with caron";
1602 beginchar(chars.latin_icaron,6u#,asc_height#,0); uni "0x01D0";
1603 italcorr asc_height#*slant-.5u#;
1604 adjust_fit(0,0);
1605 pickup tiny.nib;
1606 usechar;
1607 x101=.5[x1',x1l]; x102-x100=4.5u;
1608 hacek(100,101,102);
1609 endchar;
1610
1611 iff known chars.latin_iogonek:
1612 bskchar "The italic letter i with ogonek";
1613 beginchar(chars.latin_i,6u#, asc_height#-.5dot_size#,.85desc_depth#); uni "0x012F";
1614 italcorr (asc_height#-.5dot_size#)*slant-1.75u#;
1615 adjust_fit(0,0);
1616 pickup tiny.nib;
1617 path p[]; numeric tim[];
1618 pos1(stem,0); pos2(stem,0);
1619 pos5(stem,0); pos6(curve,0); pos7(hair,45); pos8(hair,160);
1620 .5[x1,x2]=.5w; x1-x2=0;
1621 y1=x_height-.3bar_height; y2=.35bar_height;
1622 x5=x6l+1.5u; z5l=z2'l; x7-x6l=3u; rt x8l=x7+1.5u;
1623 y6=-.5d; bot y7l=-d; y8=-2/3d;
1624 ital_kooh(1,4); ital_hook(2,3);
1625 p1:=z5l{z6l-z5r}..z6l...z7l..{z5-z6}z8l..z8r{z6-z5}..z7r..z6r..z5r;
1626 tim1=xpart(_ih intersectiontimes (z5r--(x5r,y2r)));
1627 filldraw subpath(0,rundy(_ih,1).zpet) of _ih
1628 ..subpath(rundy(p1,0),rundy(p1,infinity).zpet) of p1
1629 ..subpath(rundy(_ih,tim1),infinity) of _ih---_ik---cycle;
1630 top z0=(x1l,h-.5dot_size); dot(0);
1631 penlabels(0,1,2,5,6,7,8);
1632 endchar;
1633
1634 charscription(5u,x_height,.75desc_depth)(
1635 numeric H; H=x_height;
1636 pos1(stem,0); pos2(stem,0);
1637 pos4(hair,-90); pos5(stem,-150);
1638 x1=x2; rt x1r=w-u;
1639 y1=H-.3bar_height; y2=-1/2d;
1640 if monospace: x5r=0; x4=.5[x5,x2]; x3r=u;
1641 else: x4=u; lft x5r=x4-x1; fi
1642 ital_kooh(1,3).alt;
1643 bot y4r=-d-o;
1644 y5l=.75[y4l,y2];
1645 z5'=z5l+.5stem*unitvector(z5-z4);
1646 filldraw z4r{right}..z2r---_ik---z2l..{left}z4l..z5l{up}..z5'..z5r..cycle;
1647 penlabels(0,1,2,4,5); labels(5');
1648 );
1649
1650 iff known chars.latin_dotless_j:
1651 bskchar "The italic dotless j";
1652 beginchar(chars.latin_dotless_j,5u#,x_height#,.75desc_depth#); uni "non";
1653 italcorr x_height#*slant-.25u#;
1654 adjust_fit(0,0);
1655 pickup tiny.nib;
1656 usechar;
1657 math_fit(desc_depth#*slant+u#,ic#-u#);
1658 endchar;
1659
1660 iff known chars.latin_j:
1661 bskchar "The italic letter j";
1662 beginchar(chars.latin_j,5u#,asc_height#-.5dot_size#,.75desc_depth#); uni "0x006A";
1663 italcorr (asc_height#-.5dot_size#)*slant-.25u#;
1664 adjust_fit(0,0);
1665 pickup tiny.nib;
1666 usechar;
1667 top z0=(x1l,h-.5dot_size); dot(0);
1668 math_fit(desc_depth#*slant+u#,ic#-1.5u#);
1669 endchar;
1670
1671 iff known chars.latin_jcircumflex:
1672 bskchar "The italic letter j with circumflex";
1673 beginchar(chars.latin_jcircumflex,5u#,asc_height#-.1x_height#,1.5like_cap_curve#); uni "0x0135";
1674 italcorr .5[asc_height#,x_height#]*slant+u#;
1675 adjust_fit(0,0);
1676 pickup tiny.nib;
1677 usechar;
1678 x101=.5[x1',x2l];
1679 circumflex(100,101,102);
1680 endchar;
1681
1682 iff known chars.latin_ij:
1683 bskchar "The italic letter ij";
1684 beginchar(chars.latin_ij,9.5u#,asc_height#-.5dot_size#,desc_depth#); uni "0x0133";
1685 italcorr (asc_height#-.5dot_size#)*slant-.25u#;
1686 adjust_fit(0,0);
1687 pickup tiny.nib;
1688 numeric shift; shift:=w-5u;
1689 usechar shifted (shift*right);
1690 pos6(stem,0); pos7(stem,0);
1691 .5[x6,x7]=3u; x6-x7=0;
1692 y6=x_height-.3bar_height; y7=.35bar_height;
1693 lft x8l=6u;
1694 ital_kooh(6,9); ital_hook(7,8);
1695 filldraw _ih---_ik---cycle;
1696 top z0=(x1l+shift,h-.5dot_size); dot(0);
1697 top z10=(x6l,h-.5dot_size); dot(10);
1698 penlabels(6,7);
1699 endchar;
1700
1701 charscription(10u,asc_height,0)(
1702 numeric tim[]; oblu:=3oblu;
1703 path p[];
1704 pos1(stem,0); pos2(stem,0); pos2'(.8stem,5);
1705 pos3(hair,130); pos3'(hair,-40); pos4(curve,60); pos5(stem,0);
1706 x1=x2=x2'; x1l=2.5u;
1707 y1=h; y2=u; bot y2'=0;
1708 rt x4r=w-u; top y4r=x_height+o; y5=.35bar_height;
1709 z4'=(x2r,.5[x_height,bar_height]);
1710 z7=(x2r,.8bar_height);
1711 z3=.4[z4',z4]+stem*(unitvector(z4-z4') rotated 90);
1712 z3'=.5[z7,z4]+stem*(unitvector(z4-z7) rotated -90);
1713 x5l=.4[x4,x2];
1714 ital_serif(1,2); ital_hook(5,6); x5'l:=x5'l+2hair; x5'r:=x5'r+2hair;
1715 z8'-z8=z5r-z5l; y8=x_height; z8=z5l+whatever*dir115;
1716 z4'''-z4'=(hair-currentbreadth)*down;
1717 z7-z7''=(.5[hair,stem]-currentbreadth)*down;
1718 p1=z2r---z1r.._is---z2l..z2'l..z2'r;
1719 p2=z7..z3'r..z4r..z3r..z4';
1720 p3=z6'..z6r..z5'r..z5r---z8';
1721 p4=z7''..z3'l..z4l..z3l..z4''';
1722 p5=z4'''--z7'';
1723 p6=z8---z5l..z5'l..z6l..z6';
1724 z9=bsktouch(subpath(1,infinity) of p2,left,p1,right);
1725 tim0-1=xpart(subpath(1,infinity) of p2 intersectiontimes (z9--(x3,y9)));
1726 tim1=xpart(p1 intersectiontimes (z9--(0,y9)));
1727 (tim2,tim3)=p2 intersectiontimes p3;
1728 (tim4,tim5)=p2 intersectiontimes p6;
1729 filldraw subpath(rundy(p1,tim1),infinity) of p1
1730 ---z7+oblu*down
1731 ..point .5tim4 of p2
1732 ..subpath(rundy(p6,tim5),infinity) of p6
1733 &subpath(0,rundy(p3,tim3).zpet) of p3
1734 ..subpath(rundy(p2,tim2),rundy(p2,tim0).zpet) of p2..cycle;
1735 oblu:=f_obl;
1736 infill subpath(rundy(p4,0),rundy(p4,length p4).zpet) of p4
1737 ..subpath(rundy(p5,0),rundy(p5,1).zpet) of p5..cycle;
1738 penlabels(1,2,2',3,3',4,5); labels(4',4''',7,7'',8,8');
1739 );
1740
1741 iff known chars.latin_k:
1742 bskchar "The italic letter k";
1743 beginchar(chars.latin_k,10u#,asc_height#,0); uni "0x006B";
1744 italcorr x_height#*slant;
1745 adjust_fit(serif_fit#,0);
1746 pickup tiny.nib;
1747 usechar;
1748 math_fit(-u#,ic#-.5u#);
1749 endchar;
1750
1751 iff known chars.latin_kcaron:
1752 bskchar "The italic letter k with caron";
1753 beginchar(chars.latin_kcaron,10u#,asc_height#,0); uni "0x01E9";
1754 italcorr asc_height#*slant;
1755 adjust_fit(serif_fit#,0);
1756 pickup tiny.nib;
1757 usechar;
1758 x100=x1r+u; x102-x100=4.5u; y100=h+hair; y101l=1/4[x_height,y100]+hair;
1759 hacek(100,101,102);
1760 endchar;
1761
1762 iff known chars.latin_kcedilla:
1763 bskchar "The italic letter k with cedilla (treated as comma)";
1764 beginchar(chars.latin_kcedilla,10u#,asc_height#,.75comma_depth#); uni "0x0137";
1765 italcorr x_height#*slant;
1766 adjust_fit(serif_fit#,0);
1767 pickup tiny.nib;
1768 usechar;
1769 lft x100=.5w; top y100''r=-o;
1770 comma(100,.75dot_size,.5hair,.75comma_depth);
1771 endchar;
1772
1773 iff known chars.latin_kra:
1774 bskchar "The italic letter kra";
1775 beginchar(chars.latin_kra,11.5u#,x_height#,0); uni "0x0138";
1776 italcorr x_height#*slant-.25u#;
1777 adjust_fit(serif_fit#,0);
1778 pickup tiny.nib;
1779 oblu:=2oblu;
1780 pos1(stem,0); pos2(stem,0);
1781 pos3(whatever,0); pos5(whatever,0);
1782 bot y1=0; top y2=h; lft x1l=lft x2l=2u;
1783 rt x3r=w-3u; top y3=h; rt x5r=w-4u; y5=.35bar_height;
1784 y4r=.45h; x4r=x2r; z4l=z4r+(hair-tiny,0) rotated (angle(z3r-z4r)+90);
1785 z3l=z4l+whatever*(z3r-z4r);
1786 x6l=x4r+hair+.5u; z6l=whatever[z4r,z3r]; z6'=z6l+(stem-tiny,0) rotated (angle(z5r-z6l)+90);
1787 z5l=z6l+whatever*(z5r-z6'); z6r=whatever[z5r,z6']=whatever[z4r,z3r];
1788 x4'=x2r; z4'=whatever[z3l,z4l];
1789 ital_serif(2,1); ital_hook(5,7);
1790 _ih:=z5l..z5'l..z7l..z7'&z7'..z7r..z5'r..z5r;
1791 serif_bot(1); serifs_tl(3l); serifs_tr(3r);
1792 z4r'=z4r+.5u*down; z4r''=z4r+(u,0) rotated (angle(z3r-z4r));
1793 z6l'=z6l+(-u,0) rotated (angle(z3r-z4r));
1794 z6l''=z6l+(u,0) rotated (angle(z5l-z6l));
1795 z6r'=z6r+(u,0) rotated (angle(z5r-z6r)); z6r''=z6r+(u,0) rotated (angle(z3r-z4r));
1796 x2'''=x1r; z2'''=whatever[z3l,z4l];
1797 filldraw z1a{down}..{left}z1b..z1c---z1d..z1e{left}..z1f---z4r..z4r'' if x6l'>x4r'': ..z6l' fi
1798 ..z6l''---z5l..z5'l..z7l..z7'&z7'..z7r..z5'r..z5r---z6r'..z6r''
1799 ---diag_serif(3r,4r)..{dir0}z3r.c..z3r.a---z3l.a..z3l.c{dir0}..diag_serif(3l,4l)
1800 ---obl(2''',3l,2r)---_is---cycle;
1801 penlabels(1,2,3,4,5,6); labels(2',2'',2''',2'''',4',4r',4r'',6l',6l'',6r',6r'');
1802 endchar;
1803
1804 charscription(6.5u,asc_height,0)(
1805 pos1(stem,0); pos2(stem,0);
1806 x1=x2=.5w;
1807 y1=h; y2=.35bar_height;
1808 ital_serif(1,2); ital_hook(2,3);
1809 filldraw z2r--z1r.._is---_ih..cycle;
1810 penlabels(1,2);
1811 );
1812
1813 iff known chars.latin_l:
1814 bskchar "The italic letter l";
1815 beginchar(chars.latin_l,6.5u#, asc_height#, 0); uni "0x006C";
1816 italcorr asc_height#*slant-1.5u#;
1817 adjust_fit(serif_fit#,0);
1818 pickup tiny.nib;
1819 usechar;
1820 math_fit(-1.5u#,ic#);
1821 endchar;
1822
1823 iff known chars.latin_lacute:
1824 bskchar "The italic letter l with acute";
1825 beginchar(chars.latin_lacute,6.5u#, asc_height#+.3x_height#, 0); uni "0x013A";
1826 italcorr (asc_height#+.3x_height#)*slant;
1827 adjust_fit(serif_fit#,0);
1828 pickup tiny.nib;
1829 usechar;
1830 x101=x1l; x100r=w-u; y101=asc_height+.75u;
1831 acute(100,101).capital;
1832 endchar;
1833
1834 iff known chars.latin_lcaron:
1835 bskchar "The italic letter l with caron (treated like comma)";
1836 beginchar(chars.latin_lcaron,6.5u# if bold_face: +.5u# fi, asc_height#, 0); uni "0x013E";
1837 italcorr asc_height#*slant+.25u#;
1838 adjust_fit(serif_fit#,0);
1839 pickup tiny.nib;
1840 usechar;
1841 y100''r=h; x100'''=w-.5u;
1842 comma(100,.75dot_size,.5hair,.75comma_depth);
1843 endchar;
1844
1845 iff known chars.latin_ldot:
1846 bskchar "The italic letter l with middle dot";
1847 beginchar(chars.latin_l,6.5u#+dot_size#,asc_height#,0); uni "0x0140";
1848 italcorr x_height#*slant;
1849 adjust_fit(serif_fit#,0);
1850 pickup tiny.nib;
1851 usechar;
1852 top y100=x_height; x100+.5dot_size=w-u;
1853 dot(100);
1854 endchar;
1855
1856 iff known chars.latin_lcedilla:
1857 bskchar "The italic letter l with cedilla (treated as comma)";
1858 beginchar(chars.latin_lcedilla,6.5u#,asc_height#,.75comma_depth#); uni "0x013C";
1859 italcorr asc_height#*slant-1.25u#;
1860 adjust_fit(serif_fit#,0);
1861 pickup tiny.nib;
1862 usechar;
1863 x100=x2'; top y100''r=-2o;
1864 comma(100,.75dot_size,.5hair,.75comma_depth);
1865 endchar;
1866
1867 iff known chars.latin_ldotabove:
1868 bskchar "The italic letter l with dot above";
1869 beginchar(chars.latin_ldotabove,6.5u#,Acc_height#+o#,0); uni "non";
1870 italcorr Acc_height#*slant-1.25u#;
1871 adjust_fit(serif_fit#,0);
1872 pickup tiny.nib;
1873 usechar;
1874 x100=x1;
1875 dotabove(100);
1876 endchar;
1877
1878 iff known chars.latin_lslash:
1879 bskchar "The italic letter l with slash";
1880 beginchar(chars.latin_lslash,6.5u#, asc_height#, 0); uni "0x0142";
1881 italcorr asc_height#*slant-1.25u#;
1882 adjust_fit(serif_fit#,0);
1883 pickup tiny.nib; oblu.more:=2f_obl;
1884 numeric theta;
1885 pos1(stem,0); pos2(stem,0);
1886 x1=x2=.5w;
1887 y1=h; y2=.35bar_height;
1888 x5-x4=4u; .5[x4,x5]=x1; y5-y4=stem; .5[y4,y5]=.8[bar_height,x_height];
1889 theta=angle(z5-z4)+90;
1890 pos4(bar,theta); pos5(bar,theta);
1891 x4'l=x4'r=x1l; x5'l=x5'r=x1r;
1892 z4'l=whatever[z4l,z5l]; z5'l=whatever[z4l,z5l];
1893 z4'r=whatever[z4r,z5r]; z5'r=whatever[z4r,z5r];
1894 bskpoints(4,5,bar,bar);
1895 ital_serif(1,2); ital_hook(2,3);
1896 filldraw z2r---obl(5'l,2r,5l)---z5ll..z5r---obl(5'r,5r,1r).more
1897 ---z1r.._is---obl(4'r,1l,4r)---z4rr..z4l
1898 ---obl(4'l,4l,2l).more---_ih..cycle;
1899 penlabels(1,2,4,4',5,5');
1900 endchar;
1901
1902 iff known chars.latin_m:
1903 bskchar "The italic letter m";
1904 beginchar(chars.latin_m,16u#,x_height#,0); uni "0x006D";
1905 italcorr 1/3x_height#*slant;
1906 adjust_fit(0,0);
1907 pickup tiny.nib;
1908 numeric tim[]; oblu:=3oblu;
1909 numeric H; H=x_height;
1910 path p[];
1911 pos1(stem,0); pos2(stem,0); pos2'(.8stem,5);
1912 pos3(hair,90); pos4(stem,0); pos5(stem,0);
1913 pos5'(.8stem,5); pos8(hair,90); pos9(stem,0);
1914 pos10(stem,0);
1915 x1=x2=x2'; x1l=2.5u;
1916 y1=H-.3bar_height; y2=u; bot y2'=0;
1917 x4=x5=x5'=.5w; y4=.5[bar_height,x_height];
1918 rt x9r=w-2.5u; x10=x9; y10=.35bar_height; y9=y4;
1919 y5=u; bot y5'=0; y8=y3; x8=.5[x4,x9]+.5u;
1920 top y3r=x_height+o; x3=.5[x2,x4]+.5u;
1921 ital_kooh(1,7).alt; ital_hook(10,11);
1922 p0=z4r..z3r..{down}z2l;
1923 p1=z2r---z1r.._ik---z2l..z2'l..z2'r;
1924 p2=z9r..z8r..{down}z5l;
1925 p2:=z9r{up}..{direction 1 of p2}z8r..{down}z5l;
1926 (tim0,tim1)=p0 intersectiontimes subpath(0,3) of p1;
1927 (tim2,tim3)=p2 intersectiontimes p0;
1928 if tim2<1: tim2:=xpart(p2 intersectiontimes ((z4l--z9l) shifted (.15hair*up)));
1929 tim3:=xpart(p0 intersectiontimes ((z4r--z1r) shifted (.15hair*up)));
1930 fi
1931 filldraw z2r if monospace:---z1r else:{up}fi..z3l..z4l---z5l..z5'l..z5'r..z5r
1932 if monospace:---z4r..else:{up}..fi{right}z8l..z9l
1933 ---_ih---subpath(0,rundy(p2,tim2).zpet) of p2
1934 ..subpath(rundy(p0,tim3),rundy(p0,tim0).zpet) of p0 if monospace:{left}fi
1935 ..subpath(rundy(p1,tim1),infinity) of p1
1936 ..{up}cycle;
1937 penlabels(1,2,2',3,4,5,5',8,9,10);
1938 math_fit(0,ic#);
1939 endchar;
1940
1941 charscription(11.5u,x_height,0)(
1942 numeric tim[]; oblu:=3oblu;
1943 numeric H; H=x_height;
1944 path p[];
1945 pos1(stem,0); pos2(stem,0); pos2'(.8stem,5);
1946 pos3(hair,90); pos4(stem,0); pos5(stem,0);
1947 x1=x2=x2'; x1l=2.5u;
1948 y1=H-.3bar_height; y2=u; bot y2'=0;
1949 x4=x5; rt x4r=w-2.5u; y4=.5[bar_height,x_height]; y5=.35bar_height;
1950 top y3r=x_height+o; x3=.5[x2,x4]+.5u;
1951 ital_kooh(1,7).alt; ital_hook(5,6);
1952 p0=z4r..z3r..{down}z2l;
1953 p0:=z4r{up}..{direction 1 of p0}z3r..{down}z2l;
1954 p1=z2r---z1r.._ik---z2l..z2'l..z2'r;
1955 (tim0,tim1)=p0 intersectiontimes p1;
1956 filldraw z2r{up}..z3l..z4l---_ih---subpath(0,rundy(p0,tim0).zpet) of p0
1957 ..subpath(rundy(p1,tim1),infinity) of p1..{up}cycle;
1958 penlabels(1,2,2',3,4,5);
1959 );
1960
1961 iff known chars.latin_n:
1962 bskchar "The italic letter n";
1963 beginchar(chars.latin_n,11.5u#, x_height#, 0); uni "0x006E";
1964 italcorr 1/3x_height#*slant;
1965 adjust_fit(0,0);
1966 pickup tiny.nib;
1967 usechar;
1968 math_fit(0,ic#);
1969 endchar;
1970
1971 iff known chars.latin_ncaron:
1972 bskchar "The italic letter n with caron";
1973 beginchar(chars.latin_ncaron,11.5u#, asc_height#, 0); uni "0x0148";
1974 italcorr x_height#*slant-2u#;
1975 adjust_fit(0,0);
1976 pickup tiny.nib;
1977 usechar;
1978 x101=.6[x1,x3];
1979 hacek(100,101,102);
1980 endchar;
1981
1982 iff known chars.latin_nacute:
1983 bskchar "The italic letter n with acute";
1984 beginchar(chars.latin_nacute,11.5u#,asc_height#,0); uni "0x0144";
1985 italcorr asc_height#*slant-2.25u#;
1986 adjust_fit(0,0);
1987 pickup tiny.nib;
1988 usechar;
1989 x101=.5[x3,x2r];
1990 acute(100,101);
1991 endchar;
1992
1993 iff known chars.latin_napostrophe:
1994 bskchar "The italic letter n with apostrophe";
1995 beginchar(chars.latin_napostrophe,11.5u#,asc_height#+o#,0); uni "0x0149";
1996 italcorr x_height#*slant-2u#;
1997 adjust_fit(0,0);
1998 pickup tiny.nib;
1999 usechar;
2000 lft x100=.5u; top y100=h-.5dot_size;
2001 comma(100,dot_size,.9hair,.8comma_depth);
2002 endchar;
2003
2004 iff known chars.latin_ngrave:
2005 bskchar "The italic letter n with grave";
2006 beginchar(chars.latin_ngrave,11.5u#,asc_height#,0); uni "0x01F9";
2007 italcorr x_height#*slant-2u#;
2008 adjust_fit(0,0);
2009 pickup tiny.nib;
2010 usechar;
2011 x101=x3;
2012 grave(100,101);
2013 endchar;
2014
2015 iff known chars.latin_ntilde:
2016 bskchar "The italic letter n with tilde";
2017 beginchar(chars.latin_ntilde,11.5u#,asc_height#,0); uni "0x00F1";
2018 italcorr asc_height#*slant-2u#;
2019 adjust_fit(0,0);
2020 pickup tiny.nib;
2021 usechar;
2022 x101-x100=6u; x.tilde=.5[x1r,x4l];
2023 tilde(100,101);
2024 endchar;
2025
2026 iff known chars.latin_ncedilla:
2027 bskchar "The italic letter n with cedilla (treated as comma)";
2028 beginchar(chars.latin_ncedilla,11.5u#,x_height#,.75comma_depth#); uni "0x0146";
2029 italcorr x_height#*slant-2u#;
2030 adjust_fit(0,0);
2031 pickup tiny.nib;
2032 usechar;
2033 x100=.65[x2,x5]; top y100''r=-o;
2034 comma(100,.75dot_size,.5hair,.75comma_depth);
2035 endchar;
2036
2037 iff known chars.latin_eng:
2038 bskchar "The italic letter eng";
2039 beginchar(chars.latin_eng,10u#, x_height#, desc_depth#); uni "0x014B";
2040 italcorr .5[bar_height#,x_height#]*slant;
2041 adjust_fit(0,0);
2042 pickup tiny.nib;
2043 numeric tim[]; oblu:=3oblu;
2044 path p[];
2045 pos1(stem,0); pos2(stem,0); pos2'(.8stem,5);
2046 pos3(hair,90); pos4(stem,0); pos5(stem,0);
2047 pos7(hair,-90); pos8(stem,-150);
2048 x1=x2=x2'; x1l=2.5u;
2049 y1=x_height-.3bar_height; y2=u; bot y2'=0;
2050 x4=x5; rt x4r=w-u; y4=.5[bar_height,x_height]; y5=-.5d;
2051 top y3r=x_height+o; x3=.5[x2,x4]+.5u;
2052 ital_kooh(1,6);
2053 bot y7r=-d; top y8=y7+like_curve; lft x8r-x5=-5u; rt x5r-x7=3u;
2054 z8'=z8l+.5stem*unitvector(z8-z7);
2055 p0=z4r..z3r..{down}z2l;
2056 p0:=z4r{up}..{direction 1 of p0}z3r..{down}z2l;
2057 p1=z2r---z1r.._ik---z2l..z2'l..z2'r;
2058 (tim0,tim1)=p0 intersectiontimes p1;
2059 filldraw z2r{up}..z3l..z4l---z5l..{left}z7l..z8l{up}..z8'
2060 ..z8r..z7r{right}..z5r---subpath(0,rundy(p0,tim0).zpet) of p0
2061 ..subpath(rundy(p1,tim1),infinity) of p1..{up}cycle;
2062 penlabels(1,2,2',3,4,5,7,8); labels(8');
2063 endchar;
2064
2065 charscription(10u,x_height,0)(
2066 pos1(curve,0); pos2(hair,90); pos3(curve,180); pos4(hair,270);
2067 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
2068 bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
2069 filldraw z1l{down}..z2l..{up}z3l..z4l..{down}cycle;
2070 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
2071 penlabels(1,2,3,4);
2072 );
2073
2074 iff known chars.latin_o:
2075 bskchar "The italic letter o";
2076 beginchar(chars.latin_o,10u#,x_height#,0); uni "0x006F";
2077 italcorr .5x_height#*slant;
2078 adjust_fit(0,0);
2079 pickup tiny.nib;
2080 usechar;
2081 math_fit(mft,ic#);
2082 endchar;
2083
2084 iff known chars.latin_oacute:
2085 bskchar "The italic letter o with acute";
2086 beginchar(chars.latin_oacute,10u#,asc_height#,0); uni "0x00F3";
2087 italcorr asc_height#*slant-u#;
2088 adjust_fit(0,0);
2089 pickup tiny.nib;
2090 usechar;
2091 x101=x4l;
2092 acute(100,101);
2093 endchar;
2094
2095 iff known chars.latin_oumlaut:
2096 bskchar "The italic letter o with umlaut";
2097 beginchar(chars.latin_oumlaut,10u#,asc_height#-dot_size#,0); uni "0x00F6";
2098 italcorr (asc_height#-dot_size#)*slant-u#;
2099 adjust_fit(0,0);
2100 pickup tiny.nib;
2101 usechar;
2102 .5[x100,x101]=x4l; x101-x100=2/3(x3-x1);
2103 umlaut(100,101);
2104 endchar;
2105
2106 iff known chars.latin_ocircumflex:
2107 bskchar "The italic letter o with circumflex";
2108 beginchar(chars.latin_ocircumflex,10u#,asc_height#-.1x_height#,0); uni "0x00F4";
2109 italcorr .5[asc_height#,x_height#]*slant-.75u#;
2110 adjust_fit(0,0);
2111 pickup tiny.nib;
2112 usechar;
2113 numeric oblu; oblu:=hair;
2114 x101=x4r;
2115 circumflex(100,101,102);
2116 endchar;
2117
2118 iff known chars.latin_ograve:
2119 bskchar "The italic letter o with grave";
2120 beginchar(chars.latin_ograve,10u#,asc_height#,0); uni "0x00F2";
2121 italcorr .5x_height#*slant;
2122 adjust_fit(0,0);
2123 pickup tiny.nib;
2124 usechar;
2125 x101=x4+u;
2126 grave(100,101);
2127 endchar;
2128
2129 iff known chars.latin_odoublegrave:
2130 bskchar "The italic letter o with double grave";
2131 beginchar(chars.latin_odoublegrave,10u#,asc_height#,0); uni "0x020D";
2132 italcorr .5x_height#*slant;
2133 adjust_fit(0,0);
2134 pickup tiny.nib;
2135 usechar;
2136 x102-x100=3u; x102=x4;
2137 d_grave(100,101,102,103,whatever);
2138 endchar;
2139
2140 iff known chars.latin_ocaron:
2141 bskchar "The italic letter o with caron";
2142 beginchar(chars.latin_ocaron,10u#,asc_height#,0); uni "0x01D2";
2143 italcorr asc_height#*slant-u#;
2144 adjust_fit(0,0);
2145 pickup tiny.nib;
2146 usechar;
2147 x101=x4r;
2148 hacek(100,101,102);
2149 endchar;
2150
2151 iff known chars.latin_otilde:
2152 bskchar "The italic letter o with tilde";
2153 beginchar(chars.latin_otilde,10u#,asc_height#,0); uni "0x00F5";
2154 italcorr asc_height#*slant-.5u#;
2155 adjust_fit(0,0);
2156 pickup tiny.nib;
2157 usechar;
2158 x101-x100=6u;
2159 tilde(100,101);
2160 endchar;
2161
2162 iff known chars.latin_omacron:
2163 bskchar "The italic letter o with macron";
2164 beginchar(chars.latin_omacron,10u#,.5[asc_height#,x_height#],0); uni "0x014D";
2165 italcorr .5[asc_height#,x_height#]*slant-.75u#;
2166 adjust_fit(0,0);
2167 pickup tiny.nib;
2168 usechar;
2169 macron(100,101);
2170 endchar;
2171
2172 iff known chars.latin_odotabove:
2173 bskchar "The italic letter o with dot above";
2174 beginchar(chars.latin_odotabove,10u#,asc_height#-.5dot_size#,0); uni "0x022F";
2175 italcorr .5x_height#*slant;
2176 adjust_fit(0,0);
2177 pickup tiny.nib;
2178 usechar;
2179 x100=x4;
2180 dotabove(100);
2181 endchar;
2182
2183 iff known chars.latin_ohumlaut:
2184 bskchar "The italic letter o with Hungarian umlaut";
2185 beginchar(chars.latin_ohumlaut,10u#,asc_height#,0); uni "0x0151";
2186 italcorr asc_height#*slant;
2187 adjust_fit(0,0);
2188 pickup tiny.nib;
2189 usechar;
2190 x101-x100=3u; .5[x100,x101]=x4r+1.75u;
2191 h_umlaut(100,101,102,103,2u);
2192 endchar;
2193
2194 iff known chars.latin_obreve:
2195 bskchar "The italic letter o with breve";
2196 beginchar(chars.latin_obreve,10u#,asc_height#+o#,0); uni "0x014F";
2197 italcorr asc_height#*slant-1.25u#;
2198 adjust_fit(0,0);
2199 pickup tiny.nib;
2200 usechar;
2201 x101=x4r; x102-x100=5u;
2202 breve(100,101,102);
2203 endchar;
2204
2205 iff known chars.latin_oinvbreve:
2206 bskchar "The italic letter o with inverted breve";
2207 beginchar(chars.latin_oinvbreve,10u#,asc_height#+o#,0); uni "0x020F";
2208 italcorr .5[asc_height#,x_height#]*slant-u#;
2209 adjust_fit(0,0);
2210 pickup tiny.nib;
2211 usechar;
2212 x101=x4r; x102-x100=5u;
2213 tieacc(100,101,102);
2214 endchar;
2215
2216 iff known chars.latin_o_masculine:
2217 bskchar "Masculine ordinal indicator (superscript latin o)";
2218 beginchar(chars.latin_o_masculine,6u#,asc_height#-.5x_height#,0); uni "0x00BA";
2219 italcorr (asc_height#-.75x_height#)*slant;
2220 adjust_fit(0,0);
2221 pickup tiny.nib;
2222 multiply(.85)(curve,hair,vair);
2223 usechar shifted (-x1l,-y2l) scaled .5 shifted (u+HH*slant,HH);
2224 endchar;
2225
2226 charscription(10u,x_height,.85desc_depth)(
2227 path p[];
2228 pos1(curve,0); pos2(hair,90); pos3(curve,180); pos4(hair,270);
2229 pos5(stem,0); pos6(curve,0); pos7(hair,45); pos8(hair,160);
2230 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4;
2231 bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
2232 x5=x6l+1.5u; x5=x2; x7-x6l=3u; rt x8l=x7+1.5u;
2233 bot y5=0; y6=-.5d; bot y7l=-d; y8=-2/3d;
2234 p0=z1l{down}..z2l..{up}z3l..z4l..{down}z1l;
2235 p1=z5l{z6l-z5r}..z6l...z7l..{z5-z6}z8l..z8r{z6-z5}..z7r..z6r..z5r;
2236 filldraw subpath(0,rundy(p0,(1,stem)).zpet) of p0
2237 ..subpath(rundy(p1,(0,stem)),rundy(p1,infinity).zpet) of p1
2238 ..subpath(rundy(p1,(1,stem)),infinity) of p0..cycle;
2239 infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle;
2240 penlabels(1,2,3,4,5,6,7,8);
2241 );
2242
2243 iff known chars.latin_oogonek:
2244 bskchar "The italic letter o with ogonek";
2245 beginchar(chars.latin_oogonek,10u#,x_height#,.85desc_depth#); uni "0x01EB";
2246 italcorr .5x_height#*slant;
2247 adjust_fit(0,0);
2248 pickup tiny.nib;
2249 usechar;
2250 endchar;
2251
2252 iff known chars.latin_oogonekmacron:
2253 bskchar "The italic letter o with ogonek and macron";
2254 beginchar(chars.latin_oogonekmacron,10u#,.5[asc_height#,x_height#],.85desc_depth#); uni "0x01ED";
2255 italcorr .5[asc_height#,x_height#]*slant-.75u#;
2256 adjust_fit(0,0);
2257 pickup tiny.nib;
2258 usechar;
2259 macron(100,101);
2260 endchar;
2261
2262 charscription(10u,x_height,0)(
2263 numeric tim[]; path p[];
2264 oblu:=2oblu;
2265 pos1(curve,0); pos2(hair,90); pos3(curve,180); pos4(hair,270);
2266 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4; bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u;
2267 z5=(w-u,h); z6=(u,0); pos5(hair, angle(z6-z5)+90); pos6(hair,angle(z6-z5)+90);
2268 z0r=.5[z5r,z6r]; z0l=.5[z5l,z6l];
2269 p0:=z1l{down}..z2l..z3l..z4l..{down}z1l;
2270 p1:=z1r{up}..z4r..z3r..z2r..{up}z1r;
2271 bskpoints(5,6,hair,hair);
2272 (tim1,tim2)=p0 intersectiontimes (z5l--z6l);
2273 (tim3,tim4)=p0 intersectiontimes (z6r--z5r);
2274 (tim5,tim6)=p0 intersectiontimes (z0r--z5r);
2275 (tim7,tim8)=p0 intersectiontimes (z5l--z0l);
2276 (tim11,tim12)=p1 intersectiontimes (z0r--z6r);
2277 (tim13,tim14)=p1 intersectiontimes (z0r--z5r);
2278 (tim15,tim16)=p1 intersectiontimes (z0l--z6l);
2279 (tim17,tim18)=p1 intersectiontimes (z5l--z0l);
2280 filldraw subpath (0,rundy(p0,tim1).zpet) of p0
2281 ..subpath(rundy((z5l--z6ll),tim2),infinity) of (z5l--z6ll)
2282 ..subpath(0,rundy(z6r--z5r,tim4).zpet) of (z6r--z5r)
2283 ..subpath(rundy(p0,tim3),rundy(p0,tim5).zpet) of p0
2284 ..subpath(rundy(z0r--z5r,tim6),infinity) of (z0r--z5rr)
2285 ..subpath(0,rundy(z5l--z0l,tim8).zpet) of (z5l--z0l)
2286 ..subpath(rundy(p0,tim7),infinity) of p0--cycle;
2287 infill subpath(0,rundy(z0r--z6r,tim12).zpet) of (z0r--z6r)
2288 ..subpath(rundy(p1,tim11).zpet,rundy(p1,tim13)) of p1
2289 ..subpath(rundy(z5r--z0r,tim14),infinity) of (z5r--z0r)--cycle;
2290 infill subpath (0, rundy(p1,tim17).zpet) of p1
2291 ..subpath(rundy(z5l--z0l,tim18),infinity) of (z5l--z0l)
2292 ..subpath(0,rundy(z0l--z6l,tim16).zpet) of (z0l--z6l)
2293 ..subpath(rundy(p1,tim15),infinity) of p1--cycle;
2294 penlabels(0,1,2,3,4,5,6);
2295 );
2296
2297 iff known chars.latin_oslash:
2298 bskchar "The italic letter o slash";
2299 beginchar(chars.latin_oslash,10u#,x_height#,0); uni "0x00F8";
2300 italcorr x_height#*slant;
2301 adjust_fit(0,0);
2302 pickup tiny.nib;
2303 usechar;
2304 endchar;
2305
2306 iff known chars.latin_oslashacute:
2307 bskchar "The italic letter o slash with acute";
2308 beginchar(chars.latin_oslashacute,10u#,asc_height#,0); uni "0x01FF";
2309 italcorr x_height#*slant;
2310 adjust_fit(0,0);
2311 pickup tiny.nib;
2312 usechar;
2313 x101=x4l;
2314 acute(100,101);
2315 endchar;
2316
2317 iff known chars.latin_p:
2318 bskchar "The italic letter p";
2319 beginchar(chars.latin_p,12u#,.5[asc_height#,x_height#],desc_depth#); uni "0x0070";
2320 italcorr bar_height#*slant;
2321 adjust_fit(0,0);
2322 pickup tiny.nib;
2323 numeric tim[]; path p[]; oblu:=3oblu;
2324 pos1(stem,0); pos2(stem,0); pos11(stem,0);
2325 pos1'(1.3stem,10); pos7(hair,0); pos8(hair,-40);
2326 x1=x1'=x2=x11; lft x1l=2.75u;
2327 y1=x_height+o; y2=.5bar_height; bot y11=-d; top y1'r=h;
2328 pos3(.5[hair,stem],90); pos4(curve,180);
2329 pos5(hair,-90); pos6(stem,0);
2330 x3=.5[w-u,x2]-u; bot y3l=-o;
2331 rt x4l=w-u; y4=bar_height;
2332 x5=x3+1.5u; top y5l=x_height+o;
2333 x6=x2; y6=.5bar_height;
2334 serif_bot(11); forsuffixes $=11b,11c,11d,11e: x$:=x$+hair; endfor;
2335 p0=z2r---z1r..{up}z1'r..{down}z1'l;
2336 p1=z2l..z3l..z4l..{left}z5l..{down}z6l;
2337 p2=z11f--z2r;
2338 (tim0,tim1)=p0 intersectiontimes p1;
2339 (tim2,tim3)=p2 intersectiontimes p1;
2340 y7=ypart(point tim0 of p0)+stem; x7l=x1l;
2341 y8=3/4bar_height; lft x8l=.5u;
2342 p3=z8r{dir30}..z7r{up};
2343 p4=z7l---z11a;
2344 (tim4,tim5)=p3 intersectiontimes p4;
2345 filldraw subpath(rundy(p0,(tim0,2curve)),infinity) of p0
2346 ..z7l..{dir-150}z8l
2347 ..subpath(0,rundy(p3,tim4).zpet) of p3
2348 ..subpath(rundy(p4,tim5),infinity) of p4
2349 ..{left}z11b..z11c---z11d..{left}z11e
2350 ..{up}subpath(0,rundy(p2,tim2).zpet) of p2
2351 ..subpath(rundy(p2,tim3),rundy(p1,(tim1,1.5curve)).zpet) of p1..cycle;
2352 infill z6r{down}..z3r..z4r..{left}z5r..cycle;
2353 penlabels(1,1',2,3,4,5,6,7,8,11);
2354 math_fit(0,ic#);
2355 endchar;
2356
2357 iff known chars.latin_thorn:
2358 bskchar "The italic letter thorn";
2359 beginchar(chars.latin_p,12u#,asc_height#,desc_depth#); uni "0x00FE";
2360 italcorr bar_height#*slant;
2361 adjust_fit(0,0);
2362 pickup tiny.nib;
2363 numeric tim[]; path p[]; oblu:=3oblu;
2364 pos1(stem,0); pos2(stem,0); pos11(stem,0);
2365 pos1'(stem,0); pos7(hair,0); pos8(hair,-40);
2366 x1=x1'=x2=x11; lft x1l=2.75u;
2367 y1=x_height+o; y2=.5bar_height; bot y11=-d; top y1'r=h;
2368 ital_serif(1',2);
2369 pos3(.5[hair,stem],90); pos4(curve,180);
2370 pos5(hair,-90); pos6(stem,0);
2371 x3=.5[w-u,x2]-u; bot y3l=-o;
2372 rt x4l=w-u; y4=bar_height;
2373 x5=x3+1.5u; top y5l=x_height+o;
2374 x6=x2; y6=.5bar_height;
2375 serif_bot(11); forsuffixes $=11b,11c,11d,11e: x$:=x$+hair; endfor;
2376 p0=z2r---z1r..{up}_is;
2377 p1=z2l..z3l..z4l..{left}z5l..{down}z6l;
2378 p2=z11f--z2r;
2379 (tim0,tim1)=p0 intersectiontimes p1;
2380 (tim2,tim3)=p2 intersectiontimes p1;
2381 y7=ypart(point tim0 of p0)+stem; x7l=x1l;
2382 y8=3/4bar_height; lft x8l=.5u;
2383 p3=z8r{dir30}..z7r{up};
2384 p4=z7l---z11a;
2385 (tim4,tim5)=p3 intersectiontimes p4;
2386 filldraw subpath(rundy(p0,(tim0,2curve)),infinity) of p0
2387 ..z7l..{dir-150}z8l
2388 ..subpath(0,rundy(p3,tim4).zpet) of p3
2389 ..subpath(rundy(p4,tim5),infinity) of p4
2390 ..{left}z11b..z11c---z11d..{left}z11e
2391 ..{up}subpath(0,rundy(p2,tim2).zpet) of p2
2392 ..subpath(rundy(p2,tim3),rundy(p1,(tim1,1.5curve)).zpet) of p1..cycle;
2393 infill z6r{down}..z3r..z4r..{left}z5r..cycle;
2394 penlabels(1,1',2,3,4,5,6,7,8,11);
2395 endchar;
2396
2397 iff known chars.latin_q:
2398 bskchar "The italic letter q";
2399 beginchar(chars.latin_q,10.5u#,x_height#,desc_depth#); uni "0x0071";
2400 italcorr x_height#*slant-u#;
2401 adjust_fit(0,0);
2402 pickup tiny.nib;
2403 numeric tim[]; path p[]; oblu:=3oblu;
2404 pos1(stem,0); pos2(stem,0);
2405 x1=x2; rt x1r=w-2u;
2406 y1=h; y2=-d; z1'=z1r+.5stem*dir60;
2407 serif_bot(2); forsuffixes $=2b,2c,2d,2e: x$:=x$-hair; endfor;
2408 pos4(hair,-90); pos5(curve,180);
2409 pos6(.5[hair,stem],90); pos7(stem,0);
2410 x4=.5[u,x2]-.5u; bot y4r=-o;
2411 lft x5r=u; y5=bar_height;
2412 x6=x4+u; top y6r=x_height+o;
2413 x7=x2; y7=bar_height;
2414 p0=z7l..{dir40}z1'{dir-120}..z1r---z2f..{right}z2e..z2d---z2c..{right}z2b..z2a---z7l;
2415 p1=z7r{down}..z4r..z5r..{right}z6r..{down}z7r;
2416 (tim0,tim1)=p0 intersectiontimes p1;
2417 (tim2-4,tim3)=subpath(4,infinity) of p0 intersectiontimes p1;
2418 filldraw subpath(rundy(p0,tim0),rundy(p0,tim2).zpet) of p0
2419 ..subpath(rundy(p1,tim3),rundy(p1,tim1).zpet) of p1
2420 ..cycle;
2421 infill z7l{down}..z4l..z5l..{right}z6l..cycle;
2422 penlabels(1,2,4,5,6,7); labels(1');
2423 math_fit(mft,ic#-.5u#);
2424 endchar;
2425
2426 charscription(9u if bold_face:+u fi,x_height, 0)(
2427 path p[]; numeric tim[]; oblu:=3oblu;
2428 pos1(stem,0); pos1'(.5[hair,stem],100); pos2(stem,0); pos2'(.8stem,5);
2429 pos3(stem,30); pos4(hair,90); pos5(hair,135); pos6(hair,180);
2430 pos7(hair,150); y7=x_height-.25bar_height; x7r=0;
2431 z7'=z7l+hair*dir(-110);
2432 x1l=3u; x2=x2'=x1; y1=bar_height; y2=u; bot y2'=0;
2433 top y1'r=h+o; x1'=1.5u;
2434 rt x3r=w-u; y3r=y4-.75like_stem;
2435 top z4r=(x3l-2hair,x_height+o);
2436 z3'=z3+.25stem*unitvector(z3-z4);
2437 x6l=x1r; y6=.8bar_height;
2438 z5=.75[z6,z4]+.75stem*(unitvector(z4-z6) rotated 90);
2439 z8=.6[z1,z1']+.6stem*(unitvector(z1'-z1) rotated -90); pos8(stem,angle(z1'-z1)-90);
2440 p1:=z2r---z6l..z5l..{right}z4l..z3l..z3'..z3r{up}..{dir180}z4r..z5r..{down}z6r;
2441 p2:=z1r{up}..z8r..{left}z1'r..z7r{dir-120}..z7'&z7'..z7l{dir60}..{right}z1'l..z8l..z1l---z2l..z2'l..z2'r..{up}z2r;
2442 (tim1-8,tim2)=subpath(8,infinity) of p1 intersectiontimes p2 if hppp<=300: shifted right fi;
2443 filldraw subpath(0,rundy(p1,tim1).zpet) of p1
2444 ..subpath(rundy(p2,tim2),infinity) of p2---cycle;
2445 penlabels(1,1',2,2',3,4,5,6,7,8); labels(3',7');
2446 );
2447
2448 iff known chars.latin_r:
2449 bskchar "The italic letter r";
2450 beginchar(chars.latin_r,9u# if bold_face: +u# fi, x_height#, 0); uni "0x0072";
2451 italcorr x_height#*slant-.25u#;
2452 adjust_fit(0,0);
2453 pickup tiny.nib;
2454 usechar;
2455 math_fit(0,ic#-2u#);
2456 endchar;
2457
2458 iff known chars.latin_racute:
2459 bskchar "The italic letter r with acute";
2460 beginchar(chars.latin_racute,9u# if bold_face: +u# fi, asc_height#, 0); uni "0x0155";
2461 italcorr asc_height#*slant-u#;
2462 adjust_fit(0,0);
2463 pickup tiny.nib;
2464 usechar;
2465 x101=x1r;
2466 acute(100,101);
2467 endchar;
2468
2469 iff known chars.latin_rcaron:
2470 bskchar "The italic letter r with caron";
2471 beginchar(chars.latin_rcaron,9u# if bold_face: +u# fi, asc_height#, 0); uni "0x0159";
2472 italcorr asc_height#*slant-u#;
2473 adjust_fit(0,0);
2474 pickup tiny.nib;
2475 usechar;
2476 x101=x1r;
2477 hacek(100,101,102);
2478 endchar;
2479
2480 iff known chars.latin_rdoublegrave:
2481 bskchar "The italic letter r with double grave";
2482 beginchar(chars.latin_rdoublegrave,9u#,asc_height#,0); uni "0x0211";
2483 italcorr x_height#*slant-.25u#;
2484 adjust_fit(0,0);
2485 pickup tiny.nib;
2486 usechar;
2487 x102-x100=3u;
2488 d_grave(100,101,102,103,x1);
2489 endchar;
2490
2491 iff known chars.latin_rcedilla:
2492 bskchar "The italic letter r with cedilla (treated as comma)";
2493 beginchar(chars.latin_rcedilla,9u#,x_height#,.75comma_depth#); uni "0x0157";
2494 italcorr x_height#*slant-.25u#;
2495 adjust_fit(0,0);
2496 pickup tiny.nib;
2497 usechar;
2498 x100=x1; top y100''r=-2o;
2499 comma(100,.75dot_size,.5hair,.75comma_depth);
2500 endchar;
2501
2502 iff known chars.latin_rinvbreve:
2503 bskchar "The italic letter r with inverted breve";
2504 beginchar(chars.latin_rinvbreve,9u#,asc_height#,0); uni "0x0213";
2505 italcorr x_height#*slant-.25u#;
2506 adjust_fit(0,0);
2507 pickup tiny.nib;
2508 usechar;
2509 x101=x1r; x102-x100=5u;
2510 tieacc(100,101,102);
2511 endchar;
2512
2513 charscription(7u,x_height,0)(
2514 numeric theta;
2515 lft x1l=1.5u; rt x2r=w-1.2u;
2516 h-y1l=.9y2r=2.2u;
2517 theta=angle(z1l-z2r)-135;
2518 pos1(stem,theta); pos2(stem,theta);
2519 pos3(hair,-90); pos4(hair,-90);
2520 pos5(.75[hair,stem],30); pos6(.75[hair,stem],20);
2521 x3-o=x4=.5w; top y3l=h+o; bot y4l=-o;
2522 rt x5r=w-u; y5r=y3-.75like_stem;
2523 lft x6l=u; y6l=y4+like_stem;
2524 z5'=z5l+.25stem*unitvector(z5-z3);
2525 z6'=z6+.25stem*unitvector(z6-z4);
2526 filldraw z5r..z3l{left}..z1l..tension atleast 1.5..z2l
2527 ..{left}z4l..z6r{up}..z6'..z6l..{right}z4r..z2r
2528 ..tension atleast 1.5..z1r..{right}z3r..z5l..z5'..cycle;
2529 penlabels(0,1,2,3,4,5,6); labels(5',6');
2530 );
2531
2532 iff known chars.latin_s:
2533 bskchar "The italic letter s";
2534 beginchar(chars.latin_s,7u#, x_height#, 0); uni "0x0073";
2535 italcorr x_height#*slant-.25u#;
2536 adjust_fit(0,0);
2537 pickup tiny.nib;
2538 usechar;
2539 math_fit(-.5u#,ic#-.5u#);
2540 endchar;
2541
2542 iff known chars.latin_scaron:
2543 bskchar "The italic letter s with caron";
2544 beginchar(chars.latin_scaron,7u#, asc_height#, 0); uni "0x0161";
2545 italcorr asc_height#*slant;
2546 adjust_fit(0,0);
2547 pickup tiny.nib;
2548 usechar;
2549 x101=x3; x100r=u;
2550 hacek(100,101,102);
2551 endchar;
2552
2553 iff known chars.latin_scircumflex:
2554 bskchar "The italic letter s with circumflex";
2555 beginchar(chars.latin_scircumflex,7u#, asc_height#-.1x_height#, 0); uni "0x015D";
2556 italcorr .5[asc_height#,x_height#]*slant;
2557 adjust_fit(0,0);
2558 pickup tiny.nib;
2559 usechar;
2560 x101=x3; x102-x100=5u;
2561 circumflex(100,101,102);
2562 endchar;
2563
2564 iff known chars.latin_sacute:
2565 bskchar "The italic letter s with acute";
2566 beginchar(chars.latin_sacute,7u#, asc_height#, 0); uni "0x015B";
2567 italcorr asc_height#*slant;
2568 adjust_fit(0,0);
2569 pickup tiny.nib;
2570 usechar;
2571 x101=x3;
2572 acute(100,101);
2573 endchar;
2574
2575 iff known chars.latin_scommabelow:
2576 bskchar "The italic letter s with comma below";
2577 beginchar(chars.latin_scommabelow,7u#,x_height#,.75comma_depth#); uni "0x0219";
2578 italcorr x_height#*slant-.25u#;
2579 adjust_fit(0,0);
2580 pickup tiny.nib;
2581 usechar;
2582 x100=x4; top y100''r=-2o;
2583 comma(100,.75dot_size,.5hair,.75comma_depth);
2584 endchar;
2585
2586 iff known chars.latin_scedilla:
2587 bskchar "The italic letter s with cedilla";
2588 beginchar(chars.latin_scedilla,7u#, x_height#, .65desc_depth#); uni "0x015F";
2589 italcorr x_height#*slant-.25u#;
2590 adjust_fit(0,0);
2591 pickup tiny.nib;
2592 numeric theta, tim[];
2593 path p[];
2594 lft x1l=1.5u; rt x2r=w-1.2u;
2595 h-y1l=.9y2r=2.2u;
2596 theta=angle(z1l-z2r)-135;
2597 pos1(stem,theta); pos2(stem,theta);
2598 pos3(hair,-90); pos4(hair,-90);
2599 pos5(.75[hair,stem],30); pos6(.75[hair,stem],20);
2600 pos7(.5stem,0); pos8(.5stem,0); pos9(.8stem,0); pos10(.5stem,-110);
2601 x3-o=x4=.5w; top y3l=h+o; bot y4l=-o;
2602 rt x5r=w-u; y5r=y3-.75like_stem;
2603 lft x6l=u; y6l=y4+like_stem;
2604 z5'=z5l+.25stem*unitvector(z5-z3);
2605 z6'=z6+.25stem*unitvector(z6-z4);
2606 x7r=x8r; z7l=z4r; y8=-hair; y9=-.5d;
2607 rt x9r-lft x10r=4u; x7r-lft x10r=2u; y10r=-d;
2608 p1:=z6r{up}..z6'..z6l..{right}z4r..z2r..tension atleast 1.5..z1r..{right}z3r..z5l..z5';
2609 p2:=z8r..{down}z9r..{left}z10r..{right}z10l..{up}z9l..z8l--z7l;
2610 p3:=reverse(z7r{down}..subpath (rundy(p2,(0,curve)),infinity) of p2);
2611 tim1=xpart(p1 intersectiontimes (z8l--(x7l,y4l)));
2612 filldraw z5r..z3l{left}..z1l..tension atleast 1.5..z2l
2613 ..{left}z4l..{up}z6r..subpath(0,rundy(p1,3).zpet) of p1
2614 ..subpath(rundy(p3,0),rundy(p3,infinity).zpet) of p3
2615 ..subpath(rundy(p1,tim1),infinity) of p1
2616 ..cycle;
2617 penlabels(0,1,2,3,4,5,6,7,8,9,10); labels(5',6');
2618 endchar;
2619
2620 iff known chars.latin_long_s:
2621 bskchar "The italic letter long s";
2622 beginchar(chars.latin_long_s,7u#,asc_height#,desc_depth#); uni "0x017F";
2623 italcorr asc_height#*slant+3.5u#;
2624 adjust_fit(0,0);
2625 pickup tiny.nib;
2626 oblu:=2oblu;
2627 pos1(stem,0); pos2(stem,0); pos3(hair,-90);
2628 pos4(hair,-90); pos5(stem,-150); pos6(stem,30);
2629 x1=x2; x1=.5w;
2630 y2=-.5d; .5[y1,y2]=.5(h-d);
2631 bot y4r=-d-o; if monospace: lft x5r=0; x4=.5[x5,x2]; else: x4=.5u; lft x5r=x4-x1; fi y5l=.75[y4l,y2];
2632 z5'=z5l+.5stem*unitvector(z5-z4);
2633 top y3l=h+o; x6-x1=x2-x5; y6r=y3-1.5like_stem; x3=.5[x1,x6];
2634 z6'=z6+.25stem*unitvector(z6-z3);
2635 pos7(hair,90); pos8(hair,90);
2636 y7=y8=bot x_height;
2637 x8=x1l; lft x7=.5u;
2638 filldraw z4r{right}..z2r---z1r
2639 ..{right}z3r..z6l..z6'..z6r{up}..z3l{left}
2640 ..z1l---obl(8r,1l,7r)---z7r..z7l
2641 ---obl(8l,7l,2l)---z2l..{left}z4l..z5l{up}
2642 ..z5'..z5r..cycle;
2643 penlabels(1,2,3,4,5,6,7,8,9,10); labels(5',6');
2644 endchar;
2645
2646 iff known chars.latin_eszet:
2647 bskchar "The italic german eszet";
2648 beginchar(chars.latin_eszet,10u#,asc_height#,desc_depth#); uni "0x00DF";
2649 italcorr .5[asc_height#,x_height#]*slant-.5u#;
2650 adjust_fit(0,0);
2651 pickup tiny.nib;
2652 numeric theta;
2653 oblu:=2oblu;
2654 pos1(stem,0); pos2(stem,0); pos3(hair,-90);
2655 pos4(hair,-90); pos5(stem,-150); pos6(hair,0);
2656 x1=x2; x1=3u;
2657 y2=-.5d; .5[y1,y2]=.5(h-d);
2658 bot y4r=-d-o; if monospace: lft x5r=0; x4=.5[x5,x2]; else: x4=.5u; lft x5r=x4-x1; fi
2659 y5l=.75[y4l,y2];
2660 z5'=z5l+.5stem*unitvector(z5-z4);
2661 top y3l=h+o; x6-x1=x2-x5; y6r=.5[y3,y12]; x3=.5[x1,x6];
2662 pos7(hair,90); pos8(hair,90);
2663 y7=y8=bot x_height;
2664 x8=x1l; lft x7=.75u;
2665 lft x10l=x1r+2u; rt x11r=w-u;
2666 x_height-y10l=.9y11r=2.2u;
2667 theta=angle(z10l-z11r)-135;
2668 pos10(stem,theta); pos11(stem,theta);
2669 pos12(hair,-90); pos13(hair,-90);
2670 pos14(.75[hair,stem],20);
2671 x12-o=x13=x3+1.2u; top y12l=x_height+o; bot y13l=-o;
2672 lft x14l=x1r+1.5u; y14l=y13+like_stem;
2673 z14'=z14+.25stem*unitvector(z14-z13);
2674 filldraw z4r{right}..z2r---z1r
2675 ..{right}z3r..z6l
2676 ..z12l{z8-z6}..z10l..tension atleast 1.5..z11l
2677 ..{left}z13l..z14r{up}..z14'..z14l..{right}z13r..z11r
2678 ..tension atleast 1.5..z10r..{z6-z8}z12r
2679 ..z6r..z3l{left}
2680 ..z1l---obl(8r,1l,7r)---z7r..z7l
2681 ---obl(8l,7l,2l)---z2l..{left}z4l..z5l{up}
2682 ..z5'..z5r..cycle;
2683 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14); labels(5',14');
2684 endchar;
2685
2686 charscription(7.5u,.4[asc_height,x_height],0)(
2687 oblu:=2oblu;
2688 pos1(stem,0); pos1'(.8stem,5); pos2(stem,0);
2689 pos4(hair,90); pos4'(hair,90); pos5(hair,90); pos5'(hair,90);
2690 x1=x1'=x2=.5w;
2691 y1=h-u; top y1'=h; y2=.35bar_height;
2692 y4=y4'=y5=y5'=bot x_height; lft x4=u; rt x5=w-u;
2693 x4'=x1l; x5'=x1r;
2694 ital_hook(2,3).alt;
2695 filldraw z1l---obl(4'r,1l,4r)---z4r..z4l---obl(4'l,4l,2l)
2696 ---_ih---obl(5'l,2r,5l)---z5l..z5r---obl(5'r,5r,1r)
2697 ---z1r..z1'r..z1'l--cycle;
2698 penlabels(1,1',2,4,4',5,5');
2699 );
2700
2701 iff known chars.latin_t:
2702 bskchar "The italic letter t";
2703 beginchar(chars.latin_t,7.5u#,.4[asc_height#,x_height#], 0); uni "0x0074";
2704 italcorr x_height#*slant;
2705 adjust_fit(0,0);
2706 pickup tiny.nib;
2707 usechar;
2708 math_fit(-x_height#*slant,ic#-.5u#);
2709 endchar;
2710
2711 iff known chars.latin_tcommabelow:
2712 bskchar "The italic letter t with comma below";
2713 beginchar(chars.latin_tcommabelow,7.5u#,.4[asc_height#,x_height#],.75comma_depth#); uni "0x021B";
2714 italcorr x_height#*slant;
2715 adjust_fit(0,0);
2716 pickup tiny.nib;
2717 usechar;
2718 x100=x2'l; top y100''r=-2o;
2719 comma(100,.75dot_size,.5hair,.75comma_depth);
2720 endchar;
2721
2722 iff known chars.latin_tcaron:
2723 bskchar "The italic letter t with caron (treated like comma)";
2724 beginchar(chars.latin_tcaron,7.5u# if bold_face: +.5u# fi, asc_height#, 0); uni "0x0165";
2725 italcorr asc_height#*slant-.25u#;
2726 adjust_fit(0,0);
2727 pickup tiny.nib;
2728 usechar;
2729 rt x100'''=w-u; top y100''r=h;
2730 comma(100,.75dot_size,.5hair,.75comma_depth);
2731 endchar;
2732
2733 iff known chars.latin_tcedilla:
2734 bskchar "The italic letter t with cedilla";
2735 beginchar(chars.latin_tcedilla,7.5u#,.4[asc_height#,x_height#],.65desc_depth#); uni "0x0163";
2736 italcorr x_height#*slant;
2737 adjust_fit(0,0);
2738 pickup tiny.nib;
2739 numeric tim[]; path p[];
2740 oblu:=2oblu;
2741 pos1(stem,0); pos1'(.8stem,5); pos2(stem,0);
2742 pos4(hair,90); pos4'(hair,90); pos5(hair,90); pos5'(hair,90);
2743 pos6(.5stem,0); pos7(.5stem,0); pos8(.8stem,0); pos9(.5stem,-110);
2744 x1=x1'=x2=.5w;
2745 y1=h-u; top y1'=h; y2=.35bar_height;
2746 y4=y4'=y5=y5'=bot x_height; lft x4=u; rt x5=w-u;
2747 x4'=x1l; x5'=x1r;
2748 x6r=x7r; z6l=z2'l; y7=-hair; y8=-.5d;
2749 rt x8r-lft x9r=4u; x6r-lft x9r=2u; y9r=-d;
2750 ital_hook(2,3).alt;
2751 p1:=z7r..{down}z8r..{left}z9r..{right}z9l..{up}z8l..z7l--z6l;
2752 p2:=reverse(z6r{down}..subpath (rundy(p1,(0,curve)),infinity) of p1);
2753 tim1=xpart(_ih intersectiontimes (z7l--(x6l,y2')));
2754 tim2=xpart(_ih intersectiontimes (z7r--(x6r,y2')));
2755 filldraw z1l---obl(4'r,1l,4r)---z4r..z4l---obl(4'l,4l,2l)
2756 ---subpath(0,rundy(_ih,tim1).zpet) of _ih
2757 ..subpath(rundy(p2,0),rundy(p2,infinity).zpet) of p2
2758 ..subpath(rundy(_ih,tim2),infinity) of _ih---obl(5'l,2r,5l)---z5l..z5r---obl(5'r,5r,1r)
2759 ---z1r..z1'r..z1'l--cycle;
2760 penlabels(1,1',2,4,4',5,5',6,7,8,9);
2761 endchar;
2762
2763 iff known chars.latin_tstroke:
2764 bskchar "The italic letter t with stroke";
2765 beginchar(chars.latin_tstroke,7.5u#,.4[asc_height#,x_height#], 0); uni "0x0167";
2766 italcorr x_height#*slant;
2767 adjust_fit(0,0);
2768 pickup tiny.nib;
2769 oblu:=2oblu;
2770 pos1(stem,0); pos1'(.8stem,5); pos2(stem,0);
2771 pos4(hair,90); pos4'(hair,90); pos5(hair,90); pos5'(hair,90);
2772 pos6(bar,90); pos6'(bar,90); pos7(bar,90); pos7'(bar,90);
2773 x1=x1'=x2=.5w;
2774 y1=h-u; top y1'=h; y2=.35bar_height;
2775 y4=y4'=y5=y5'=bot x_height; lft x4=u; rt x5=w-u;
2776 x4'=x1l; x5'=x1r;
2777 x7-x6=4u; y7=y7'=y6=y6'=bar_height; .5[x6,x7]=x1;
2778 x6'=x1l; x7'=x1r; bskpoints(6,7,.5bar,.5bar);
2779 ital_hook(2,3).alt;
2780 filldraw z1l---obl(4'r,1l,4r)---z4r..z4l---obl(4'l,4l,2l)
2781 ---obl(6'r,4'l,6r)---z6rr..z6l---obl(6'l,6l,2l)
2782 ---_ih---obl(7'l,2r,7l)---z7ll..z7r---obl(7'r,7r,1r)---obl(5'l,2r,5l)---z5l..z5r---obl(5'r,5r,1r)
2783 ---z1r..z1'r..z1'l--cycle;
2784 penlabels(1,1',2,4,4',5,5',6,6',7,7'); labels(6rr,7ll);
2785 endchar;
2786
2787 charscription(10.5u,x_height,0)(
2788 numeric H; H=x_height;
2789 numeric tim[], dl; path p[]; oblu:=2oblu;
2790 pos1(stem,0); pos2(stem,0);
2791 pos3(stem,0); pos3'(.8stem,5); pos4(stem,0);
2792 pos6(.5[hair,stem],90); pos7(hair,180);
2793 x1=x2; lft x1l=2u; x3=x3'=x4; rt x3r=w-2u;
2794 y1=H-.3bar_height; y2=y4=.35bar_height;
2795 y3=h-u; top y3'=h; bot y6l=-o; x6=1/3[x2,x4];
2796 x7r=x3l; y7=bar_height;
2797 ital_kooh(1,0).alt; ital_hook(4,5).alt;
2798 p0=reverse _ik---z2r..z6r..z7r---z3l..z3'l..z3'r..z3r---reverse _ih..{up}z7r;
2799 p1=z7l{down}..z6l..z2l---z1l;
2800 dl:=length p0;
2801 z8=bsktouch(subpath(dl-2,dl) of p0,left,p1,right);
2802 tim0-dl+2=xpart(subpath(dl-2,dl) of p0 intersectiontimes (z8--(w,y8)));
2803 tim1=xpart(p1 intersectiontimes (z8--(x6,y8)));
2804 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
2805 ..subpath(rundy(p1,tim1),infinity) of p1..cycle;
2806 penlabels(0,1,2,3,3',4,6,7);
2807 );
2808
2809 iff known chars.latin_u:
2810 bskchar "The italic letter u";
2811 beginchar(chars.latin_u,10.5u#, x_height#, 0); uni "0x0075";
2812 italcorr x_height#*slant-.75u#;
2813 adjust_fit(0,0);
2814 pickup tiny.nib;
2815 usechar;
2816 math_fit(0,ic#);
2817 endchar;
2818
2819 iff known chars.latin_uacute:
2820 bskchar "The italic letter u with acute";
2821 beginchar(chars.latin_uacute,10.5u#, asc_height#, 0); uni "0x00FA";
2822 italcorr x_height#*slant-.75u#;
2823 adjust_fit(0,0);
2824 pickup tiny.nib;
2825 usechar;
2826 x101=x6;
2827 acute(100,101);
2828 endchar;
2829
2830 iff known chars.latin_uring:
2831 bskchar "The italic letter u with ring";
2832 beginchar(chars.latin_uring,10.5u#, asc_height#, 0); uni "0x016F";
2833 italcorr x_height#*slant-.75u#;
2834 adjust_fit(0,0);
2835 pickup tiny.nib;
2836 usechar;
2837 x100=.5[x1r,x3l]; lft x101=.5[x6,x2r];
2838 ring(100,101);
2839 endchar;
2840
2841 iff known chars.latin_uumlaut:
2842 bskchar "The italic letter u with umlaut";
2843 beginchar(chars.latin_uumlaut,10.5u#, asc_height#-dot_size#, 0); uni "0x00FC";
2844 italcorr (asc_height#-dot_size#)*slant-u#;
2845 adjust_fit(0,0);
2846 pickup tiny.nib;
2847 usechar;
2848 lft x100=x1r; rt x101=x3l;
2849 umlaut(100,101);
2850 endchar;
2851
2852 iff known chars.latin_ugrave:
2853 bskchar "The italic letter u with grave";
2854 beginchar(chars.latin_ugrave,10.5u#,asc_height#,0); uni "0x00F9";
2855 italcorr x_height#*slant-.75u#;
2856 adjust_fit(0,0);
2857 pickup tiny.nib;
2858 usechar;
2859 x101=.5[x1r,x3l];
2860 grave(100,101);
2861 endchar;
2862
2863 iff known chars.latin_udoublegrave:
2864 bskchar "The italic letter u with double grave";
2865 beginchar(chars.latin_udoublegrave,10.5u#,asc_height#,0); uni "0x0215";
2866 italcorr x_height#*slant-.75u#;
2867 adjust_fit(0,0);
2868 pickup tiny.nib;
2869 usechar;
2870 x102-x100=3u;
2871 d_grave(100,101,102,103,x6);
2872 endchar;
2873
2874 iff known chars.latin_umacron:
2875 bskchar "The italic letter u with macron";
2876 beginchar(chars.latin_umacron,10.5u#,.5[asc_height#,x_height#],0); uni "0x016B";
2877 italcorr x_height#*slant-.75u#;
2878 adjust_fit(0,0);
2879 pickup tiny.nib;
2880 usechar;
2881 x100=x1r; x101=x3l;
2882 macron(100,101);
2883 endchar;
2884
2885 iff known chars.latin_ucaron:
2886 bskchar "The italic letter u with caron";
2887 beginchar(chars.latin_ucaron,10.5u#,asc_height#,0); uni "0x01D4";
2888 italcorr asc_height#*slant-u#;
2889 adjust_fit(0,0);
2890 pickup tiny.nib;
2891 usechar;
2892 x101=.5[x1,x3];
2893 hacek(100,101,102);
2894 endchar;
2895
2896 iff known chars.latin_ucircumflex:
2897 bskchar "The italic letter u with circumflex";
2898 beginchar(chars.latin_ucircumflex,10.5u#,asc_height#-.1x_height#,0); uni "0x00FB";
2899 italcorr x_height#*slant-.5u#;
2900 adjust_fit(0,0);
2901 pickup tiny.nib;
2902 usechar;
2903 x101=.5[x1,x3];
2904 circumflex(100,101,102);
2905 endchar;
2906
2907 iff known chars.latin_ubreve:
2908 bskchar "The italic letter u with breve";
2909 beginchar(chars.latin_ubreve,10.5u#,asc_height#,0); uni "0x016D";
2910 italcorr asc_height#*slant-1.25u#;
2911 adjust_fit(0,0);
2912 pickup tiny.nib;
2913 usechar;
2914 x100=x1; x102=x3;
2915 breve(100,101,102);
2916 endchar;
2917
2918 iff known chars.latin_uinvbreve:
2919 bskchar "The italic letter u with inverted breve";
2920 beginchar(chars.latin_uinvbreve,10.5u#,asc_height#,0); uni "0x0217";
2921 italcorr x_height#*slant-.75u#;
2922 adjust_fit(0,0);
2923 pickup tiny.nib;
2924 usechar;
2925 x100=x1; x102=x3;
2926 tieacc(100,101,102);
2927 endchar;
2928
2929 iff known chars.latin_uhumlaut:
2930 bskchar "The italic letter u with Hungarian umlaut";
2931 beginchar(chars.latin_uhumlaut,10.5u#,asc_height#,0); uni "0x0171";
2932 italcorr asc_height#*slant-.25u#;
2933 adjust_fit(0,0);
2934 pickup tiny.nib;
2935 usechar;
2936 x101-x100=3u; .5[x100,x101]=x3l-o;
2937 h_umlaut(100,101,102,103,2u);
2938 endchar;
2939
2940 iff known chars.latin_utilde:
2941 bskchar "The italic letter u with tilde";
2942 beginchar(chars.latin_utilde,10.5u#,asc_height#,0); uni "0x0169";
2943 italcorr asc_height#*slant-u#;
2944 adjust_fit(0,0);
2945 pickup tiny.nib;
2946 usechar;
2947 x101-x100=6u;
2948 tilde(100,101);
2949 endchar;
2950
2951 iff known chars.latin_uogonek:
2952 bskchar "The italic letter u with ogonek";
2953 beginchar(chars.latin_uogonek,10.5u#, x_height#, .85desc_depth#); uni "0x0173";
2954 italcorr x_height#*slant-.75u#;
2955 adjust_fit(0,0);
2956 pickup tiny.nib;
2957 numeric tim[], dl; path p[]; oblu:=2oblu;
2958 pos1(stem,0); pos2(stem,0);
2959 pos3(stem,0); pos3'(.8stem,5); pos4(stem,0);
2960 pos6(.5[hair,stem],90); pos7(hair,180);
2961 pos8(stem,0); pos9(curve,0); pos10(hair,45); pos11(hair,160);
2962 x1=x2; lft x1l=2u; x3=x3'=x4; rt x3r=w-2u;
2963 y1=x_height-.3bar_height; y2=y4=.35bar_height;
2964 y3=h-u; top y3'=h; bot y6l=-o; x6=1/3[x2,x4];
2965 x7r=x3l; y7=bar_height;
2966 ital_kooh(1,0); ital_hook(4,5).alt;
2967 x8=x9l+1.5u; z8r=z4'l; x10-x9l=3u; rt x11l=x10+1.5u;
2968 y9=-.5d; bot y10l=-d; y11=-2/3d;
2969 p0=reverse _ik---z2r..z6r..z7r---z3l..z3'l..z3'r..z3r---reverse _ih..{up}z7r;
2970 p1=z7l{down}..z6l..z2l---z1l;
2971 p2=reverse(z8l{z9l-z8r}..z9l...z10l..{z8-z9}z11l..z11r{z9-z8}..z10r..z9r..z8r);
2972 dl:=length p0;
2973 z12=bsktouch(subpath(dl-2,dl) of p0,left,p1,right);
2974 tim1=xpart(p1 intersectiontimes (z12--(x6,y12)));
2975 tim2=xpart(p0 intersectiontimes ((x8r,-2o)--(x8r,y6)));
2976 filldraw subpath(0,rundy(p0,tim2).zpet) of p0
2977 ..subpath(rundy(p2,0),rundy(p2,infinity).zpet) of p2
2978 ..subpath(rundy(p1,tim1),infinity) of p1..cycle;
2979 penlabels(0,1,2,3,3',4,6,7,8,9,10,11);
2980 endchar;
2981
2982 iff known chars.latin_v:
2983 bskchar "The italic letter v";
2984 beginchar(chars.latin_v,11u#,x_height#,0); uni "0x0076";
2985 italcorr .5[bar_height#,x_height#]*slant;
2986 adjust_fit(0,0);
2987 pickup tiny.nib;
2988 path p[];
2989 pos1(stem,0); pos2(curve,10); pos3(hair,90);
2990 pos6(.5[hair,stem],180); pos7(stem,240);
2991 top y1=h; x1=4u;
2992 lft x2l=2u; y2l=.4bar_height;
2993 bot y3l=-o; x3=.55w;
2994 rt x6l=w-u; y6=bar_height;
2995 top y7l=h+o; x7r=x6r-curve;
2996 z7'=z7+.25stem*unitvector(z7-z6);
2997 z1'=z1l+stem*unitvector(z2l-z1l);
2998 pos4(hair,170); pos5(curve,90); pos1'(1/3[hair,stem],angle(z1l-z2l));
2999 y4=y1'l-hair; lft x4r=0; top y5r=h+o; x5=1/3[x4,x1];
3000 p0=z1'l{left}..z5l..{dir-80}z4l;
3001 p1=reverse (z1'l{down}..z2l..{right}z3l);
3002 filldraw subpath(rundy(p0,0),infinity) of p0
3003 ..{dir110}z4r..z5r..{right}z1'r..z1
3004 ..z1r{down}..z2r..{right}z3r..{up}z6r
3005 ..{z7r-z6}z7r..z7'..{right}z7l..{down}z6l
3006 ..subpath(0,rundy(p1,length p1).zpet) of p1..cycle;
3007 penlabels(1,1',2,3,4,5,6,7); labels(9');
3008 math_fit(-.25u#,ic#-.5u#);
3009 endchar;
3010
3011 charscription(15u,x_height,0)(
3012 numeric tim[]; oblu:=2oblu;
3013 path p[];
3014 pos1(stem,0); pos2(curve,10); pos3(hair,90);
3015 pos6(.5[hair,stem],180); pos7(stem,240);
3016 top y1=h; x1=4u;
3017 lft x2l=2u; y2l=.4bar_height;
3018 bot y3l=-o; x3=1/3w;
3019 rt x6l=w-u; y6=bar_height;
3020 top y7l=h+o; x7r=x6r-1.5curve;
3021 z7'=z7+.25stem*unitvector(z7-z6);
3022 z1'=z1l+stem*unitvector(z2l-z1l);
3023 pos4(hair,170); pos5(curve,90); pos1'(1/3[hair,stem],angle(z1l-z2l));
3024 y4=y1'l-hair; lft x4r=0; top y5r=h+o; x5=1/3[x4,x1];
3025 pos8(hair,180); pos9(hair,-90); pos10(.5[hair,stem],0); pos11(.5[hair,stem],90);
3026 y8=y10=.5bar_height; .5[x8,x10]=x9=.55w; x8-x10=1/8w; top y9l=.8x_height;
3027 .5[x3,x11]=.5w+.5u; y11l=y3l;
3028 p0=z1'l{left}..z5l..{dir-80}z4l;
3029 p1=z11l{left}..z10l..z9l..z8l..{left}z3l..z2l..{up}z1'l;
3030 p2=z3r{right}..z8r..z9r..z10r..{right}z11r;
3031 (tim0,tim1)=p2 intersectiontimes p1;
3032 (tim2,tim3-3)=p2 intersectiontimes subpath(3,4) of p1;
3033 (tim4,tim5)=subpath(0,1) of p1 intersectiontimes p2;
3034 (tim6,tim7-2)=subpath (0,1) of p1 intersectiontimes subpath (2,infinity) of p1;
3035 (tim8,tim9-2)=subpath(0,1) of p2 intersectiontimes subpath(2,infinity) of p2;
3036 filldraw subpath(rundy(p0,0),infinity) of p0
3037 ..{dir110}z4r..z5r..{right}z1'r..z1..z1r{down}..z2r
3038 ..subpath(0,rundy(p2,tim5).zpet) of p2
3039 ..subpath(rundy(p1,tim4),rundy(p1,tim3).zpet) of p1
3040 ..subpath(rundy(p2,tim2),infinity) of p2
3041 ..z6r..{z7r-z6}z7r..z7'..{right}z7l..{dir-80}z6l
3042 ..subpath(0,rundy(p1,tim6).zpet) of p1
3043 ..subpath(rundy(p1,tim7),rundy(p1,length p1).zpet) of p1..cycle;
3044 infill subpath(rundy(p2,tim8),rundy(p2,tim9).zpet) of p2..cycle;
3045 penlabels(1,1',2,3,4,5,6,7,8,9,10,11); labels(7');
3046 );
3047
3048 iff known chars.latin_w:
3049 bskchar "The italic letter w";
3050 beginchar(chars.latin_w,15u#,x_height#,0); uni "0x0077";
3051 italcorr bar_height#*slant;
3052 adjust_fit(0,0);
3053 pickup tiny.nib;
3054 usechar;
3055 math_fit(-.25u#,ic#-.5u#);
3056 endchar;
3057
3058 iff known chars.latin_wcircumflex:
3059 bskchar "The italic letter w with circumflex";
3060 beginchar(chars.latin_wcircumflex,15u#,asc_height#-.1x_height#,0); uni "0x0175";
3061 italcorr bar_height#*slant;
3062 adjust_fit(0,0);
3063 pickup tiny.nib;
3064 usechar;
3065 x101=x9;
3066 circumflex(100,101,102);
3067 endchar;
3068
3069 iff known chars.latin_wgrave:
3070 bskchar "The italic letter w with grave";
3071 beginchar(chars.latin_wgrave,15u#,asc_height#,0); uni "0x1E81";
3072 italcorr bar_height#*slant;
3073 adjust_fit(0,0);
3074 pickup tiny.nib;
3075 usechar;
3076 x101=x9;
3077 grave(100,101);
3078 endchar;
3079
3080 iff known chars.latin_wacute:
3081 bskchar "The italic letter w with acute";
3082 beginchar(chars.latin_wacute,15u#,asc_height#,0); uni "0x1E83";
3083 italcorr bar_height#*slant;
3084 adjust_fit(0,0);
3085 pickup tiny.nib;
3086 usechar;
3087 x101=.5[x9,x10];
3088 acute(100,101);
3089 endchar;
3090
3091 iff known chars.latin_wumlaut:
3092 bskchar "The italic letter w with umlaut";
3093 beginchar(chars.latin_wumlaut,15u#,asc_height#-dot_size#,0); uni "0x1E85";
3094 italcorr bar_height#*slant;
3095 adjust_fit(0,0);
3096 pickup tiny.nib;
3097 usechar;
3098 x100=x3; x101=x11;
3099 umlaut(100,101);
3100 endchar;
3101
3102 iff known chars.latin_x:
3103 bskchar "The italic letter x";
3104 beginchar(chars.latin_x,11u#,x_height#,0); uni "0x0078";
3105 italcorr x_height#*slant+.5u#;
3106 adjust_fit(0,0);
3107 pickup tiny.nib;
3108 numeric tim[]; oblu:=2oblu;
3109 path p[];
3110 pos1(stem,10); pos2(hair,150); pos1'(.5[hair,stem],100);
3111 pos3(stem,10); pos4(hair,150); pos3'(.5[hair,stem],90);
3112 pos11(.8stem,170); pos12(hair,30); pos11'(.5[hair,stem],80);
3113 pos13(.8stem,170); pos14(hair,30); pos13'(.5[hair,stem],90);
3114 y1=y11=bar_height; lft x1l=4u; x11r=w-x1r;
3115 x2r=.5u; y2=y12=h-.25bar_height; top y1'r=h+o=top y11'r; x1'=u; x11'=w-u; x12l=w-.25u;
3116 z2'=z2l+hair*dir(-110); z12'=z12l+hair*dir(-80);
3117 rt x3r=w-3.5u; y3=y13=.3bar_height; x13r=w-x3r;
3118 rt x4l=w-.5u; top y4=y14=.4bar_height; bot y3'l=bot y13'l=-o; x3'=.45[x3,x4]; x13'=.45[x13,x14];
3119 lft x14r=0;
3120 z4'=z4r+hair*up; z14'=z14r+hair*up;
3121 p0=z2'..z2l{dir60}..z1'l..z1l---z3l..z3'l..z4l if not testdpi:..z4'&z4'.. else:&z4l{up}..{down}z4r&fi z4r..z3'r..z3r---z1r..z1'r..z2r+left{dir-100}..z2'+left;
3122 p1=if not testdpi:z12'{z12l-z12'}.. fi z12l..z11'l..z11l---z13l..z13'l..z14l %if not testdpi:..z14'&z14'..else:
3123 &z14l{up}..{down}z14r&% fi
3124 z14r..z13'r..z13r---z11r..z11'r..z12r if not testdpi:..z12' fi;
3125 (tim0,tim1-4)=p0 intersectiontimes subpath (4,infinity) of p1;
3126 (tim2,tim3)=subpath (0,4) of p1 intersectiontimes p0;
3127 (tim4-4,tim5)=subpath(4,infinity) of p0 intersectiontimes p1;
3128 numeric node; node:=if not testdpi:9 else: 8 fi;
3129 (tim6-node,tim7-node)=subpath (node,infinity) of p1 intersectiontimes subpath(node,infinity) of p0;
3130 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3131 ..reverse subpath(rundy(p1,tim2),rundy(p1,tim1).zpet) of p1
3132 ..subpath(rundy(p0,tim3),rundy(p0,tim4).zpet) of p0
3133 ..reverse subpath(0,rundy(p1,tim5).zpet) of p1
3134 ..reverse subpath(rundy(p1,tim6),infinity) of p1
3135 ..subpath(rundy(p0,tim7),infinity) of p0
3136 ..cycle;
3137 penlabels(1,1',2,3,3',4,11,11',12,13,13',14); labels(2',4',12',14');
3138 math_fit(.5u#,ic#-.5u#);
3139 endchar;
3140
3141 charscription(10.5u,x_height,desc_depth)(
3142 numeric tim[]; oblu:=2oblu;
3143 path p[];
3144 pos1(stem,10); pos2(hair,150); pos1'(.5[hair,stem],100);
3145 pos3(stem,10); pos4(hair,-40); pos5(.5[hair,stem],-90);
3146 pos6(stem,30); pos8(stem,0); pos9(stem,60);
3147 y1=bar_height; lft x1l=3.5u;
3148 x2r=0; y2=h-.25bar_height; top y1'r=h+o; x1'=u;
3149 z2'=z2l+hair*dir(-110);
3150 x3l=.5w; y3=0; y4=-.75d; z4=z3+whatever*dir-100;
3151 bot y5r=-d; x6l=.5u; x5=.5[x6,x4]; y6l=y5+like_stem;
3152 z6'=z6+.25stem*unitvector(z6-z5);
3153 rt x8r=w-u; y8=bar_height;
3154 top y9r=h+o; x9r=x8l-stem;
3155 z9'=z9+.25stem*unitvector(z9-z8);
3156 p0=z5r{right}..z4r..z3r---z1r..z1'r..z2r{dir-120}..z2'&
3157 z2'..z2l{dir60}..z1'l..z1l---z3l..z4l..{left}z5l..z6r..z6'..z6l..{right}z5r;
3158 p1=z4r..{up}z8r..{left}z9r..z9'..{z8-z9l}z9l..{dir-80}z8l
3159 ..{direction 11 of p0}z4l;
3160 (tim1,tim2)=p0 intersectiontimes p1;
3161 tim3-1=xpart(subpath(1,infinity) of p1 intersectiontimes ((0,-o)--(w,-o)));
3162 filldraw z5r{right}..z4r..subpath(1,rundy(p1,tim3).zpet) of p1..subpath(rundy(p0,2),infinity) of p0..cycle;
3163 penlabels(1,1',2,3,4,5,6,8,9); labels(2',6',9');
3164 );
3165
3166 iff known chars.latin_y:
3167 bskchar "The italic letter y";
3168 beginchar(chars.latin_y,10.5u#,x_height#,desc_depth#); uni "0x0079";
3169 italcorr bar_height#*slant;
3170 adjust_fit(0,0);
3171 pickup tiny.nib;
3172 usechar;
3173 math_fit(desc_depth#*slant,ic#-.5u#);
3174 endchar;
3175
3176 iff known chars.latin_ygrave:
3177 bskchar "The italic letter y with grave";
3178 beginchar(chars.latin_ygrave,10.5u#,asc_height#,desc_depth#); uni "0x1EF3";
3179 italcorr bar_height#*slant;
3180 adjust_fit(0,0);
3181 pickup tiny.nib;
3182 usechar;
3183 x101=.5[x1r,x9l];
3184 grave(100,101);
3185 endchar;
3186
3187 iff known chars.latin_yacute:
3188 bskchar "The italic letter y with acute";
3189 beginchar(chars.latin_yacute,10.5u#,asc_height#,desc_depth#); uni "0x00FD";
3190 italcorr bar_height#*slant;
3191 adjust_fit(0,0);
3192 pickup tiny.nib;
3193 usechar;
3194 x101=x1;
3195 acute(100,101);
3196 endchar;
3197
3198 iff known chars.latin_ymacron:
3199 bskchar "The italic letter y with macron";
3200 beginchar(chars.latin_ymacron,10.5u#,.5[asc_height#,x_height#],desc_depth#); uni "0x0233";
3201 italcorr .5[asc_height#,x_height#]*slant-.25u#;
3202 adjust_fit(0,0);
3203 pickup tiny.nib;
3204 usechar;
3205 x101=x8;
3206 macron(100,101);
3207 endchar;
3208
3209 iff known chars.latin_yumlaut:
3210 bskchar "The italic letter y with umlaut";
3211 beginchar(chars.latin_yumlaut,10.5u#,asc_height#-dot_size#,desc_depth#); uni "0x00FF";
3212 italcorr bar_height#*slant;
3213 adjust_fit(0,0);
3214 pickup tiny.nib;
3215 usechar;
3216 x100=x1l-.5dot_size; x101=x9;
3217 umlaut(100,101);
3218 endchar;
3219
3220 iff known chars.latin_ycircumflex:
3221 bskchar "The italic letter y with circumflex";
3222 beginchar(chars.latin_ycircumflex,10.5u#,asc_height#-.1x_height#,desc_depth#); uni "0x0177";
3223 italcorr .5[asc_height#,x_height#]*slant-u#;
3224 adjust_fit(0,0);
3225 pickup tiny.nib;
3226 usechar;
3227 numeric oblu; oblu:=hair;
3228 x101=x3;
3229 circumflex(100,101,102);
3230 endchar;
3231
3232 charscription(9.5u,x_height,0)(
3233 numeric alpha; oblu:=2oblu;
3234 path p[];
3235 lft x1l=u; bot y1l=0; rt x2r=w-u; top y2r=h;
3236 x2r-x2l=x1r-x1l;
3237 alpha=diag_ratio(2,stem,y2r-y1l,x2r-x1l);
3238 pos1(alpha*stem,0); pos2(alpha*stem,0);
3239 pos1'(.5[hair,stem],angle(z2-z1)); pos2'(.5[hair,stem],angle(z2-z1));
3240 pos3(hair,170); pos4(curve,90);
3241 pos5(hair,170); pos6(1.25curve,90);
3242 z1'=z1r+stem*unitvector(z2r-z1r);
3243 z2'=z2l+stem*unitvector(z1l-z2l);
3244 y3=y2'l-hair; lft x3r=u; top y4r=h+o; x4=1/3[x3,x2];
3245 bot y5=y1'r+hair; rt x5r=w-u; bot y6l=-o-.25curve; x6=1/3[x5,x1];
3246 p1=z1l{(z2-z1) rotated -5}..z2'l;
3247 p2=z2'l{left}..z4l..{dir-100}z3l;
3248 p3=z2r{(z1-z2)rotated 5}..z1'r;
3249 p4=z1'r{right}..z6r..{dir90}z5r;
3250 filldraw subpath(0,rundy(p1,1).zpet) of p1
3251 ..subpath(rundy(p2,0),infinity) of p2
3252 ..{dir90}z3r..z4r..{right}z2'r..z2
3253 ..subpath(0,rundy(p3,1).zpet) of p3
3254 ..subpath(rundy(p4,0),infinity) of p4
3255 ..z5l{dir-80}..z6l..{left}z1'l..z1..cycle;
3256 penlabels(1,1',2,2',3,4,5,6);
3257 );
3258
3259 iff known chars.latin_z:
3260 bskchar "The italic letter z";
3261 beginchar(chars.latin_z,9.5u#,x_height#,0); uni "0x007A";
3262 italcorr x_height#*slant;
3263 adjust_fit(0,0);
3264 pickup tiny.nib;
3265 usechar;
3266 math_fit(0,ic#-.25u#);
3267 endchar;
3268
3269 iff known chars.latin_zcaron:
3270 bskchar "The italic letter z with caron";
3271 beginchar(chars.latin_zcaron,9.5u#,asc_height#,0); uni "0x017E";
3272 italcorr x_height#*slant;
3273 adjust_fit(0,0);
3274 pickup tiny.nib;
3275 usechar;
3276 x101=.5[x3r,x2r];
3277 hacek(100,101,102);
3278 endchar;
3279
3280 iff known chars.latin_zdotabove:
3281 bskchar "The italic letter z with dot above";
3282 beginchar(chars.latin_zdotabove,9.5u#,asc_height#-.5dot_size#,0); uni "0x017C";
3283 italcorr x_height#*slant;
3284 adjust_fit(0,0);
3285 pickup tiny.nib;
3286 usechar;
3287 x100=.5[x3r,x2r];
3288 dotabove(100);
3289 endchar;
3290
3291 iff known chars.latin_zacute:
3292 bskchar "The italic letter z with acute";
3293 beginchar(chars.latin_zacute,9.5u#,asc_height#,0); uni "0x017A";
3294 italcorr x_height#*slant;
3295 adjust_fit(0,0);
3296 pickup tiny.nib;
3297 usechar;
3298 .25[x101,x100]=.5[x3r,x2r];
3299 acute(100,101);
3300 endchar;
3301
3302 skal:=.5;
3303 charscription(figwu(if medieval: 9.5u else: 11u fi),medfigu,0)(
3304 numeric sair; sair=if medieval: vair else: hair fi;
3305 pos1(curve,0); pos2(sair,90); pos3(curve,180); pos4(sair,270);
3306 lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2-x4=0; bot y2l=-o; top y4r=h+o;
3307 filldraw z1l{down}..z2l..z3l..z4l..{down}cycle;
3308 infill z1r{up}..z4r..z3r..z2r..{up}cycle;
3309 penlabels(1,2,3,4);
3310 );
3311
3312 iff known chars.numeral_zero:
3313 bskchar "The italic numeral 0";
3314 beginchar(chars.numeral_zero,figw(if medieval: 9.5u else: 11u fi),medfig,0); uni "0x0030";
3315 italcorr .5x_height#*slant;
3316 adjust_fit(0,0);
3317 pickup tiny.nib;
3318 usechar;
3319 endchar;
3320
3321 iff known chars.superscript_numeral_zero:
3322 bskchar "The superscript italic numeral 0";
3323 beginchar(chars.superscript_numeral_zero,if monofig: 5.5u# else: if medieval: 5.75u# else:6.5u#fi fi,asc_height#,0); uni "0x2070";
3324 adjust_fit(0,0);
3325 pickup tiny.nib;
3326 multiply(1.7skal)(curve,hair,vair);
3327 usechar shifted (-x1l,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height);
3328 endchar;
3329
3330 charscription(figwu(if medieval: 9.5u else: 11u fi),medfigu,0)(
3331 path p;
3332 numeric sair; sair=if medieval: vair else: hair fi;
3333 pos1(curve,0); pos2(sair,90); pos3(curve,180); pos4(sair,270);
3334 lft x1l=u; rt x3l=w-u; y1=y3=y0=.5h; .5[x2,x4]=.5[x1,x3]=x0; x2-x4=0; bot y2l=-o; top y4r=h+o;
3335 p:=z1r{up}..z4r..z3r..z2r..{up}cycle;
3336 z5=p intersectionpoint ((x0,.25[y4r,y3])--(w,.25[y4r,y3])); z6=z5+stem*unitvector(z0-z5); .5[z6,z7]=z0;
3337 pos6(hair,angle(z7-z6)+90); pos7(hair,angle(z7-z6)+90);
3338 filldraw z1l{down}..z2l..z3l..z4l..{down}cycle;
3339 infill p;
3340 filldraw bskrule(6,7,hair,hair);
3341 penlabels(0,1,2,3,4,5,6,7);
3342 );
3343
3344 iff known chars.numeral_zero_slash:
3345 bskchar "The italic numeral 0 with slash";
3346 beginchar(chars.numeral_zero_slash,figw(if medieval: 9.5u else: 11u fi),medfig,0); uni "non";
3347 italcorr .5x_height#*slant;
3348 adjust_fit(0,0);
3349 pickup tiny.nib;
3350 usechar;
3351 endchar;
3352
3353 iff known chars.superscript_numeral_zero_slash:
3354 bskchar "The superscript italic numeral 0 with slash";
3355 beginchar(chars.superscript_numeral_zero_slash,if monofig: 5.5u# else: if medieval: 5.75u# else:6.5u#fi fi,asc_height#,0); uni "non";
3356 adjust_fit(0,0);
3357 pickup tiny.nib;
3358 multiply(1.7skal)(curve,hair,vair);
3359 usechar shifted (-x1l,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height);
3360 endchar;
3361
3362 charscription(figwu(8u),medfigu,0)(
3363 oblu:=2.2f_obl;
3364 path p[];
3365 pos1(dig_stem,0); pos2(dig_stem,0);
3366 pos3(hair,90);
3367 x1=.5w; bot y1=0; x2=x1; top y2=h;
3368 lft x3=u; x4=x1l;
3369 y3=if medieval:.5[x_height,bar_height] else: .25[x_height,h] fi; y4=y2-hair;
3370 p1=z3l{right}..z4; p0=z4---one_serif(1);
3371 filldraw subpath(rundy(p0,0),infinity) of p0---z2r{dir200}..{left}z3r..
3372 subpath(0,rundy(p1,1).zpet) of p1..cycle;
3373 penlabels(1,2,3); labels(4);
3374 );
3375
3376 let _saved_char_one=_saved_char;
3377 numeric _saved_w_one; _saved_w_one:=_saved_w;
3378
3379 iff known chars.numeral_one:
3380 bskchar "The italic numeral 1";
3381 beginchar(chars.numeral_one,figw(8u),medfig,0); uni "0x0031";
3382 italcorr x_height#*slant-2u#;
3383 adjust_fit(serif_fit#,serif_fit#);
3384 pickup tiny.nib;
3385 usechar;
3386 endchar;
3387
3388 iff known chars.superscript_numeral_one:
3389 bskchar "The superscript italic numeral 1";
3390 beginchar(chars.superscript_numeral_one,if monofig: 5.5u# else: 5u# fi,asc_height#,0); uni "0x00B9";
3391 adjust_fit(0,0);
3392 pickup tiny.nib;
3393 multiply(1.7skal)(curve,hair,vair,serif_o,dig_stem);
3394 usechar shifted (-x3,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height);
3395 endchar;
3396
3397 charscription(figwu(if medieval: 9u else: 10u fi),medfigu,0)(
3398 path p[]; numeric tim[]; oblu:=2f_obl;
3399 pos1(.45[hair,stem],180); pos2(hair,90); pos3(curve,0); pos4(hair,0); pos0(vair,-60);
3400 pos6(1.2curve,270); pos7(hair,-10);
3401 lft x1r=u; y1=2/3h+hair; top y2r=h+o; x2=.5w-hair; y0l=y1-2hair; x0=.35[x2,x1];
3402 rt x3r=w-if medieval:1.5\\ fi u; y3=2/3h; lft x4l=u; bot y4=-apex_o;
3403 p0:=z0l{dir60}..z0r{dir-120}..z1r..{right}z2r..{down}z3r..{down}z4r;
3404 tim0=xpart(p0 intersectiontimes ((0,y4+.1bar_height)--(w,y4+.1bar_height)));
3405 pos5(hair,angle(direction tim0 of p0)); z5=point tim0 of p0;
3406 bot y7=y5r+hair; rt x7r=w-u; y6=0; x6=1/2[x7,x4];
3407 p1=z5l{(x3-x4,.5bar_height)}..z6l..{dir80}z7l;
3408 z9=bsktouch(p0,right,p1,up);
3409 tim1=xpart(p0 intersectiontimes (z9--(0,y9)));
3410 tim2=xpart(p1 intersectiontimes (z9--(x9,0)));
3411 filldraw subpath(0,rundy(p0,tim1).zpet) of p0
3412 ..subpath(rundy(p1,tim2),infinity) of p1..z7r{dir-100}..z6r
3413 ..z4r..{up}z4l..z3l{up}..z2l{left}..z1l..cycle;
3414 penlabels(0,1,2,3,4,5,6,7,8);
3415 );
3416
3417 iff known chars.numeral_two:
3418 bskchar "The numeral 2";
3419 beginchar(chars.numeral_two,figw(if medieval: 9u else: 10u fi),medfig,0); uni "0x0032";
3420 italcorr 2/3h#*slant-.5u#;
3421 adjust_fit(0,0);
3422 pickup tiny.nib;
3423 usechar;
3424 endchar;
3425
3426 iff known chars.superscript_numeral_two:
3427 bskchar "The superscript numeral 2";
3428 beginchar(chars.superscript_numeral_two,if monofig: 5.5u# else: if medieval: 5.5u# else: 6u# fi fi,asc_height#,0); uni "0x00B2";
3429 adjust_fit(0,0);
3430 pickup tiny.nib;
3431 multiply(1.7skal)(curve,hair,vair);
3432 usechar shifted (-x1r,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height);
3433 endchar;
3434
3435 iff known chars.fraction_one_half:
3436 bskchar "Fraction one half";
3437 beginchar(chars.fraction_one_half,5.5u#,asc_height#,0); uni "0x00BD";
3438 adjust_fit(0,0);
3439 pickup tiny.nib;
3440 numeric zv; zv:=if medieval: .5 else: .4 fi;
3441 multiply(1.7zv)(curve,hair,vair);
3442 usechar shifted (-x2-hair,0) scaled zv shifted (.5WW,0);
3443 save x,y;
3444 let _saved_char=_saved_char_one;
3445 _saved_w:=_saved_w_one;
3446 usechar shifted -(x1,0) scaled zv shifted (.5WW+(HH-zv*fig_height)*slant,HH-zv*fig_height);
3447 pos10(hair,90); pos11(hair,90);
3448 lft x10=u; rt x11=w-u; y10=y11=if medieval: bar_height else: .5[x_height,bar_height] fi if bold_face: + .5hair fi;
3449 filldraw bskrule(10,11,hair,hair);
3450 penlabels(10,11);
3451 endchar;
3452
3453 charscription(figwu(9.5u),medfigu,medfigdu)(
3454 numeric tim[]; oblu:=if bold_face: 2f_obl else: 4f_obl fi;
3455 path p[];
3456 pos1(.45[hair,stem],180); pos2(hair,90); pos3(curve,0); pos4(.45[hair,stem],0); pos0(vair,-60);
3457 pos5(hair,90); pos6(curve,0); pos7(like_hair,270);
3458 lft x1r=1.5u; y1=y3+hair; top y2r=h+o; x2=.5w-hair; y0l=y3-hair; x0=.35[x2,x1];
3459 rt x3r=w-1.75u; y3=if medieval: 2/3h else: .8h fi; lft x4l=1.5u;
3460 bot y4l=.5(h-d); z4'=(x4l,y4l-like_hair);
3461 x5=.5w; y5=min(y4+stem,.5[x_height,bar_height]); rt x6r=w-u; y6=.5[y4,-d];
3462 x7=.55[x5,x4]; bot y7r=-d; rt x8r=u; y8=y7+1.5like_stem;
3463 p0=z4l{dir60}..{up}z3l..z2l{left}..z1l..{dir60}z0l;
3464 p1=z0l{dir60}..{dir-120}z0r..z1r..{right}z2r..z3r{down}..{dir-130}z4r..z4'..{dir40}z4l;
3465 p2=z4l..z5r..z6r..z7r..smitko(8,curve)..z7l..z6l..z5l..z4';
3466 p3=subpath(3,infinity) of p2;
3467 z9=bsktouch(p1,down,p2,up);
3468 tim1-3=xpart(subpath(3,infinity) of p1 intersectiontimes (z9--(x9,y3)));
3469 tim2=xpart(p2 intersectiontimes (z9--(x9,y6)));
3470 (tim3,tim4-3)=p1 intersectiontimes p3;
3471 filldraw p0..subpath(0,rundy(p1,tim1).zpet) of p1
3472 ..subpath(rundy(p2,tim2),rundy(p2,(tim4,f_obl)).zpet) of p2
3473 ..subpath(tim3,infinity) of p1
3474 ..cycle;
3475 penlabels(0,1,2,3,4,5,6,7,8); labels(4',9);
3476 );
3477
3478 let _saved_char_three=_saved_char;
3479 numeric _saved_w_three; _saved_w_three:=_saved_w;
3480
3481 iff known chars.numeral_three:
3482 bskchar "The numeral 3";
3483 beginchar(chars.numeral_three,figw(9.5u),medfig,medfigd); uni "0x0033";
3484 italcorr if medieval: 2/3h# else: .8h# fi*slant-.5u#;
3485 adjust_fit(0,0);
3486 pickup tiny.nib;
3487 usechar;
3488 endchar;
3489
3490 iff known chars.superscript_numeral_three:
3491 bskchar "The superscript numeral 3";
3492 beginchar(chars.superscript_numeral_three,if monofig: 5.5u# else: 5.75u# fi,asc_height#,0); uni "0x00B3";
3493 adjust_fit(0,0);
3494 pickup tiny.nib;
3495 multiply(1.7skal)(curve,hair,stem,like_hair,like_stem);
3496 usechar shifted (-x8r,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height);
3497 endchar;
3498
3499 iff known chars.fraction_one_third:
3500 bskchar "Fraction one third";
3501 beginchar(chars.fraction_one_third,5.5u#,asc_height#,0); uni "0x2153";
3502 adjust_fit(0,0);
3503 pickup tiny.nib;
3504 numeric zv; zv:=if medieval: .5 else: .4 fi;
3505 multiply(1.7zv)(curve,hair,stem,like_hair,like_stem);
3506 usechar shifted (-x2-hair,0) scaled zv shifted (.5WW,0);
3507 save x,y;
3508 let _saved_char=_saved_char_one;
3509 _saved_w:=_saved_w_one;
3510 usechar shifted -(x1,0) scaled zv shifted (.5WW+(HH-zv*fig_height)*slant,HH-zv*fig_height);
3511 pos10(hair,90); pos11(hair,90);
3512 lft x10=u; rt x11=w-u; y10=y11=if medieval: bar_height else: .5[x_height,bar_height] fi if bold_face: + .5hair fi;
3513 filldraw bskrule(10,11,hair,hair);
3514 penlabels(10,11);
3515 endchar;
3516
3517 charscription(figwu(12u),medfigu,medfigdu)(
3518 path p[]; numeric tim[]; oblu:=2f_obl;
3519 pos1(stem,0); pos2(.95stem,0); pos3(hair,0); pos4(hair,90); pos5(stem,90);
3520 pos6(hair,0); pos8(hair,0);
3521 rt x1r= rt x2r=w-3.5u; bot y1=-d; top y2=if medieval: .45bar_height else: .9x_height fi;
3522 lft x3l=u; y3l=if medieval: -stem else: .5x_height fi;
3523 z4l=(x1r+hair,y3l); rt x5r=w-u; y5l=y3l; y3l:=y3l+hair;
3524 z2'=z2r+(stem-currentbreadth)*up; z4'=z4r+hair*up;
3525 top y6=h; x6r=x2l-o; z7l=z3l; pos7(stem,angle(z1-z3)); z7'=1/3[z7r,z4]; z7''=z7'+stem*right;
3526 x8=x6; y8l=h+apex_o;
3527 p0:=z1r---z2r..{up}z2'..z2l---z1l;
3528 p1:=z3r{z2-z3}..z4l..z5l..z5r..z4r..{z3-z2}z3l; p1:=subpath(0,3) of p1;
3529 p2:=z5r{z4-z5r}..z4'..{z3-z2}z3l;
3530 p3:=z8l..z6l{z7'-z6}..z7l;
3531 p4:=z7r..{z6-z7''}z6r..z8r;
3532 (tim0,tim1)=subpath(0,1) of p0 intersectiontimes p1;
3533 (tim2,tim3)=subpath(0,1) of p0 intersectiontimes p2;
3534 (tim4-1,tim5)=subpath(1,infinity) of p0 intersectiontimes p2;
3535 (tim6-1,tim7)=subpath(1,infinity) of p0 intersectiontimes p1;
3536 z9=bsktouch(p2,up,p4,left);
3537 tim8=xpart(p2 intersectiontimes (z9--(x9,-d)));
3538 tim9=xpart(p4 intersectiontimes (z9--(w,y9)));
3539 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3540 ..subpath(rundy(p1,tim1),infinity) of p1
3541 ..subpath(0,rundy(p2,tim3).zpet) of p2
3542 ..subpath(rundy(p0,tim2),rundy(p0,tim4).zpet) of p0
3543 ..subpath(rundy(p2,tim5),rundy(p2,tim8).zpet) of p2
3544 ..subpath(rundy(p4,tim9),infinity) of p4..p3
3545 ..subpath(0,rundy(p1,tim7).zpet) of p1
3546 ..subpath(rundy(p0,tim6),infinity) of p0..cycle;
3547 penlabels(1,2,3,4,5,6,7,8); labels(2',4',7',7'',9);
3548 );
3549
3550 let _saved_char_four=_saved_char;
3551 numeric _saved_w_four; _saved_w_four:=_saved_w;
3552
3553 iff known chars.numeral_four:
3554 bskchar "The numeral 4";
3555 beginchar(chars.numeral_four,figw(12u),medfig,medfigd); uni "0x0034";
3556 adjust_fit(0,0);
3557 pickup tiny.nib;
3558 usechar;
3559 endchar;
3560
3561 iff known chars.superscript_numeral_four:
3562 bskchar "The superscript numeral 4";
3563 beginchar(chars.superscript_numeral_four,if monofig: 5.5u# else: 7u# fi,asc_height#,0); uni "0x2074";
3564 adjust_fit(0,0);
3565 pickup tiny.nib;
3566 multiply(1.7skal)(curve,hair,vair,dig_stem);
3567 usechar shifted (-x3l,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height);
3568 endchar;
3569
3570 iff known chars.fraction_one_quarter:
3571 bskchar "Fraction one quarter";
3572 beginchar(chars.fraction_one_quarter,7u#,asc_height#,0); uni "0x00BC";
3573 adjust_fit(0,0);
3574 pickup tiny.nib;
3575 numeric zv; zv:=if medieval: .5 else: .4 fi;
3576 multiply(1.7zv)(curve,hair,stem,like_hair,like_stem);
3577 usechar shifted (-.5w,0) scaled zv shifted (.5WW,0);
3578 save x,y;
3579 let _saved_char=_saved_char_one;
3580 _saved_w:=_saved_w_one;
3581 usechar shifted -(x1,0) scaled zv shifted (.5WW+(HH-zv*fig_height)*slant,HH-zv*fig_height);
3582 pos10(hair,90); pos11(hair,90);
3583 lft x10=u; rt x11=w-u; y10=y11=if medieval: bar_height else: .5[x_height,bar_height] fi if bold_face: +.5hair fi;
3584 filldraw bskrule(10,11,hair,hair);
3585 penlabels(10,11);
3586 endchar;
3587
3588 iff known chars.fraction_three_quarters:
3589 bskchar "Fraction three quarters";
3590 beginchar(chars.fraction_three_quarters,7u#,asc_height#,0); uni "0x00BE";
3591 adjust_fit(0,0);
3592 pickup tiny.nib;
3593 numeric zv; zv:=if medieval: .5 else: .4 fi;
3594 multiply(1.7zv)(curve,hair,stem,like_hair,like_stem);
3595 let _saved_char=_saved_char_four;
3596 _saved_w:=_saved_w_four;
3597 usechar shifted (-.5w,0) scaled zv shifted (.5WW,0);
3598 save x,y;
3599 let _saved_char=_saved_char_three;
3600 _saved_w:=_saved_w_three;
3601 usechar shifted -(x2+hair,if medieval: y7 else: 0 fi) scaled zv shifted (.5WW+(HH-zv*fig_height)*slant,HH-zv*fig_height);
3602 pos10(hair,90); pos11(hair,90);
3603 lft x10=u; rt x11=w-u; y10=y11=if medieval: bar_height else: .5[x_height,bar_height] fi if bold_face: +.5hair fi;
3604 filldraw bskrule(10,11,hair,hair);
3605 penlabels(10,11);
3606 endchar;
3607
3608 charscription(figwu(if medieval: 10.5u else: 9.5u fi),medfigu,medfigdu)(
3609 numeric theta; theta=if medieval: 0 else: 10 fi;
3610 path p[]; numeric tim;
3611 oblu:=2f_obl;
3612 pos1(hair,0); pos1''(hair,0); pos2(hair,0); pos3(stem,65);
3613 pos4(hair,-90); pos5(curve,180); pos6(hair,90); pos7(hair,30);
3614 x1l=if monofig: 2u else: 3u fi; top y1l=h+apex_o; x2=x1;
3615 y2=if medieval: .2x_height else: .5[bar_height,x_height] fi; z3r=z2r; z2'=(x2r,.5[y4,y2]);
3616 x4=.5w; rt x5l=w-u;
3617 y4=y2+ if known superscript: .5\\fi (if not medieval: .8\\fi stem);
3618 y5=.48[y4,y6];
3619 x6=.5w-o; bot y6l=-d; z1''=.75[z1,z2]+o*right;
3620 lft x7l=u; y7=y6+.15x_height;
3621 x8=w-u; y8=y1+.5apex_o;
3622 z1'=z1r+if bold_face:.8\\fi curve*down;
3623 p0=z1l{down}..z1''l..{down}z2l..{down}z3l..(x3r,y3l)..{up}z3r..{up}z2r..{right}z4r..
3624 {down}z5r..{left}z6r..z7r..z7l{(z6-z7) rotated -15}..z6l{right}..
3625 {up}z5l;
3626 p1=z5l{up}..z4l..z2';
3627 p2=z2r{up}..z1''r..{up}z1r;
3628 p3=z1'..{dir(70-theta)}z8{dir(-140-theta)}..z1l;
3629 tim=xpart(p2 intersectiontimes ((0,y1')--(w,y1')));
3630 filldraw p0&subpath(0,rundy(p1,infinity).zpet) of p1..subpath (rundy(p2,0),rundy(p2,tim).zpet) of p2..
3631 subpath(rundy(p3,0),infinity) of p3&cycle;
3632 penlabels(1,2,3,4,5,6,7); labels(1',2',8);
3633 );
3634
3635 iff known chars.numeral_five:
3636 bskchar "The numeral 5";
3637 beginchar(chars.numeral_five,figw(if medieval: 10.5u else: 9.5u fi),medfig,medfigd); uni "0x0035";
3638 italcorr medfig*slant;
3639 adjust_fit(0,0);
3640 pickup tiny.nib;
3641 usechar;
3642 endchar;
3643
3644 iff known chars.superscript_numeral_five:
3645 bskchar "The superscript numeral 5";
3646 beginchar(chars.superscript_numeral_five,if monofig: 5.5u# else: if medieval: 6.25u# else: 5.75u#fi fi,asc_height#,0); uni "0x2075";
3647 adjust_fit(0,0);
3648 pickup tiny.nib; boolean superscript; superscript=true;
3649 multiply(1.7skal)(curve,hair,stem);
3650 usechar shifted (-x7r,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height);
3651 endchar;
3652
3653 charscription(figwu(10u),fig_height,0)(
3654 path p[]; numeric tim[]; oblu:=2oblu;
3655 pos1(vair,0); pos2(hair,90); pos3(curve,180); pos4(hair,270);
3656 pos5(curve,0); pos6(hair,-90); pos7(hair,210);
3657 rt x3l=w-u; y1=y3=.5x_height; x2=x4=.5w+.5hair; bot y2l=-o; .5[y4r,y2r]=y3;
3658 lft x5l=u; y5l=y1l+stem; top y6l=h+o; x6=.5w+.75stem;
3659 rt x7l=w-u; y7=y6r-.15x_height;
3660 p0=z2r{left}..z5r..{right}z6r; x1r=xpart (((0,y1)--(.5w,y1))intersectionpoint p0);
3661 p1=z2l{right}..z3l..z4l..{down}z1l;
3662 p2=z2r{left}..z5r..{right}z6r;
3663 z0=bsktouch(p1,left,subpath(.2,infinity) of p2,right);
3664 tim1=xpart(p1 intersectiontimes (z0--(x4,y0)));
3665 tim2=xpart(p2 intersectiontimes (z0--(0,y0)));
3666 filldraw z7r..z7l{(z6-z7) rotated -15}..{left}z6l..z5l..{right}z2l..
3667 subpath(0,rundy(p1,tim1).zpet) of p1..
3668 subpath(rundy(p2,tim2),infinity) of p2..cycle;
3669 infill z1r{up}..z4r..z3r..z2r..cycle;
3670 penlabels(0,1,2,3,4,5,6,7);
3671 );
3672
3673 iff known chars.numeral_six:
3674 bskchar "The numeral 6";
3675 beginchar(chars.numeral_six,figw(10u),fig_height#,0); uni "0x0036";
3676 italcorr fig_height#*slant-.25u#;
3677 adjust_fit(0,0);
3678 pickup tiny.nib;
3679 usechar;
3680 endchar;
3681
3682 iff known chars.superscript_numeral_six:
3683 bskchar "The superscript numeral 6";
3684 beginchar(chars.superscript_numeral_six,if monofig: 5.5u# else: 6u# fi,asc_height#,0); uni "0x2076";
3685 adjust_fit(0,0);
3686 pickup tiny.nib;
3687 multiply(1.7skal)(curve,hair,vair,stem);
3688 usechar shifted (-x5l,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height);
3689 endchar;
3690
3691 charscription(figwu(11u),medfigu,medfigdu)(
3692 path p; numeric tim[];
3693 pos1(hair,0); pos2(curve,0); pos3(curve,90); pos4(.35x_height,90); pos1'(hair,90);
3694 rt top z1r=(w-u,h); lft x2l=2.5u; top y2=-d+.5stem;
3695 y3r=y1r+.5stem=y4r;
3696 lft x4l=u; x3=x4r+2hair; x3l:=x3l+o;
3697 top y5r=y3; x5r=x5l=1/3[x3,x1']; y4r-y5r=1.5(y3l-y5l);
3698 p:=z2l{dir80}...{z1-z2r}z1l;
3699 y1-y0=hair-currentbreadth;
3700 tim1=xpart(p intersectiontimes ((0,y0)--(w,y0))); z1'=point tim1 of p + u*left;
3701 filldraw z1r{z2r-z1}...{dir-100}z2r..subpath(0,rundy(p,(tim1,curve)).zpet) of p..z1'l{left}
3702 ..z5l..z3l..{z4l-z4r}z4l..z4l+left..z4..z4r&z4r..z5r..{right}z1'r--cycle;
3703 penlabels(1,1',2,3,4,5);
3704 );
3705
3706 iff known chars.numeral_seven:
3707 bskchar "The numeral 7";
3708 beginchar(chars.numeral_seven,figw(11u),medfig,medfigd); uni "0x0037";
3709 italcorr medfig*slant;
3710 adjust_fit(0,0);
3711 pickup tiny.nib;
3712 usechar;
3713 endchar;
3714
3715 iff known chars.superscript_numeral_seven:
3716 bskchar "The superscript numeral 7";
3717 beginchar(chars.superscript_numeral_seven,if monofig: 5.5u# else: 6.5u# fi,asc_height#,0); uni "0x2077";
3718 adjust_fit(0,0);
3719 pickup tiny.nib;
3720 multiply(1.7skal)(curve,hair,stem);
3721 usechar shifted (-x4l,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height);
3722 endchar;
3723
3724 charscription(figwu(8.5u),fig_height,0)(
3725 path p[]; numeric testem, tlstem, tim[]; oblu:=2f_obl;
3726 testem=.5[curve, hair]; tlstem=.75[curve,stem];
3727 pos1(testem,0); pos2(tlstem,180); pos3(tlstem,180); pos4(testem,0);
3728 pos5(vair,90); pos6(vair,90);
3729 lft x1l=u; rt x2l=w-u; x3r=u+hair; x4r=w-x3r; y1=y2=.27h; y3=y4=.76h;
3730 x5=x6=.5w; bot y5l=-o; top y6r=h+o; z0=whatever[z1,z4]=whatever[z2,z3];
3731 p0:=z6{left}..z3..z0..z2..{left}z5; pos0(curve,angle(direction 2 of p0)-90);
3732 p1=z6r{left}..z3r..z0r..z2r..z5r{left};
3733 p2=z4l{down}..z0{dir-160}..{down}z1l;
3734 p3=z5l{right}..z2l..z0l..z3l..{right}z6l;
3735 p4=z1r{up}..z0{dir20}..{up}z4r;
3736 p5=z6l{left}..z3l..z0l..z2l..z5l{left};
3737 (tim1,tim2)=p1 intersectiontimes p2;
3738 (tim3,tim4)=p3 intersectiontimes p4;
3739 (tim5,tim6)=p5 intersectiontimes p2;
3740 (tim7,tim8)=p1 intersectiontimes p4;
3741 filldraw subpath(0,rundy(p1,tim1).zpet) of p1..
3742 subpath(rundy(p2,tim2),infinity) of p2..
3743 subpath(0,rundy(p3,tim3).zpet) of p3..
3744 subpath(rundy(p4,tim4),infinity) of p4..cycle;
3745 infill subpath(0,rundy(p5,tim5).zpet) of p5 ..
3746 (reverse subpath(0,rundy(p2,tim6).zpet) of p2) .. cycle;
3747 infill subpath(rundy(p1,tim7),infinity) of p1..
3748 subpath(0,rundy(p4,tim8).zpet) of p4..cycle;
3749 penlabels(0,1,2,3,4,5,6);
3750 );
3751
3752 iff known chars.numeral_eight:
3753 bskchar "The numeral 8";
3754 beginchar(chars.numeral_eight,figw(8.5u),fig_height#,0); uni "0x0038";
3755 italcorr .76fig_height#*slant-.25u#;
3756 adjust_fit(0,0);
3757 pickup tiny.nib;
3758 usechar;
3759 endchar;
3760
3761 iff known chars.superscript_numeral_eight:
3762 bskchar "The superscript numeral 8";
3763 beginchar(chars.superscript_numeral_eight,if monofig: 5.5u# else: 5.25u# fi,asc_height#,0); uni "0x2078";
3764 adjust_fit(0,0);
3765 pickup tiny.nib;
3766 multiply(1.7skal)(curve,hair,vair,stem);
3767 usechar shifted (-x1l,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height);
3768 endchar;
3769
3770 charscription(figwu(10u),medfigu,medfigdu)(
3771 path p[]; numeric tim[]; oblu:=2oblu;
3772 pos1(vair,0); pos2(hair,-90); pos3(curve,180); pos4(hair,90);
3773 pos5(curve,0); pos6(hair,-90); pos7(hair,210);
3774 lft x3r=u; y1=y3; x2+.5hair=x4=.5w-.5hair; top y4r=h+o; .5[y4l,y2l]=y3; y2=if medieval:-hair else: h-x_height fi;
3775 rt x5r=w-u; y5r=y1r-stem;
3776 bot y6r=-d-o; x6=.5w-.75stem;
3777 lft x7r=u; y7=y6+.15x_height;
3778 p0=z4l{right}..z5l..{left}z6l; x1l=xpart (((.5w,y1)--(w,y1))intersectionpoint p0);
3779 p1=z2r{right}..z1r{up}..z4r..z3r;
3780 p2=z4l{right}..z5l..{left}z6l;
3781 z0=bsktouch(p1,right,p2,left);
3782 tim1=xpart(p1 intersectiontimes (z0--(.5w,y0)));
3783 tim2=xpart(p2 intersectiontimes (z0--(w,y0)));
3784 filldraw z7l..{(z6-z7) rotated -15}z7r..z6r{right}..z5r..z4r..z3r..{right}z2r..
3785 subpath(0,rundy(p1,tim1).zpet) of p1..
3786 subpath(rundy(p2,tim2),infinity) of p2..cycle;
3787 infill z1l{up}..z4l..z3l..z2l..cycle;
3788 penlabels(1,2,3,4,5,6,7);
3789 );
3790
3791 iff known chars.numeral_nine:
3792 bskchar "The numeral 9";
3793 beginchar(chars.numeral_nine,figw(10u),medfig,medfigd); uni "0x0039";
3794 italcorr if medieval: .4x_height# else: (fig_height#-.5x_height#)fi*slant;
3795 adjust_fit(0,0);
3796 pickup tiny.nib;
3797 usechar;
3798 endchar;
3799
3800 iff known chars.superscript_numeral_nine:
3801 bskchar "The superscript numeral 9";
3802 beginchar(chars.superscript_numeral_nine,if monofig: 5.5u# else: 6u# fi,asc_height#,0); uni "0x2079";
3803 adjust_fit(0,0);
3804 pickup tiny.nib;
3805 multiply(1.7skal)(curve,hair,vair);
3806 usechar shifted (-x3r,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height);
3807 endchar;
3808
3809 iff known chars.sign_query:
3810 bskchar "Italic question mark";
3811 beginchar(chars.sign_query, 9u#, asc_height#, 0); uni "0x003F";
3812 italcorr .5[asc_height#,x_height#]*slant;
3813 adjust_fit(punct_fit#,0);
3814 pickup tiny.nib;
3815 pos0(vair,-60); pos1(.45[hair,stem],180); pos2(hair,90); pos3(curve,0);
3816 pos4(curve,0); pos5(hair,90); pos6(vair,120);
3817 lft x1r=u; y1=.5[h,x_height]+hair; top y2r=h+o; x2=.5w-hair;
3818 y0l=y1-2hair; x0=.35[x2,x1];
3819 rt x3r=w-u; y3=.5[h,x_height]-hair; x4=x0; y4=bar_height;
3820 x5=.5w; bot y5l=2dot_size; x6-x5=x0-x1; y6-y5=y1-y0;
3821 filldraw z6l{dir240}..z5l..z4l..z3l{up}..z2l{left}..z1l..{dir60}z0l
3822 ..{dir-120}z0r..z1r..{right}z2r..{down}z3r..z4r..z5r..{dir60}z6r
3823 ..cycle;
3824 bot z100=(x5,.5dot_size); dot(100);
3825 penlabels(0,1,2,3,4,5,6);
3826 endchar;
3827
3828 iff known chars.sign_query_query:
3829 bskchar "Italic double question mark";
3830 beginchar(chars.sign_query_query, 15u#, asc_height#, 0); uni "0x2047";
3831 italcorr .5[asc_height#,x_height#]*slant;
3832 adjust_fit(0,0);
3833 pickup tiny.nib;
3834 pos0(vair,-60); pos1(.45[hair,stem],180); pos2(hair,90); pos3(curve,0);
3835 pos4(curve,0); pos5(hair,90); pos6(vair,120);
3836 lft x1r=u; y1=.5[h,x_height]+hair; top y2r=h+o; x2=.5(w-7u)-hair;
3837 y0l=y1-2hair; x0=.35[x2,x1];
3838 rt x3r=w-8u; y3=.5[h,x_height]-hair; x4=x0; y4=bar_height;
3839 x5=.5(w-7u); bot y5l=2dot_size; x6-x5=x0-x1; y6-y5=y1-y0;
3840 filldraw z6l{dir240}..z5l..z4l..z3l{up}..z2l{left}..z1l..{dir60}z0l
3841 ..{dir-120}z0r..z1r..{right}z2r..{down}z3r..z4r..z5r..{dir60}z6r
3842 ..cycle;
3843 filldraw (z6l{dir240}..z5l..z4l..z3l{up}..z2l{left}..z1l..{dir60}z0l
3844 ..{dir-120}z0r..z1r..{right}z2r..{down}z3r..z4r..z5r..{dir60}z6r
3845 ..cycle) shifted (w-u-x3r,0);
3846 bot z100=(x5,.5dot_size); z101=z100 shifted (w-u-x3r,0);
3847 dot(100); dot(101);
3848 penlabels(0,1,2,3,4,5,6);
3849 endchar;
3850
3851 iff known chars.sign_query_exclam:
3852 bskchar "Italic question and exclamation mark";
3853 beginchar(chars.sign_query_exclam, 13u#, asc_height#, 0); uni "0x2048";
3854 italcorr .5[asc_height#,x_height#]*slant;
3855 adjust_fit(0,0);
3856 pickup tiny.nib;
3857 pos0(vair,-60); pos1(.45[hair,stem],180); pos2(hair,90); pos3(curve,0);
3858 pos4(curve,0); pos5(hair,90); pos6(vair,120);
3859 lft x1r=u; y1=.5[h,x_height]+hair; top y2r=h+o; x2=.5(w-4u)-hair;
3860 y0l=y1-2hair; x0=.35[x2,x1];
3861 rt x3r=w-5u; y3=.5[h,x_height]-hair; x4=x0; y4=bar_height;
3862 x5=.5(w-4u); bot y5l=2dot_size; x6-x5=x0-x1; y6-y5=y1-y0;
3863 filldraw z6l{dir240}..z5l..z4l..z3l{up}..z2l{left}..z1l..{dir60}z0l
3864 ..{dir-120}z0r..z1r..{right}z2r..{down}z3r..z4r..z5r..{dir60}z6r
3865 ..cycle;
3866 bot z100=(x5,.5dot_size); dot(100);
3867 bot z7=(w-2.5u,.5dot_size); dot(7);
3868 penpos8(dot_size,0); pos9(hair,0); x8=x9=x7;
3869 y8=h-.5stem; bot y9=dot_size+stem; y9r:=y9r+.5hair;
3870 filldraw z8l---z9l..{.5[z8,z8r]-z9r}z9r..{z8r-z9r}z8r..cycle;
3871 penlabels(0,1,2,3,4,5,6,8,9);
3872 endchar;
3873
3874 iff known chars.sign_exclam_query:
3875 bskchar "Exclamation and italic question mark";
3876 beginchar(chars.sign_exclam_query, 13u#, asc_height#, 0); uni "0x2049";
3877 italcorr .5[asc_height#,x_height#]*slant;
3878 adjust_fit(0,0);
3879 pickup tiny.nib;
3880 pos0(vair,-60); pos1(.45[hair,stem],180); pos2(hair,90); pos3(curve,0);
3881 pos4(curve,0); pos5(hair,90); pos6(vair,120);
3882 lft x1r=5u; y1=.5[h,x_height]+hair; top y2r=h+o; x2=4u+.5(w-4u)-hair;
3883 y0l=y1-2hair; x0=.35[x2,x1];
3884 rt x3r=w-u; y3=.5[h,x_height]-hair; x4=x0; y4=bar_height;
3885 x5=.5(w-4u)+4u; bot y5l=2dot_size; x6-x5=x0-x1; y6-y5=y1-y0;
3886 filldraw z6l{dir240}..z5l..z4l..z3l{up}..z2l{left}..z1l..{dir60}z0l
3887 ..{dir-120}z0r..z1r..{right}z2r..{down}z3r..z4r..z5r..{dir60}z6r
3888 ..cycle;
3889 bot z100=(x5,.5dot_size); dot(100);
3890 bot z7=(2.5u,.5dot_size); dot(7);
3891 penpos8(dot_size,0); pos9(hair,0); x8=x9=x7;
3892 y8=h-.5stem; bot y9=dot_size+stem; y9r:=y9r+.5hair;
3893 filldraw z8l---z9l..{.5[z8,z8r]-z9r}z9r..{z8r-z9r}z8r..cycle;
3894 penlabels(0,1,2,3,4,5,6,8,9);
3895 endchar;
3896
3897 iff known chars.sign_interrobang:
3898 bskchar "Italic interrobang mark";
3899 beginchar(chars.sign_interrobang, 9u#, asc_height#, 0); uni "0x203D";
3900 italcorr .5[asc_height#,x_height#]*slant;
3901 adjust_fit(punct_fit#,0);
3902 pickup tiny.nib;
3903 path p[]; numeric tim[];
3904 pos0(vair,-60); pos1(.45[hair,stem],180); pos2(hair,90); pos3(curve,0);
3905 pos4(curve,0); pos5(hair,90); pos6(vair,120);
3906 penpos7(dot_size,0); pos8(hair,0); x7=x8=x5;
3907 lft x1r=u; y1=.5[h,x_height]+hair; top y2r=h+o; x2=.5w-hair;
3908 y0l=y1-2hair; x0=.35[x2,x1];
3909 rt x3r=w-u; y3=.5[h,x_height]-hair; x4=x0; y4=bar_height;
3910 x5=.5w; bot y5l=2dot_size; x6-x5=x0-x1; y6-y5=y1-y0;
3911 y7=y2+o; bot y8=dot_size+stem; y8r:=y8r+.5hair; y7l:=y2l-o;
3912 p0:=z6l{dir240}..z5l..z4l..z3l{up}..z2l{left}..z1l..{dir60}z0l;
3913 p1:=z0r{dir-120}..z1r..{right}z2r..{down}z3r..z4r..z5r..{dir60}z6r;
3914 p2:=reverse (z7l---z8l..{.5[z7,z7r]-z8r}z8r..{z7r-z8r}z7r..cycle);
3915 p3:=subpath(-1,length p2-1) of p2;
3916 y7'=y2r+o; z7'=whatever[z8r,z7r];
3917 p4:=z8r--z7';
3918 p5:=z8l--z7l;
3919 (tim0,tim1)=p0 intersectiontimes subpath(0,3) of p2;
3920 (tim2,tim3-2)=p0 intersectiontimes subpath(2,4) of p2;
3921 (tim4-2,tim5)=subpath(2,infinity) of p0 intersectiontimes subpath(0,2) of p3;
3922 (tim6-3,tim7)=subpath(3,infinity) of p0 intersectiontimes subpath(0,1.75) of p3;
3923 (tim8,tim9)=subpath(0,3) of p1 intersectiontimes p2;
3924 (tim10-2,tim11)=subpath(2,3) of p1 intersectiontimes p2;
3925 (tim12-3,tim13)=subpath(3,4) of p1 intersectiontimes p2;
3926 (tim14-4,tim15)=subpath(4,6) of p1 intersectiontimes subpath(0,3) of p2;
3927 (tim16-2,tim17)=subpath(2,infinity) of p0 intersectiontimes p4;
3928 (tim18-3,tim19)=subpath(3,infinity) of p0 intersectiontimes p4;
3929 (tim20-3,tim21)=subpath(3,4) of p1 intersectiontimes p5;
3930 (tim22-4,tim23)=subpath(4,6) of p1 intersectiontimes p5;
3931 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
3932 ..{z8r-.5[z7,z7r]}z8r..z8l
3933 ..subpath(rundy(p0,tim2),rundy(p0,tim4).zpet) of p0
3934 ..subpath(rundy(p3,tim5),rundy(p3,tim7).zpet) of p3
3935 ..subpath(rundy(p0,tim6),infinity) of p0
3936 ..subpath(0,rundy(p1,tim8).zpet) of p1
3937 ..subpath(rundy(p2,tim9),rundy(p2,tim11).zpet) of p2
3938 ..subpath(rundy(p1,tim10),rundy(p1,tim12).zpet) of p1
3939 ..subpath(rundy(p2,tim13),rundy(p2,tim15).zpet) of p2
3940 ..subpath(rundy(p1,tim14),infinity) of p1..cycle;
3941 oblu:=1.5oblu;
3942 infill subpath(rundy(p0,tim16),rundy(p0,tim18).zpet) of p0
3943 ..subpath(rundy(p4,tim19).zpet,rundy(p4,tim17)) of p4..cycle;
3944 infill subpath(rundy(p1,tim20),rundy(p1,tim22).zpet) of p1
3945 ..subpath(rundy(p5,tim23),rundy(p5,tim21).zpet) of p5..cycle;
3946 bot z100=(x5,.5dot_size); dot(100);
3947 penlabels(0,1,2,3,4,5,6,7,8);
3948 endchar;
3949
3950 iff known chars.sign_turned_query:
3951 bskchar "Turned italic question mark";
3952 beginchar(chars.sign_turned_query, 9u#, asc_height#-desc_depth#, desc_depth#); uni "non";
3953 adjust_fit(0,0);
3954 pickup tiny.nib;
3955 pos0(vair,60); pos1(.45[hair,stem],180); pos2(hair,-90); pos3(curve,0);
3956 pos4(curve,0); pos5(hair,-90); pos6(vair,240);
3957 lft x1r=u; y1=-d+(asc_height-.5[asc_height,x_height])-hair; bot y2r=-d-o; x2=.5w-hair;
3958 y0l=y1+2hair; x0=.35[x2,x1];
3959 rt x3r=w-u; y3=-d+(asc_height-.5[asc_height,x_height])+hair; x4=x0; y4=-d+(asc_height-bar_height);
3960 x5=.5w; top y5l=h-2dot_size; x6-x5=x0-x1; y6-y5=y1-y0;
3961 filldraw z6l{dir120}..z5l..z4l..z3l{down}..z2l{left}..z1l..{dir-60}z0l
3962 ..{dir150}z0r..z1r..{right}z2r..{up}z3r..z4r..z5r..{dir-60}z6r
3963 ..cycle;
3964 top z100=(x5,h-.5dot_size); dot(100);
3965 penlabels(0,1,2,3,4,5,6);
3966 endchar;
3967
3968 iff known chars.sign_spanish_query:
3969 bskchar "Reversed italic question mark";
3970 beginchar(chars.sign_spanish_query, 9u#, asc_height#-desc_depth#, desc_depth#); uni "0x00BF";
3971 adjust_fit(0,0);
3972 pickup tiny.nib;
3973 pos0(vair,120); pos1(.45[hair,stem],0); pos2(hair,-90); pos3(curve,180);
3974 pos4(curve,180); pos5(hair,-90); pos6(vair,-60);
3975 rt x1r=w-u; y1=-d+(asc_height-.5[asc_height,x_height])-hair; bot y2r=-d-o; x2=.5w+hair;
3976 y0l=y1+2hair; x0=.35[x2,x1];
3977 lft x3r=u; y3=y1+2hair; x4=x0; y4=-d+(asc_height-bar_height);
3978 x5=.5w; top y5l=h-2dot_size; x6-x5=x0-x1; y6-y5=y1-y0;
3979 filldraw z6l{dir60}..z5l..z4l..z3l{down}..z2l{right}..z1l..{dir240}z0l
3980 ..{dir60}z0r..z1r..{left}z2r..{up}z3r..z4r..z5r..{dir240}z6r
3981 ..cycle;
3982 top z100=(x5,h-.5dot_size); dot(100);
3983 penlabels(0,1,2,3,4,5,6);
3984 endchar;
3985
3986 iff known chars.sign_gnaborretni:
3987 bskchar "Reversed italic interrobang mark";
3988 beginchar(chars.sign_gnaborretni, 9u#, asc_height#-desc_depth#, desc_depth#); uni "non";
3989 adjust_fit(0,0);
3990 pickup tiny.nib;
3991 path p[]; numeric tim[];
3992 pos0(vair,120); pos1(.45[hair,stem],0); pos2(hair,-90); pos3(curve,180);
3993 pos4(curve,180); pos5(hair,-90); pos6(vair,-60);
3994 penpos7(dot_size,180); pos8(hair,180); x7=x8=x5;
3995 rt x1r=w-u; y1=-d+(asc_height-.5[asc_height,x_height])-hair; bot y2r=-d-o; x2=.5w+hair;
3996 y0l=y1+2hair; x0=.35[x2,x1];
3997 lft x3r=u; y3=y1+2hair; x4=x0; y4=-d+(asc_height-bar_height);
3998 x5=.5w; top y5l=h-2dot_size; x6-x5=x0-x1; y6-y5=y1-y0;
3999 top z100=(x5,h-.5dot_size); dot(100);
4000 y7=y2r-o; top y8=h-dot_size-stem; y8r:=y8r-.5hair; y7l:=y2l+o;
4001 p0:=z6l{dir60}..z5l..z4l..z3l{down}..z2l{right}..z1l..{dir240}z0l;
4002 p1:=z0r{dir60}..z1r..{left}z2r..{up}z3r..z4r..z5r..{dir240}z6r;
4003 p2:=reverse (z7l---z8l..{.5[z7,z7r]-z8r}z8r..{z7r-z8r}z7r..cycle);
4004 p3:=subpath(-1,length p2-1) of p2;
4005 y7'=y2r-o; z7'=whatever[z8r,z7r];
4006 p4:=z8r--z7';
4007 p5:=z8l--z7l;
4008 (tim0,tim1)=p0 intersectiontimes subpath(0,3) of p2;
4009 (tim2,tim3-2)=p0 intersectiontimes subpath(2,4) of p2;
4010 (tim4-2,tim5)=subpath(2,infinity) of p0 intersectiontimes subpath(0,2) of p3;
4011 (tim6-3,tim7)=subpath(3,infinity) of p0 intersectiontimes subpath(0,1.75) of p3;
4012 (tim8,tim9)=subpath(0,3) of p1 intersectiontimes p2;
4013 (tim10-2,tim11)=subpath(2,3) of p1 intersectiontimes p2;
4014 (tim12-3,tim13)=subpath(3,4) of p1 intersectiontimes p2;
4015 (tim14-4,tim15)=subpath(4,6) of p1 intersectiontimes subpath(0,3) of p2;
4016 (tim16-2,tim17)=subpath(2,infinity) of p0 intersectiontimes p4;
4017 (tim18-3,tim19)=subpath(3,infinity) of p0 intersectiontimes p4;
4018 (tim20-3,tim21)=subpath(3,4) of p1 intersectiontimes p5;
4019 (tim22-4,tim23)=subpath(4,6) of p1 intersectiontimes p5;
4020 filldraw subpath(0,rundy(p0,tim0).zpet) of p0
4021 ..{z8r-.5[z7,z7r]}z8r..z8l
4022 ..subpath(rundy(p0,tim2),rundy(p0,tim4).zpet) of p0
4023 ..subpath(rundy(p3,tim5),rundy(p3,tim7).zpet) of p3
4024 ..subpath(rundy(p0,tim6),infinity) of p0
4025 ..subpath(0,rundy(p1,tim8).zpet) of p1
4026 ..subpath(rundy(p2,tim9),rundy(p2,tim11).zpet) of p2
4027 ..subpath(rundy(p1,tim10),rundy(p1,tim12).zpet) of p1
4028 ..subpath(rundy(p2,tim13),rundy(p2,tim15).zpet) of p2
4029 ..subpath(rundy(p1,tim14),infinity) of p1..cycle;
4030 oblu:=1.5oblu;
4031 infill subpath(rundy(p0,tim16),rundy(p0,tim18).zpet) of p0
4032 ..subpath(rundy(p4,tim19).zpet,rundy(p4,tim17)) of p4..cycle;
4033 infill subpath(rundy(p1,tim20),rundy(p1,tim22).zpet) of p1
4034 ..subpath(rundy(p5,tim23),rundy(p5,tim21).zpet) of p5..cycle;
4035 penlabels(0,1,2,3,4,5,6,7,8);
4036 endchar;
4037
4038 iff known chars.sign_at:
4039 bskchar "Italic at sign";
4040 beginchar(chars.sign_at, 16u#, asc_height#-.3desc_depth#, .6desc_depth#); uni "0x0040";
4041 italcorr x_height#*slant;
4042 adjust_fit(0,0);
4043 pickup tiny.nib;
4044 numeric H, W, shift; H:=.9x_height; W=.9*10.5u; oblu:=2oblu;
4045 path p[]; numeric tim[];
4046 shift=.5(w-W)+.5u;
4047 pos1(stem,0); pos2(stem,0);
4048 x1=x2; rt x2r=W-if monospace:1.5u else: 2u fi+shift;
4049 top y1=H-hair; y2=.35bar_height;
4050 pos4(hair,90); pos5(curve,180); pos6(.5[hair,stem],-90);
4051 pos7(stem,0); x7=x1; y7=.5bar_height;
4052 pos11(hair,0); pos12(hair,90); pos13(hair,180); pos14(hair,270); pos15(hair,0);
4053 top y4r=H+o; x4=.5W+u+shift; y5=.9bar_height; lft x5r=if monospace: .25u else: 1.5u fi +shift;
4054 bot y6r=-o; x6=x4-u;
4055 rt x11r=w if not monospace: -.5u fi; lft x13r=u; y11=y13=bar_height; y15=if monospace:-u else: 0fi; rt x15r=w;
4056 top y12r=h+o; bot y14r=-d+o; x12=x14-u=.5w;
4057 p0=z4r{left}..z5r..z6r..{up}z7r;
4058 ital_hook(2,3);
4059 p1=z2l{down}..z2'l..{up}z11r;
4060 p2=z4l{left}..z5l..z6l..{up}z7l---z1l;
4061 (tim0,tim1)=p0 intersectiontimes p1;
4062 filldraw subpath(rundy(p1,tim1),2) of p1..{left}z12r..z13r
4063 ..{right}z14r..{z3'-.5[z15,z2']}z15r..z15l{.5[z15,z2']-z3'}
4064 ..z14l{left}..z13l..{right}z12l..{down}z11l..z2'r..{up}z2r
4065 ---z1r..subpath(0,rundy(p0,tim0).zpet) of p0..cycle;
4066 infill p2..cycle;
4067 penlabels(0,1,2,3,4,5,6,7,11,12,13,14,15);
4068 endchar;
4069
4070 iff known chars.sign_ampersand:
4071 bskchar "Italic ampersand";
4072 beginchar(chars.sign_ampersand, 16u#, asc_height#, 0); uni "0x0026";
4073 italcorr .5[asc_height#,x_height#]*slant;
4074 adjust_fit(0,0);
4075 pickup tiny.nib;
4076 numeric tim[]; path p[]; oblu:=2oblu;
4077 pos1(cap_stem,0); pos2(cap_hair,90); pos3(.5[cap_hair,cap_stem],180);
4078 pos4(cap_hair,0); pos4'(cap_hair,60); pos4''(.5[cap_hair,cap_stem],-150);
4079 pos5(cap_curve,180); pos6(cap_hair,-90); pos7(cap_hair,0);
4080 pos8(cap_hair,30); pos9(cap_hair,-60); pos10(cap_hair,-60);
4081 pos11(cap_curve,-60); pos12(cap_curve,-60);
4082 rt x1=w-7u; top y2r=h+o; x2=.35w; lft x3r=2u;
4083 y3=.5[h,x_height]; y2-y1=3/4(x1-x2);
4084 bot y4=x_height; x4=x2+o; y5=.5y4;
4085 lft x5r=u; rt x6=if monospace:.6w else:.55w fi; bot y6r=-o;
4086 rt x7r=w-2.5u; y7=.35[bar_height,x_height];
4087 x4'=x4''=.5[x3,x4]; .5[y4',y4'']=y4; y4'-y4''=.5(x4-x3);
4088 z1'=z1+.2cap_curve*down+o*left; z1''=z1+.5(cap_curve-currentbreadth)*dir45;
4089 z8=z7+cap_stem*unitvector(z2-z7);
4090 .5[z9r,z10r]=z8; z10r-z9r=whatever*(dir45);
4091 lft x10r=w-2u; z12r=z10l+u*unitvector(z10-z8);
4092 z11l=z9r+u*unitvector(z8-z10);
4093 z8'=z8+1.5(cap_hair-currentbreadth)*unitvector(z8-z7);
4094 p0=z8l..z7l..{left}z6l..z5l..z4'l..z4l{down}..z4''l..z3l{up}..z2l..{down}z1l;
4095 p1=z1l{down}..z1'..z1r..z1''..z2r..{down}z3r..z4''r..{up}z4r..z4'r..z5r..{right}z6r..z7r..z8r;
4096 p2=z8r..z10r..z12l..{z9-z10}z10l...z8'...z9l..z11r..z9r{z10-z9}..z8l;
4097 (tim0,tim1-7)=subpath(0,6) of p1 intersectiontimes subpath (7,infinity) of p1;
4098 (tim2-3,tim3)=subpath(3,infinity) of p0 intersectiontimes p1;
4099 (tim4,tim5-4)=p1 intersectiontimes subpath(4,7) of p0;
4100 (tim6,tim7-4)=subpath(0,4) of p0 intersectiontimes subpath(4,infinity) of p0;
4101 filldraw subpath(0,rundy(p1,(tim0,f_obl)).zpet) of p1
4102 ..subpath(rundy(p1,(tim1,f_obl)),rundy(p1,infinity).zpet) of p1
4103 ..subpath(rundy(p2,0),rundy(p2,infinity).zpet) of p2
4104 ..subpath(rundy(p0,0),rundy(p0,tim2).zpet) of p0
4105 ..subpath(rundy(p1,tim3),rundy(p1,(tim4,1.2f_obl)).zpet) of p1
4106 ..subpath(rundy(p0,tim5),infinity) of p0..cycle;
4107 oblu:=.5f_obl;
4108 infill subpath(rundy(p0,tim6),rundy(p0,tim7).zpet) of p0 ..cycle;
4109 penlabels(0,1,2,3,4,4',4'',5,6,7,8,9,10,11,12); labels(1',1'');
4110 endchar;
4111