summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/fonts/source/public/cmll/llsymbols.mf
blob: 2e2fe415b1f56c154dafc577c554d45270d5f07d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
% This file contains symbol definitions for operators used in linear logic.
% The glyph defintions are derived from those in Knuth's Computer Modern and
% from the AMS Symbol fonts, to make them assorted with TeX's standard fonts.
%
% This file was written by Emmanuel Beffara, you can distribute it and/or
% modify it under the terms of the LaTeX Project Public License.

mode_setup; font_setup;

cmchar "Reversed ampersand (par)";

% The code is exactly the one for the ampersand, with a transformation applied
% at the end.

beginchar(0,14u#,asc_height#,0);
italcorr x_height#*slant-serif_fit# - if serifs: .4u# else: 1.5u# fi;
adjust_fit(0,serif_fit#);
pickup tiny.nib; pos2(slab,-90); x2=4u; bot y2r=-o;
if not hefty:(x,y2l)=whatever[z2r,(w-5u,x_height)]; x2l:=x; fi
if serifs: pos0(fudged.hair,0);
 rt x0r+jut=hround(w-.9u); top y0=x_height;
 pos1(fudged.hair,0); z1=whatever[z0,(.6[x0,x2],0)];
 y1=max(y0-1.5bracket-.2x_height,2/3x_height);
 filldraw stroke z0e---z1e...{left}z2e;  % short diagonal
else: pickup fine.nib; pos1(.25[slab,flare],-15); rt x1r=hround(w-2u);
 y1r=good.y .75[bar_height,x_height]; x1l:=good.x x1l; y1l:=good.y y1l;
 top z2'l=(x2l,tiny.top y2l); bot z2'r=(x2r,tiny.bot y2r);
 filldraw stroke term.e(2',1,right,1,4); fi  % short diagonal and terminal
pickup tiny.nib; numeric slope,theta,reduced_hair;
slope=(h-2vair-slab)/10.5u; theta=angle(-slope,1);
reduced_hair=max(tiny.breadth,hround(fudged.hair if hefty:-2stem_corr fi));
lft x3r=hround .75u; x5=.5[x3r,x6l]; lft x6r=hround .5(w-u);
x3l-x3r=curve-tiny; pos6(reduced_hair,180);
pos5(vair,theta); y5=.5h;
ellipse_set(2l,3l,4l,5l); ellipse_set(2r,3r,4r,5r);
pos7(vair,270); top y7l=h+o; x7=.45[x6r,x8r];
pos8(fudged.stem,30); x8l=good.x(x8l+3.5u-x8); y8r=y6;
ellipse_set(7l,6l,5',5l);
filldraw stroke z2e{left}...z3e{up}...z4e---z5e...{up}z6e
 ...z7e{left}...z8e{down};  % bowls
pos10(slab,90); x10=w-3.5u; bot y10l=-o;
pos9(fudged.stem,angle(z8-z10)-90);
z9=.5[z8,z10]+(1.75u,0) rotated(angle(z8-z10)+90);
filldraw stroke z8e{down}...z9e{z10-z8}...{right}z10e;  % long diagonal
if serifs: pickup crisp.nib; pos10'(slab,90); z10'=z10;
 pos11(fudged.hair,180); rt x11l=hround(w-u); y11=.5bar_height;
 filldraw stroke z10'e{right}...{up}z11e;  % terminal
 numeric inner_jut; if rt x6l+.5u<lft x0l-1.5jut: inner_jut=1.5jut;
 else: rt x6l+.5u=lft x0l-inner_jut; fi
 dish_serif(0,1,a,.6,inner_jut,b,.5,jut)(dark);  % serif
else: pickup fine.nib; pos10'(slab,90); z10'=z10;
 pos11(Vround .5[slab,flare],90);
 rt x11=hround(r-letter_fit-u); bot y11l=vround .07bar_height-o;
 filldraw stroke term.e(10',11,right,1,4); fi  % terminal
penlabels(0,1,2,3,4,5,6,7,8,9,10,11);

%%% here it is:

currentpicture := currentpicture scaled -1 shifted (w,h);
endchar;


% The code for arrows is the one from the downward and upward arrows
% (characters '041 and '042 in cmsy, defined in sym.mf)
% with some coordinates moved.

cmchar "Short downward arrow (positive shift)";

beginchar(1,9u#,body_height#,0);
adjust_fit(0,0); pickup crisp.nib;
pos1(rule_thickness,0); pos2(rule_thickness,0);
pos3(rule_thickness,90); pos4(rule_thickness,90);
lft x1l=hround(.5w-.5rule_thickness); y1+.5rule_thickness=h;
x0=x1=x2; bot y0=-d-o; x0-x3=x4-x0=if monospace:3u else:4u fi+eps;
y3=y4=y0+if monospace:.24 else:.36 fi asc_height+eps;
pos5(rule_thickness,angle(z4-z0)); z5l=z0;
pos6(rule_thickness,angle(z3-z0)); z6l=z0;
z9=.2[.5[z3,z4],z0];
numeric t; path p; p=z4r{z9-z4}..z6r;
t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p;
filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r)
 ---z1r..z1l---subpath (t,0) of\\(z3r{z9-z3}..z5r)
 --z3l{z9-z3}..z0 & cycle;  % arrowhead and stem
penlabels(0,1,2,3,4,5,6,9); endchar;

cmchar "Short upward arrow (negative shift)";

beginchar(2,9u#,body_height#,0);
italcorr .76asc_height#*slant+.5crisp#-u#;
adjust_fit(0,0); pickup crisp.nib;
pos1(rule_thickness,0); pos2(rule_thickness,0);
pos3(rule_thickness,90); pos4(rule_thickness,90);
lft x1l=hround(.5w-.5rule_thickness); y1-.5rule_thickness=-d;
x0=x1=x2; top y0=h+o; x0-x3=x4-x0=if monospace:3u else:4u fi+eps;
y3=y4=y0-if monospace:.24 else:.36 fi asc_height-eps;
pos5(rule_thickness,angle(z4-z0)); z5l=z0;
pos6(rule_thickness,angle(z3-z0)); z6l=z0;
z9=.2[.5[z3,z4],z0];
numeric t; path p; p=z4l{z9-z4}..z6r;
t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p;
filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
 ---z1r..z1l---subpath (t,0) of\\(z3l{z9-z3}..z5r)
 --z3r{z9-z3}..z0 & cycle;  % arrowhead and stem
penlabels(0,1,2,3,4,5,6,9); endchar;

cmchar "Short up-and-down arrow";
beginchar(3,9u#,body_height#,0);
adjust_fit(0,0); pickup crisp.nib;
pos1(rule_thickness,0); pos2(rule_thickness,0);
pos3(rule_thickness,90); pos4(rule_thickness,90);
lft x1l=hround(.5w-.5rule_thickness); y1=.5[-d,h];
x0=x1=x2; bot y0=-d-o; x0-x3=x4-x0=4u+eps;
y3=y4=y0+.36asc_height+eps;
pos5(rule_thickness,angle(z4-z0)); z5l=z0;
pos6(rule_thickness,angle(z3-z0)); z6l=z0;
z9=.2[.5[z3,z4],z0];
numeric t; path p; p=z4r{z9-z4}..z6r;
t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p;
filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r)
 ---z1r..z1l---subpath (t,0) of\\(z3r{z9-z3}..z5r)
 --z3l{z9-z3}..z0 & cycle;  % lower arrowhead and stem
pos11(rule_thickness,0); pos12(rule_thickness,0); z11=z1;
pos13(rule_thickness,90); pos14(rule_thickness,90);
x10=x11=x12; top y10=h+o; x10-x13=x14-x10=4u+eps;
y13=y14=y10-.36asc_height-eps;
pos15(rule_thickness,angle(z14-z10)); z15l=z10;
pos16(rule_thickness,angle(z13-z10)); z16l=z10;
z19=.2[.5[z13,z14],z10];
numeric t; path p; p=z14l{z19-z14}..z16r;
t=xpart(p intersectiontimes((x12r,-d)--(x12r,h))); y12=ypart point t of p;
filldraw z10..{z14-z19}z14r--subpath (0,t) of\\(z14l{z19-z14}..z16r)
 ---z11r..z11l---subpath (t,0) of\\(z13l{z19-z13}..z15r)
 --z13r{z19-z13}..z10 & cycle;  % upper arrowhead and stem
penlabels(0,1,2,3,4,5,6,9,10,11,12,13,14,15,16,19); endchar;


% The code for coherence relations is based on the \asymp symbol (named
% "Hardy's asymptotic equivalence sign" number '020 in symbols.mf).

cmchar "Coherence sign";
compute_spread(.45x_height#,.55x_height#);
beginchar(4,14u#,v_center(2spread#+rule_thickness#));
adjust_fit(0,0); pickup rule.nib; autorounded;
lft x1=hround u-eps; x3=x1; x2=x4=w-x1; x5=x6=.5w;
y1=y2; y5=good.y h; y3=y4; .5[y1,y3]=.5[y5,y6]=math_axis;
y1=good.y .3[y5,y6];
draw z1{x5-x1,2(y5-y1)}...z5{right}...z2{x2-x5,2(y2-y5)};  % upper bar
draw z3{x6-x3,2(y6-y3)}...z6{right}...z4{x4-x6,2(y4-y6)};  % lower bar
labels(1,2,3,4,5,6); endchar;

cmchar "Strict coherence"; 
beginchar(5,14u#,asc_height#,desc_depth#); 
adjust_fit(0,0); pickup rule.nib;  
lft x1=hround u; y1=vround(math_axis-.25x_height);  
x3=w-x1; y3=y1;  
penpos2(rule_thickness,90); x2=.5w; y2=good.y(.25x_height+math_axis);  
numeric theta; theta=angle((z2-z1)yscaled 3); 
penpos1(rule_thickness,90+theta); 
penpos3(rule_thickness,90-theta);  
draw z1{dir theta}...z2...{dir-theta}z3; penlabels(1,2,3); 
endchar; 

cmchar "Incoherence sign";
compute_spread(.45x_height#,.55x_height#);
beginchar(6,14u#,v_center(2spread#+rule_thickness#));
adjust_fit(0,0); pickup rule.nib; autorounded;
lft x1=hround u-eps; x3=x1; x2=x4=w-x1; x5=x6=.5w;
y1=y2=good.y h; y3=y4; .5[y1,y3]=.5[y5,y6]=math_axis;
y5=good.y .3[y1,y3];
draw z1{x5-x1,2(y5-y1)}...z5{right}...z2{x2-x5,2(y2-y5)};  % upper bar
draw z3{x6-x3,2(y6-y3)}...z6{right}...z4{x4-x6,2(y4-y6)};  % lower bar
labels(1,2,3,4,5,6); endchar;

cmchar "Strict incoherence"; 
beginchar(7,14u#,asc_height#,desc_depth#); 
adjust_fit(0,0); pickup rule.nib;  
lft x1=hround u; y1=vround(math_axis+.25x_height);  
x3=w-x1; y3=y1; penpos2(rule_thickness,90); x2=.5w;  
y2l=good.y -(.25x_height-math_axis);  
numeric theta; theta=angle((z2-z1)yscaled 3); 
penpos1(rule_thickness,90+theta); 
penpos3(rule_thickness,90-theta);  
draw z1{dir theta}...z2...{dir-theta}z3;  
penlabels(1,2,3); endchar; 

% The definition of the large symbols is the one for the ampersand, adapted
% for a bigger size, with parameters taken from the definition of sum
% operators.

charlist 8: 9;  % large "with"

cmchar "\textstyle large ampersand";
beginchar(8,19u#,0,10/6dh#);
italcorr x_height#*slant-serif_fit# - if serifs: .4u# else: 1.5u# fi;
adjust_fit(0,serif_fit#);
pickup tiny.nib; pos2(slab,-90); x2=(4/14)*w; bot y2r=-d-o;
% this is dirty:
save x_height; x_height:=.62[-d,h];
if not hefty:(x,y2l)=whatever[z2r,(w-5u,x_height)]; x2l:=x; fi
if serifs: pos0(rule_thickness,0);
 rt x0r+jut=hround(w-.9u); top y0=.62[-d,h];
 pos1(rule_thickness,0); z1=whatever[z0,(.6[x0,x2],-d)];
 y1=max(y0-1.5bracket-.124*(d+h),.413[-d,h]);
 filldraw stroke z0e---z1e...{left}z2e;  % short diagonal
else: pickup fine.nib; pos1(.25[slab,flare],-15); rt x1r=hround(w-2u);
 y1r=good.y .51[-d,h]; x1l:=good.x x1l; y1l:=good.y y1l;
 top z2'l=(x2l,tiny.top y2l); bot z2'r=(x2r,tiny.bot y2r);
 filldraw stroke term.e(2',1,right,1,4); fi  % short diagonal and terminal
pickup tiny.nib; numeric slope,theta,reduced_hair;
slope=(asc_height-2vair-rule_thickness)/10.5u; theta=angle(-slope,1);
reduced_hair=max(tiny.breadth,hround(slab if hefty:-2stem_corr fi));
lft x3r=hround (3w/56); x5=.5[x3r,x6l]; lft x6r=hround 14/28 w;
x3l-x3r=curve-tiny; pos6(reduced_hair,180);
pos5(reduced_hair,theta); y5=.5[-d,h];
ellipse_set(2l,3l,4l,5l); ellipse_set(2r,3r,4r,5r);
pos7(reduced_hair,270); top y7l=h+o; x7=.45[x6r,x8r];
pos8(curve,30); x8l=good.x(x8l+w/4-x8); y8r=y6;
ellipse_set(7l,6l,5',5l);
filldraw stroke z2e{left}...z3e{up}...z4e---z5e...{up}z6e
 ...z7e{left}...z8e{down};  % bowls
pos10(slab,90); x10=10.5/14 w; bot y10l=-d-o;
pos9(curve,angle(z8-z10)-90);
z9=.5[z8,z10]+(1.75u,0) rotated(angle(z8-z10)+90);
filldraw stroke z8e{down}...z9e{z10-z8}...{right}z10e;  % long diagonal
if serifs: pickup crisp.nib; pos10'(slab,90); z10'=z10;
 pos11(rule_thickness,180); rt x11l=hround(13/14 w);
 y11=(.5(bar_height/asc_height)) [-d,h];
 filldraw stroke z10'e{right}...{up}z11e;  % terminal
 numeric inner_jut; if rt x6l+.5u<lft x0l-1.5jut: inner_jut=1.5jut;
 else: rt x6l+.5u=lft x0l-inner_jut; fi
 dish_serif(0,1,a,.6,inner_jut,b,.5,jut)(dark);  % serif
else: pickup fine.nib; pos10'(slab,90); z10'=z10;
 pos11(Vround .5[rule_thickness,flare],90);
 rt x11=hround(r-letter_fit-u); bot y11l=vround .0316(h+d)-d-o;
 filldraw stroke term.e(10',11,right,1,4); fi  % terminal
penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar;

cmchar "\displaystyle large ampersand";
beginchar(9,26u#,0,14/6dh#);
italcorr x_height#*slant-serif_fit# - if serifs: .4u# else: 1.5u# fi;
adjust_fit(0,serif_fit#);
numeric thick_stem, thin_stem;
thick_stem=bold+4dw; thin_stem=rule_thickness+dw;
pickup tiny.nib; pos2(max(slab,thin_stem),-90); x2=(4/14)*w; bot y2r=-d-o;
% this is dirty:
save x_height; x_height:=.62[-d,h];
if not hefty:(x,y2l)=whatever[z2r,(w-5u,x_height)]; x2l:=x; fi
if serifs: pos0(thin_stem,0);
 rt x0r+jut=hround(w-.9u); top y0=.62[-d,h];
 pos1(thin_stem,0); z1=whatever[z0,(.6[x0,x2],-d)];
 y1=max(y0-1.5bracket-.124*(d+h),.413[-d,h]);
 filldraw stroke z0e---z1e...{left}z2e;  % short diagonal
else: pickup fine.nib; pos1(.25[slab,flare],-15); rt x1r=hround(w-2u);
 y1r=good.y .51[-d,h]; x1l:=good.x x1l; y1l:=good.y y1l;
 top z2'l=(x2l,tiny.top y2l); bot z2'r=(x2r,tiny.bot y2r);
 filldraw stroke term.e(2',1,right,1,4); fi  % short diagonal and terminal
pickup tiny.nib; numeric slope,theta,reduced_hair;
slope=(asc_height-2vair-thin_stem)/10.5u; theta=angle(-slope,1);
reduced_hair=max(tiny.breadth,hround(max(slab,thin_stem) if hefty:-2stem_corr fi));
lft x3r=hround (3w/56); x5=.5[x3r,x6l]; lft x6r=hround 14/28 w;
x3l-x3r=thick_stem-tiny; pos6(reduced_hair,180);
pos5(reduced_hair,theta); y5=.5[-d,h];
ellipse_set(2l,3l,4l,5l); ellipse_set(2r,3r,4r,5r);
pos7(reduced_hair,270); top y7l=h+o; x7=.45[x6r,x8r];
pos8(thick_stem,30); x8l=good.x(x8l+w/4-x8); y8r=y6;
ellipse_set(7l,6l,5',5l);
filldraw stroke z2e{left}...z3e{up}...z4e---z5e...{up}z6e
 ...z7e{left}...z8e{down};  % bowls
pos10(thin_stem,90); x10=10.5/14 w; bot y10l=-d-o;
pos9(thick_stem,angle(z8-z10)-90);
z9=.5[z8,z10]+(1.75u,0) rotated(angle(z8-z10)+90);
filldraw stroke z8e{down}...z9e{z10-z8}...{right}z10e;  % long diagonal
if serifs: pickup crisp.nib; pos10'(thin_stem,90); z10'=z10;
 pos11(thin_stem,180); rt x11l=hround(13/14 w);
 y11=(.5(bar_height/asc_height)) [-d,h];
 filldraw stroke z10'e{right}...{up}z11e;  % terminal
 numeric inner_jut; if rt x6l+.5u<lft x0l-1.5jut: inner_jut=1.5jut;
 else: rt x6l+.5u=lft x0l-inner_jut; fi
 dish_serif(0,1,a,.6,inner_jut,b,.5,jut)(dark);  % serif
else: pickup fine.nib; pos10'(thin_stem,90); z10'=z10;
 pos11(Vround .5[thin_stem,flare],90);
 rt x11=hround(r-letter_fit-u); bot y11l=vround .0316(h+d)-d-o;
 filldraw stroke term.e(10',11,right,1,4); fi  % terminal
penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar;

charlist 10: 11;  % large "par"

cmchar "\textstyle large reversed ampersand";
beginchar(10,19u#,0,10/6dh#);
italcorr x_height#*slant-serif_fit# - if serifs: .4u# else: 1.5u# fi;
adjust_fit(0,serif_fit#);
pickup tiny.nib; pos2(slab,-90); x2=(4/14)*w; bot y2r=-d-o;
% this is dirty:
save x_height; x_height:=.62[-d,h];
if not hefty:(x,y2l)=whatever[z2r,(w-5u,x_height)]; x2l:=x; fi
if serifs: pos0(rule_thickness,0);
 rt x0r+jut=hround(w-.9u); top y0=.62[-d,h];
 pos1(rule_thickness,0); z1=whatever[z0,(.6[x0,x2],-d)];
 y1=max(y0-1.5bracket-.124*(d+h),.413[-d,h]);
 filldraw stroke z0e---z1e...{left}z2e;  % short diagonal
else: pickup fine.nib; pos1(.25[slab,flare],-15); rt x1r=hround(w-2u);
 y1r=good.y .51[-d,h]; x1l:=good.x x1l; y1l:=good.y y1l;
 top z2'l=(x2l,tiny.top y2l); bot z2'r=(x2r,tiny.bot y2r);
 filldraw stroke term.e(2',1,right,1,4); fi  % short diagonal and terminal
pickup tiny.nib; numeric slope,theta,reduced_hair;
slope=(asc_height-2vair-rule_thickness)/10.5u; theta=angle(-slope,1);
reduced_hair=max(tiny.breadth,hround(slab if hefty:-2stem_corr fi));
lft x3r=hround (3w/56); x5=.5[x3r,x6l]; lft x6r=hround 14/28 w;
x3l-x3r=curve-tiny; pos6(reduced_hair,180);
pos5(reduced_hair,theta); y5=.5[-d,h];
ellipse_set(2l,3l,4l,5l); ellipse_set(2r,3r,4r,5r);
pos7(reduced_hair,270); top y7l=h+o; x7=.45[x6r,x8r];
pos8(curve,30); x8l=good.x(x8l+w/4-x8); y8r=y6;
ellipse_set(7l,6l,5',5l);
filldraw stroke z2e{left}...z3e{up}...z4e---z5e...{up}z6e
 ...z7e{left}...z8e{down};  % bowls
pos10(slab,90); x10=10.5/14 w; bot y10l=-d-o;
pos9(curve,angle(z8-z10)-90);
z9=.5[z8,z10]+(1.75u,0) rotated(angle(z8-z10)+90);
filldraw stroke z8e{down}...z9e{z10-z8}...{right}z10e;  % long diagonal
if serifs: pickup crisp.nib; pos10'(slab,90); z10'=z10;
 pos11(rule_thickness,180); rt x11l=hround(13/14 w);
 y11=(.5(bar_height/asc_height)) [-d,h];
 filldraw stroke z10'e{right}...{up}z11e;  % terminal
 numeric inner_jut; if rt x6l+.5u<lft x0l-1.5jut: inner_jut=1.5jut;
 else: rt x6l+.5u=lft x0l-inner_jut; fi
 dish_serif(0,1,a,.6,inner_jut,b,.5,jut)(dark);  % serif
else: pickup fine.nib; pos10'(slab,90); z10'=z10;
 pos11(Vround .5[slab,flare],90);
 rt x11=hround(r-letter_fit-u); bot y11l=vround .0316(h+d)-d-o;
 filldraw stroke term.e(10',11,right,1,4); fi  % terminal
currentpicture := currentpicture scaled -1 shifted (w,h-d);
penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar;

cmchar "\displaystyle large reversed ampersand";
beginchar(11,26u#,0,14/6dh#);
italcorr x_height#*slant-serif_fit# - if serifs: .4u# else: 1.5u# fi;
adjust_fit(0,serif_fit#);
numeric thick_stem, thin_stem;
thick_stem=bold+4dw; thin_stem=rule_thickness+dw;
pickup tiny.nib; pos2(max(slab,thin_stem),-90); x2=(4/14)*w; bot y2r=-d-o;
% this is dirty:
save x_height; x_height:=.62[-d,h];
if not hefty:(x,y2l)=whatever[z2r,(w-5u,x_height)]; x2l:=x; fi
if serifs: pos0(thin_stem,0);
 rt x0r+jut=hround(w-.9u); top y0=.62[-d,h];
 pos1(thin_stem,0); z1=whatever[z0,(.6[x0,x2],-d)];
 y1=max(y0-1.5bracket-.124*(d+h),.413[-d,h]);
 filldraw stroke z0e---z1e...{left}z2e;  % short diagonal
else: pickup fine.nib; pos1(.25[thin_stem,flare],-15); rt x1r=hround(w-2u);
 y1r=good.y .51[-d,h]; x1l:=good.x x1l; y1l:=good.y y1l;
 top z2'l=(x2l,tiny.top y2l); bot z2'r=(x2r,tiny.bot y2r);
 filldraw stroke term.e(2',1,right,1,4); fi  % short diagonal and terminal
pickup tiny.nib; numeric slope,theta,reduced_hair;
slope=(asc_height-2vair-thin_stem)/10.5u; theta=angle(-slope,1);
reduced_hair=max(tiny.breadth,hround(max(slab,thin_stem) if hefty:-2stem_corr fi));
lft x3r=hround (3w/56); x5=.5[x3r,x6l]; lft x6r=hround 14/28 w;
x3l-x3r=thick_stem-tiny; pos6(reduced_hair,180);
pos5(reduced_hair,theta); y5=.5[-d,h];
ellipse_set(2l,3l,4l,5l); ellipse_set(2r,3r,4r,5r);
pos7(reduced_hair,270); top y7l=h+o; x7=.45[x6r,x8r];
pos8(thick_stem,30); x8l=good.x(x8l+w/4-x8); y8r=y6;
ellipse_set(7l,6l,5',5l);
filldraw stroke z2e{left}...z3e{up}...z4e---z5e...{up}z6e
 ...z7e{left}...z8e{down};  % bowls
pos10(thin_stem,90); x10=10.5/14 w; bot y10l=-d-o;
pos9(thick_stem,angle(z8-z10)-90);
z9=.5[z8,z10]+(1.75u,0) rotated(angle(z8-z10)+90);
filldraw stroke z8e{down}...z9e{z10-z8}...{right}z10e;  % long diagonal
if serifs: pickup crisp.nib; pos10'(thin_stem,90); z10'=z10;
 pos11(thin_stem,180); rt x11l=hround(13/14 w);
 y11=(.5(bar_height/asc_height)) [-d,h];
 filldraw stroke z10'e{right}...{up}z11e;  % terminal
 numeric inner_jut; if rt x6l+.5u<lft x0l-1.5jut: inner_jut=1.5jut;
 else: rt x6l+.5u=lft x0l-inner_jut; fi
 dish_serif(0,1,a,.6,inner_jut,b,.5,jut)(dark);  % serif
else: pickup fine.nib; pos10'(thin_stem,90); z10'=z10;
 pos11(Vround .5[thin_stem,flare],90);
 rt x11=hround(r-letter_fit-u); bot y11l=vround .0316(h+d)-d-o;
 filldraw stroke term.e(10',11,right,1,4); fi  % terminal
currentpicture := currentpicture scaled -1 shifted (w,h-d);
penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar;

bye.