Debian Codegraph @

texmf-dist/fonts/source/jknappen/ec/txsymbol.mf

raw
1 % txsymbol.mf
2 %
3 % (c) Copyright 1995, 1996, 1997 J"org Knappen
4 %
5 % This file is part of ecfonts version 1.0
6 %
7 % Please read the files 00readme.txt, 00inst.txt, 00error.txt, and
8 % copyrite.txt for further information
9 %
10 % You find some documentation in ecdoc.tex (needs LaTeX2e)
11 %
12 % EC Version 1.0
13 % 31-DEC-1996
14 %
15 % Miscellaneous symbols for the TS1 encoding
16 %
17 % Heavily borrowing from existent fonts, like Computer Modern, AMS symbols
18 % and wasy symbols
19
20 version_check(1,0); % |version_check| was introduced in dc1.3
21
22 ecchar"Single straight base quote"; % jk
23 beginchar(oct"015",7u#,asc_height#,0);
24 numeric shifth_down;
25 adjust_fit(0,0);
26 x1=x2=.5w;
27 y2=max(.5[bar_height,x_height]+.5vair,h-x_height)-the_shift;
28 if serifs:
29 y1=flare/2; the_shift=h-.5stem-y1;
30 pickup crisp.nib;
31 pos1(flare,0); pos2(vair,0);
32 filldraw circ_stroke (z1e--z2e); % stem and bulb
33 else:
34 top y1=stem; the_shift=h-y1;
35 pickup fine.nib;
36 pos1(stem,0); pos2(vair,0);
37 filldraw stroke z1e--z2e; % stem
38 fi
39 charht:=dot_size#; chardp:=desc_depth#;
40 penlabels(1,2,3,4);
41 endchar;
42
43 ecchar"Double straight base quotes"; % from pl_cud (plfonts)
44 beginchar(oct"022",9u#,asc_height#,0);
45 numeric top_width#,spread#,shifth_down;
46 top_width#=if serifs: flare# else: stem# fi;
47 spread#=max(3u#,top_width#+.5u#); define_pixels(spread);
48 adjust_fit(0,0);
49 numeric the_shift;
50 x1=x2; x3=x4=w-x1; x3-x1=spread+2; y1=y3;
51 y2=y4=max(.5[bar_height,x_height]+.5vair,h-x_height)-the_shift;
52 if serifs:
53 y1=flare/2; the_shift=h-.5stem-y1;
54 pickup crisp.nib;
55 pos1(flare,0); pos2(vair,0); pos3(flare,0); pos4(vair,0);
56 filldraw circ_stroke (z1e--z2e); % left stem and bulb
57 filldraw circ_stroke (z3e--z4e); % right stem and bulb
58 else:
59 top y1=stem; the_shift=h-y1;
60 pickup fine.nib;
61 pos1(stem,0); pos2(vair,0); pos3(stem,0); pos4(vair,0);
62 filldraw stroke z1e--z2e; % left stem
63 filldraw stroke z3e--z4e; % right stem
64 fi
65 charht:=dot_size#; chardp:=desc_depth#;
66 penlabels(1,2,3,4);
67 endchar;
68
69 ecchar "twelve u dash";
70 beginchar(oct"025",12u#,x_height#,0);
71 italcorr .61803x_height#*slant+.5u#;
72 adjust_fit(letter_fit#,letter_fit#);
73 pickup crisp.nib; pos1(vair,90); pos2(vair,90);
74 top y1r=top y2r=vround(.61803h+.5vair); lft x1=-eps; rt x2=w+eps;
75 filldraw stroke z1e--z2e; % bar
76 penlabels(1,2); endchar;
77
78 ecchar "three quarters em dash";
79 beginchar(oct"026",13.5u#,x_height#,0);
80 italcorr .61803x_height#*slant+.5u#;
81 adjust_fit(letter_fit#,letter_fit#);
82 pickup crisp.nib; pos1(vair,90); pos2(vair,90);
83 top y1r=top y2r=vround(.61803h+.5vair); lft x1=-eps; rt x2=w+eps;
84 filldraw stroke z1e--z2e; % bar
85 penlabels(1,2); endchar;
86
87 ecchar "Capital compound word mark";
88 beginchar(oct"027",0,cap_height#,0);
89 zero_width;
90 endchar;
91
92 ecchar "Leftward arrow"; % from sym.mf (cmfonts)
93 compute_spread(.45x_height#,.55x_height#);
94 beginchar(oct"030",18u#,v_center(spread#+rule_thickness#));
95 adjust_fit(0,0); pickup crisp.nib;
96 pos1(rule_thickness,90); pos2(rule_thickness,90);
97 pos3(rule_thickness,0); pos4(rule_thickness,0);
98 y0=y1=y2=math_axis; x1+.5rule_thickness=hround(w-u); lft x0=hround u;
99 y3-y0=y0-y4=if monospace:.24 else:.36 fi asc_height+eps;
100 x3=x4=x0+if monospace:3u else:4u fi+eps;
101 pos5(rule_thickness,angle(z4-z0)); z5l=z0;
102 pos6(rule_thickness,angle(z3-z0)); z6l=z0;
103 z9=.2[.5[z3,z4],z0];
104 numeric t; path p; p=z4r{z9-z4}..z6r;
105 t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
106 filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r)
107 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r)
108 --z3l{z9-z3}..z0 & cycle; % arrowhead and stem
109 penlabels(0,1,2,3,4,5,6,9); endchar;
110
111 ecchar "Rightward arrow"; % from sym.mf (cmfonts)
112 compute_spread(.45x_height#,.55x_height#);
113 beginchar(oct"031",18u#,v_center(spread#+rule_thickness#));
114 adjust_fit(0,0); pickup crisp.nib;
115 pos1(rule_thickness,90); pos2(rule_thickness,90);
116 pos3(rule_thickness,0); pos4(rule_thickness,0);
117 y0=y1=y2=math_axis; x1-.5rule_thickness=hround u; rt x0=hround(w-u);
118 y3-y0=y0-y4=if monospace:.24 else:.36 fi asc_height+eps;
119 x3=x4=x0-if monospace:3u else:4u fi-eps;
120 pos5(rule_thickness,angle(z4-z0)); z5l=z0;
121 pos6(rule_thickness,angle(z3-z0)); z6l=z0;
122 z9=.2[.5[z3,z4],z0];
123 numeric t; path p; p=z4l{z9-z4}..z6r;
124 t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
125 filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
126 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r)
127 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
128 penlabels(0,1,2,3,4,5,6,9); endchar;
129
130 ecchar"Tie accent"; % from italms (cmfonts)
131 beginchar(oct"032",5u#,asc_height#,0);
132 italcorr 4/9[x_height#,asc_height#]*slant+4.5u#+2letter_fit#+.5hair#;
133 adjust_fit(if monospace:2u#,2u# else:serif_fit#,serif_fit# fi);
134 pickup fine.nib; pos1(hair,180); pos2(vround 1/5[vair,stem],90);
135 pos3(hair,0);
136 lft x1r=hround(.5w-.5hair); x2=.5[x1,x3];
137 rt x3r=hround(w+4u+2letter_fit+.5hair);
138 y1=y3=4/9[x_height,asc_height]; top y2r=vround 8/9[x_height,asc_height];
139 filldraw stroke super_arc.e(1,2) & super_arc.e(2,3); % arc
140 penlabels(1,2,3); endchar;
141
142 ecchar"New tie accent"; % centered
143 beginchar(oct"034",9u#,asc_height#,0);
144 italcorr 4/9[x_height#,asc_height#]*slant+4.5u#+2letter_fit#+.5hair#;
145 adjust_fit(if monospace:2u#,2u# else:serif_fit#,serif_fit# fi);
146 pickup fine.nib; pos1(hair,180); pos2(vround 1/5[vair,stem],90);
147 pos3(hair,0);
148 lft x1r=w-rt x3r=hround(2u-.5vair); x2=.5w;
149 y1=y3=4/9[x_height,asc_height]; top y2r=vround 8/9[x_height,asc_height];
150 filldraw stroke super_arc.e(1,2) & super_arc.e(2,3); % arc
151 penlabels(1,2,3); endchar;
152
153 ecchar "Ascender height compound word mark";
154 beginchar(oct"037",0,asc_height#,0);
155 zero_width;
156 endchar;
157
158 iff not variant_g: % not italic
159 ecchar"Blank symbol"; % jk
160 beginchar(oct"040",10u#+serif_fit#,asc_height#,0);
161 italcorr .5x_height#*slant+min(.5curve#-u#,-.25u#);
162 adjust_fit(serif_fit#,0);
163 pickup tiny.nib; pos1(stem',0); pos2(stem,0);
164 pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2;
165 lft x1l=hround(2.5u-.5stem'); top y1=h;
166 numeric edge; edge=rt x2r;
167 pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180);
168 pos4(vair,90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180);
169 rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l),1/3[rt x2,edge]);
170 y3=1/8[bar_height,x_height];
171 x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo;
172 rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height;
173 x6l=x4l-.2u; bot y6r=-oo;
174 x7=x3; y7=min(y3,y6+y4-y3+.6vair);
175 (x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x4,x5r]);
176 (x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x6,x5r]);
177 filldraw stroke z3e{up}...pulled_arc.e(4,5)&pulled_arc.e(5,6)...{up}z7e; % bowl
178 y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l));
179 y2=ypart(((edge,h)--(edge,0))intersectionpoint(z6l{left}...{up}z7l));
180 pickup tiny.nib; filldraw stroke z1e--z0'e--z0e--z2e; % stem
181 pickup crisp.nib; pos8(hair,0); pos7'(stem,0);
182 z7'=z2; x8l=x7'l; bot y8=0;
183 filldraw stroke z7'e--z8e; % point
184 if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif
185 put_cross(.5stem+if serifs: .9max(limit_dist,jut) else: 1.8u fi,.5stem+3u);
186 penlabels(0,1,2,3,4,5,6,7,8); endchar;
187
188 iff variant_g: % italic
189 ecchar"Blank symbol"; % jk
190 beginchar(oct"040",8u#,asc_height#,0);
191 italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi;
192 adjust_fit(0,0); pickup tiny.nib;
193 pos1(stem,0); pos2(stem,0); x1=x2;
194 lft x1l=hround(1.5u-.5stem); top y1=h; y2=.5x_height;
195 filldraw stroke z1e--z2e; % stem
196 sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif
197 pickup fine.nib; pos2'(stem,-180); pos3(vair,-90);
198 pos4(curve,0); pos5(vair,90); pos0(hair,180);
199 z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-1.5u+.5curve);
200 bot y3r=-oo; top y5r=x_height+oo; y4=y2;
201 filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4)
202 & pulled_arc.e(4,5) & super_arc.e(5,0); % bowl
203 math_fit(-.3x_height#*slant+.5curve#-u#,ic#);
204 put_cross(.5stem+if serifs: .9max(limit_dist,jut) else: 1.8u fi,.5stem+3u);
205 penlabels(0,1,2,3,4,5); endchar;
206
207 ecchar"Dollar sign"; % from romanp (cm)
208 beginchar("$",9u#,body_height#,body_height#-asc_height#);
209 italcorr fig_height#*slant-.5u#; % same as for digits
210 adjust_fit(0,0);
211 numeric theta; theta=90-angle(50u,asc_height); slope:=-asc_height/50u;
212 pickup fine.nib; pos2(slab,-90);
213 pos0(cap_stem,theta); pos7(slab,-90);
214 x2=x0=x7=.5w; top y2l=asc_height+oo; bot y7r=-oo;
215 y0=.52asc_height; lft x3l=hround u; rt x6r=hround(w-u);
216 x3r-x3l=x6r-x6l=hround .35[slab,cap_stem]-fine;
217 ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r;
218 ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r;
219 filldraw stroke super_arc.e(2,3) & z3e{down}
220 ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke
221 if serifs: pos1(hair,0); pos8(hair,180);
222 pos10(flare,0); pos9(flare,180);
223 rt x1r=hround(w-u); lft x8r=hround u; y1=.5[y0,y2]; y8=.5[y0,y7];
224 {{less_tense; pos2'(slab,90); z2'=z2; bulb(2',1,10); % upper arc and bulb
225 bulb(7,8,9)}}; % lower arc and bulb
226 else: pos1(.6[slab,flare],-100); pos8(flare,-100);
227 rt x1l=hround(w-1.3u); lft x8r=hround .8u;
228 top y1l=vround .92asc_height+oo; bot y8r=vround .1asc_height-oo;
229 filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal
230 filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal
231 pickup crisp.nib; pos12(bar,0); pos11(bar,0);
232 lft x12l=lft x11l=hround(.5w-.5bar); top y12=h; bot y11=-d;
233 filldraw stroke z12e--z11e; % vertical crossbar
234 penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12); endchar;
235
236
237 ecchar "Straight single quote"; % from romsub (cm)
238 beginchar(oct"047",5u#,asc_height#,0);
239 italcorr asc_height#*slant+.5 if serifs: flare# else: stem# fi -2u#;
240 adjust_fit(0,0);
241 x1=x2=.5w; y2=max(.5[bar_height,x_height]+.5vair,h-x_height);
242 if serifs: pickup crisp.nib; pos1(flare,0); pos2(vair,0);
243 y1+.5stem=h; filldraw circ_stroke z1e--z2e; % stem and bulb
244 else: pickup fine.nib; pos1(stem,0); pos2(vair,0);
245 top y1=h; filldraw stroke z1e--z2e; fi % stem
246 penlabels(1,2); endchar;
247
248 ecchar "Comma";
249 beginchar(",",5u#,pdot_diam#,comma_depth#);
250 adjust_fit(0,0);
251 x1-.5pdot_diam=hround(.5w-.5pdot_diam); y1-.5pdot_diam=0;
252 comma(1,a,pdot_diam,.2u,comma_depth); % dot and tail
253 penlabels(1); endchar;
254
255 ecchar "Double hyphen or short equals sign"; % jk
256 compute_spread(.45x_height#,.55x_height#);
257 beginchar(oct"055",6u#,v_center(spread#+rule_thickness#));
258 italcorr h#*slant-.5u#;
259 adjust_fit(0,0);
260 numeric thickness; thickness=if hefty:bar else:.75[hair,stem] fi;
261 pickup crisp.nib; pos1(thickness,90); pos2(thickness,90);
262 pos3(thickness,90); pos4(thickness,90);
263 y1=y2; y3=y4;
264 top y1=vround .5h+.5thickness+.5spread;
265 top y3=vround .5h+.5thickness-.5spread;
266 rt x2=hround(w-u)+eps;
267 if monospace: x2=w-x1 else: lft x1=hround .2u-eps fi;
268 x3=x1; x4=x2;
269 filldraw stroke z1e--z2e; % upper bar
270 filldraw stroke z3e--z4e; % lower bar
271 penlabels(1,2,3,4); endchar;
272
273 ecchar "Period";
274 beginchar(".",5u#,pdot_diam#,0);
275 adjust_fit(0,0); pickup fine.nib;
276 pos1(pdot_diam,0); pos2(pdot_diam,90);
277 lft x1l=hround(.5w-.5pdot_diam); bot y2l=0; z1=z2; dot(1,2); % dot
278 penlabels(1,2); endchar;
279
280 ecchar "Asterisk at the axis"; % from mathsy
281 beginchar(oct"052",9u#,v_center(x_height#));
282 adjust_fit(0,0);
283 numeric ast_flare; ast_flare=hround .7[thin_join,stem];
284 x0=.5w; y0=h-.5x_height;
285 for d=-150 step 60 until 150: z[d]=z0+.5dir d xscaled 7.5u yscaled x_height;
286 numeric theta; theta=angle(z[d]-z0);
287 fill z0+.5(0,-thin_join)rotated theta
288 ---z[d]+.5(-ast_flare,-ast_flare)rotated theta
289 ..z[d]..z[d]+.5(-ast_flare,ast_flare)rotated theta
290 ---z0+.5(0,thin_join)rotated theta--cycle; endfor % diagonal at angle |d|
291 labels(0,[-150],[-90],[-30],30,90,150); endchar;
292
293 ecchar "Fraction"; % from punct (cm)" Virgule (slash)"
294 beginchar("/",9u#,body_height#,paren_depth#);
295 italcorr body_height#*slant-.5u#;
296 adjust_fit(0,0); pickup rule.nib;
297 rt x1=hround(w-u)+eps; top y1=h+eps;
298 lft x2=hround u-eps; bot y2=-d-eps;
299 draw z1--z2; % diagonal
300 penlabels(1,2); endchar;
301
302 ecchar "Left angle bracket";
303 beginchar(oct"074",7u#,body_height#,paren_depth#);
304 adjust_fit(0,0); pickup rule.nib;
305 rt x1=hround(w-u)+eps; x1=x3; lft x2=hround 2u-1-eps;
306 top y1=h+eps; .5[y1,y3]=y2=math_axis;
307 draw z1--z2--z3; % diagonals
308 labels(1,2,3); endchar;
309
310 ecchar "Minus sign";
311 beginarithchar("="); pickup extra_rule.nib;
312 lft x3=hround u-eps; x4=w-x3; y3=y4=math_axis;
313 draw z3--z4; % crossbar
314 labels(1,2,3,4); endchar;
315
316 ecchar "Right angle bracket";
317 beginchar(oct"076",7u#,body_height#,paren_depth#);
318 adjust_fit(0,0); pickup rule.nib;
319 rt(w-x1)=hround(w-u)+eps; x1=x3; lft(w-x2)=hround 2u-1-eps;
320 top y1=h+eps; .5[y1,y3]=y2=math_axis;
321 draw z1--z2--z3; % diagonals
322 labels(1,2,3); endchar;
323
324 ecchar"Mho sign (turned Omega)"; % from lasy
325 beginchar(oct"115",13u#,cap_height#,0);
326 italcorr cap_height#*slant-.35u#; %italcorr .75cap_height#*slant-.5u#;
327 adjust_fit(0,0);
328 pickup tiny.nib; pos1(vair,-90); pos2(cap_curve,0);
329 pos3(vair,0); pos4(cap_curve,180); pos5(vair,180);
330 x1=.5w; bot y1r=0-o; lft x4r=hround u; y2=y4=1/3h; x2=w-x4;
331 rt x5l=hround(1/3(w+.5u)+.5hair); top y3=top y5=h; x3=w-x5;
332 filldraw stroke z3e{down}...{down}z2e
333 & pulled_super_arc.e(2,1)(.5superpull)
334 & pulled_super_arc.e(1,4)(.5superpull)
335 & z4e{up}...{up}z5e; % bowl
336 numeric arm_thickness; path p; p=z3{down}...{down}z2;
337 arm_thickness=Vround(if hefty:slab+2stem_corr else:.75[slab,cap_vstem] fi);
338 pickup crisp.nib; pos6(arm_thickness,90); pos7(fudged.hair,0);
339 top y6r=h; x6=x3; rt x7r=hround (w-.8u); y7=good.y(y6l-.5beak)+eps;
340 (x,y)=p intersectionpoint((0,y6l)--(w+h,y6l)); x6l:=x;
341 arm(6,7,a,.5beak_darkness,1.2beak_jut); % right arm and beak
342 pos8(arm_thickness,90); pos9(fudged.hair,180);
343 y8=y6; y9=y7; x8+x6=x9+x7=w; x8l:=w-x6l;
344 arm(8,9,b,.5beak_darkness,-1.2beak_jut); % left arm and beak
345 math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9); endchar;
346
347 ecchar"Big circle for copyright, etc";
348 beginchar("O",20u#,body_height#,max(paren_depth#,desc_depth#)); autorounded;
349 adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib;
350 if .5w <> good.x .5w: change_width; fi
351 lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o;
352 circle_points; draw_circle; % circle
353 labels(1,2,3,4,5,6,7,8); endchar;
354
355 ecchar"Ohm sign (ISO 6937)"; % from greeku (cmfonts)
356 beginchar(oct"127",13u#,cap_height#,0);
357 italcorr .75cap_height#*slant-.5u#;
358 adjust_fit(0,0);
359 pickup tiny.nib; pos1(vair,90); pos2(cap_curve,180);
360 pos3(vair,180); pos4(cap_curve,0); pos5(vair,0);
361 x1=.5w; top y1r=h+o; lft x2r=hround u; y2=y4=2/3h; x4=w-x2;
362 rt x3l=hround(1/3(w+.5u)+.5hair); bot y3=bot y5=0; x5=w-x3;
363 filldraw stroke z3e{up}...{up}z2e
364 & pulled_super_arc.e(2,1)(.5superpull)
365 & pulled_super_arc.e(1,4)(.5superpull)
366 & z4e{down}...{down}z5e; % bowl
367 numeric arm_thickness; path p; p=z3{up}...{up}z2;
368 arm_thickness=Vround(if hefty:slab+2stem_corr else:.75[slab,cap_vstem] fi);
369 pickup crisp.nib; pos6(arm_thickness,-90); pos7(fudged.hair,-180);
370 bot y6r=0; x6=x3; lft x7r=hround .8u; y7=good.y(y6l+.5beak)+eps;
371 (x,y)=p intersectionpoint((0,y6l)--(w,y6l)); x6l:=x;
372 arm(6,7,a,.5beak_darkness,-1.2beak_jut); % left arm and beak
373 pos8(arm_thickness,-90); pos9(fudged.hair,0);
374 y8=y6; y9=y7; x8+x6=x9+x7=w; x8l:=w-x6l;
375 arm(8,9,b,.5beak_darkness,1.2beak_jut); % right arm and beak
376 math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9); endchar;
377
378 ecchar"Musical note (one eigth note)"; % jk
379 beginchar("n",11u#,asc_height#,0);
380 pickup rule.nib;
381 x1=3/5w; x2=x1; top y1=h; bot y2=.5bar_height;
382 lft x3=u; x5= x2; x4=x6=.5[x3,x5];
383 y3=y5=vround(.5bar_height); y4=y6-bar_height=-oo;
384 x7=x1; rt x9=w-u; x8=.5[x7,x9];
385 y7=y1; bot y9=vround(.5bar_height); y8=.5[y7,y9];
386 draw z1--z2; % stem
387 filldraw z3{down}...z4{right}...z5{up}...z6{left}...cycle; % body
388 draw z7{down}...z8...{down}z9; % flag
389 endchar;
390
391 ecchar "Left semantic bracket"; % [[ from stmaryrd
392 beginchar(oct"133",7.25u#,body_height#,paren_depth#);
393 adjust_fit(0,0);
394 pickup crisp.nib; pos1(rule_thickness,0); pos2(rule_thickness,0);
395 top y1=h; bot y2=-d; lft x1l=lft x2l=hround(2.5u-.5rule_thickness)-1-eps;
396 filldraw stroke z1e--z2e; % left stem
397 pos7(rule_thickness,0); pos8(rule_thickness,0);
398 top y7=h; bot y8=-d; lft x7l=lft x8l=hround(4.75u-.5rule_thickness)-1-eps;
399 filldraw stroke z7e--z8e; % right stem
400 pos3(rule_thickness,90); pos4(rule_thickness,90);
401 pos5(rule_thickness,90); pos6(rule_thickness,90);
402 x3=x5=x1l; rt x4=rt x6=ceiling(w-.4u)+eps; y3r=y4r=y1; y5l=y6l=y2;
403 filldraw stroke z3e--z4e; % upper bar
404 filldraw stroke z5e--z6e; % lower bar
405 penlabels(1,2,3,4,5,6,7,8); endchar;
406
407
408 ecchar "Right semantic bracket"; % ]] from stmaryrd
409 beginchar(oct"135",7.25u#,body_height#,paren_depth#);
410 adjust_fit(0,0);
411 pickup crisp.nib; pos1(rule_thickness,0); pos2(rule_thickness,0);
412 top y1=h; bot y2=-d; rt x1r=rt x2r=hround(w-2.5u+.5rule_thickness)+1+eps;
413 filldraw stroke z1e--z2e; % left stem
414 pos7(rule_thickness,0); pos8(rule_thickness,0);
415 top y7=h; bot y8=-d; rt x7r=rt x8r=hround(w-4.75u+.5rule_thickness)+1+eps;
416 filldraw stroke z7e--z8e; % right stem
417 pos3(rule_thickness,90); pos4(rule_thickness,90);
418 pos5(rule_thickness,90); pos6(rule_thickness,90);
419 x3=x5=x1l; lft x4=lft x6=ceiling(.4u)-eps; y3r=y4r=y1; y5l=y6l=y2;
420 filldraw stroke z3e--z4e; % upper bar
421 filldraw stroke z5e--z6e; % lower bar
422 penlabels(1,2,3,4,5,6,7,8); endchar;
423
424 ecchar "Upward arrow"; % from sym
425 beginchar(oct"136",9u#,asc_height#,asc_depth#);
426 italcorr .76asc_height#*slant+.5crisp#-u#;
427 adjust_fit(0,0); pickup crisp.nib;
428 pos1(rule_thickness,0); pos2(rule_thickness,0);
429 pos3(rule_thickness,90); pos4(rule_thickness,90);
430 lft x1l=hround(.5w-.5rule_thickness); y1-.5rule_thickness=-d;
431 x0=x1=x2; top y0=h; x0-x3=x4-x0=if monospace:3u else:4u fi+eps;
432 y3=y4=y0-if monospace:.24 else:.36 fi asc_height-eps;
433 pos5(rule_thickness,angle(z4-z0)); z5l=z0;
434 pos6(rule_thickness,angle(z3-z0)); z6l=z0;
435 z9=.2[.5[z3,z4],z0];
436 %numeric t; path p; p=z4l{z9-z4}..z6r;
437 numeric t; path p; p=z4l{z9-z4}..z6l;
438 t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p;
439 filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
440 --z2r---z1r..z1l---z2l--subpath (t,0) of\\(z3l{z9-z3}..z5r)
441 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
442 penlabels(0,1,2,3,4,5,6,9); endchar;
443
444 ecchar "Downward arrow"; % from sym
445 beginchar(oct"137",9u#,asc_height#,asc_depth#);
446 adjust_fit(0,0); pickup crisp.nib;
447 pos1(rule_thickness,0); pos2(rule_thickness,0);
448 pos3(rule_thickness,90); pos4(rule_thickness,90);
449 lft x1l=hround(.5w-.5rule_thickness); y1+.5rule_thickness=h;
450 x0=x1=x2; bot y0=-d; x0-x3=x4-x0=if monospace:3u else:4u fi+eps;
451 y3=y4=y0+if monospace:.24 else:.36 fi asc_height+eps;
452 pos5(rule_thickness,angle(z4-z0)); z5l=z0;
453 pos6(rule_thickness,angle(z3-z0)); z6l=z0;
454 z9=.2[.5[z3,z4],z0];
455 numeric t; path p; p=z4r{z9-z4}..z6r;
456 %t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p;
457 t=xpart(p intersectiontimes((x2l,-d)--(x2l,h))); y2=ypart point t of p;
458 filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r)
459 --z2r---z1r..z1l---z2l--subpath (t,0) of\\(z3r{z9-z3}..z5r)
460 --z3l{z9-z3}..z0 & cycle; % arrowhead and stem
461 penlabels(0,1,2,3,4,5,6,9); endchar;
462
463 ecchar"Backwards tick mark"; % from accent (cmfonts, grave accent)
464 beginchar(oct"140",9u#,min(asc_height#,2x_height#),0);
465 adjust_fit(0,0);
466 if serifs: pickup crisp.nib; x1-.5stem=hround 2u; x2=2/3[x1,w-x1];
467 y1+.5stem=h+eps; y2=max(2/3[h,x_height],x_height+o+hair);
468 numeric theta; theta=angle(z2-z1)+90;
469 pos1(stem,theta); pos2(hair,theta);
470 filldraw circ_stroke z1e--z2e; % diagonal
471 else: pickup fine.nib; pos1(stem,0); pos2(vair,0);
472 lft x1l=hround 1.5u; rt x2r=hround(.5w+.25u+.5vair);
473 top y1=h; bot y2=vround 2/3[h,x_height];
474 filldraw stroke z1e--z2e; fi % diagonal
475 penlabels(1,2); endchar;
476
477 ecchar "Low lying tilde (squiggle)";
478 beginchar(oct"176",11u#,min(bar_height#,2/7x_height#),0);
479 italcorr h#*slant-u#;
480 adjust_fit(0,0);
481 if serifs: numeric theta;
482 theta=angle(1/8(7u if monospace: /expansion_factor fi-vair),1/4acc_height);
483 % theta=angle(1/6(6u-vair),1/4h);
484 pickup crisp.nib; numeric mid_width; mid_width=.4[vair,stem];
485 pos1(vair,theta+90); pos2(vair,theta+90);
486 pos3(vair,theta+90); pos4(vair,theta+90);
487 z2-z1=z4-z3=(mid_width-crisp)*dir theta;
488 lft x1r=w-rt x4l=hround 1.5u; top y4r=h;
489 bot y1l=0;
490 pair delta; ypart delta=3(y3l-y1l); delta=whatever*dir theta;
491 filldraw z1l..controls(z1l+delta)and(z3l-delta)..z3l..z4l
492 --z4r..controls(z4r-delta)and(z2r+delta)..z2r..z1r--cycle; % stroke
493 else: pickup fine.nib; pos1(vair,180); pos2(vair,90);
494 pos3(.5[vair,slab],90); pos4(vair,90); pos5(vair,180);
495 lft x1r=w-rt x5l=hround 1.5u; x2-x1=x3-x2=x4-x3=x5-x4;
496 bot y1=bot y4l=0;
497 top y2r=top y5=h; y3=.5[y2,y4];
498 filldraw stroke z1e{up}...z2e{right}..z3e..{right}z4e...{up}z5e; fi % stroke
499 penlabels(1,2,3,4,5); endchar;
500
501 iff not monospace:
502 ecchar "Double hyphen-hyphenchar"; % jk
503 compute_spread(.45x_height#,.55x_height#);
504 beginchar(oct"177",3u#,v_center(spread#+rule_thickness#));
505 italcorr h#*slant-.5u#;
506 adjust_fit(0,0);
507 numeric thickness; thickness=if hefty:bar else:.75[hair,stem] fi;
508 pickup crisp.nib; pos1(thickness,90); pos2(thickness,90);
509 pos3(thickness,90); pos4(thickness,90);
510 y1=y2; y3=y4;
511 top y1=vround .5h+.5thickness+.5spread;
512 top y3=vround .5h+.5thickness-.5spread;
513 rt x2=hround(2w-u)+eps;
514 lft x1=hround .2u-eps;
515 x3=x1; x4=x2;
516 filldraw stroke z1e--z2e; % upper bar
517 filldraw stroke z3e--z4e; % lower bar
518 penlabels(1,2,3,4); endchar;
519
520 iff monospace:
521 ecchar "Double hyphen-hyphenchar"; % jk
522 compute_spread(.45x_height#,.55x_height#);
523 beginchar(oct"177",6u#,v_center(spread#+rule_thickness#));
524 italcorr h#*slant-.5u#;
525 adjust_fit(0,0);
526 numeric thickness; thickness=if hefty:bar else:.75[hair,stem] fi;
527 pickup crisp.nib; pos1(thickness,90); pos2(thickness,90);
528 pos3(thickness,90); pos4(thickness,90);
529 y1=y2; y3=y4; y1-y3=spread; .5[y1,y3]=math_axis;
530 rt x2=hround(w-u)+eps;
531 if monospace: x2=w-x1 else: lft x1=hround .2u-eps fi;
532 x3=x1; x4=x2;
533 filldraw stroke z1e--z2e; % upper bar
534 filldraw stroke z3e--z4e; % lower bar
535 penlabels(1,2,3,4); endchar;
536
537 ecchar"Breve";
538 beginchar(oct"200",11u#,min(asc_height#,2x_height#),0);
539 italcorr h#*slant+.5vair#-1.5u#;
540 adjust_fit(0,0);
541 pickup crisp.nib; pos1(vair,-180); pos3(vair,0);
542 top y1=top y3=h; lft x1r=w-rt x3r=hround(2u-.5vair);
543 numeric mid_thickness; mid_thickness=vround 1/3[vair,stem];
544 pos2(mid_thickness,-90); x2=.5w;
545 bot y2r=vround max(x_height+o+tiny,1/3[x_height,h]+o-.5mid_thickness);
546 filldraw stroke z1e{down}...z2e{right}...{up}z3e; % stroke
547 penlabels(1,2,3); endchar;
548
549 ecchar "Hachek (Caron)";
550 beginchar(oct"201",11u#,min(asc_height#,2x_height#),0);
551 h':=vround min(asc_height,2x_height); % height of circumflex being inverted
552 if serifs: italcorr h#*slant+.5hair#-1.75u#;
553 adjust_fit(0,0);
554 pickup crisp.nib; pos2'(.5[vair,curve],90); top y2'r=h;
555 pos2(.5[vair,curve],90); x2=.5w;
556 x1=w-x3=good.x 2.25u; top y1=top y3=h; y1-y2=.5(y2'-x_height);
557 pos1(hair,angle(z2-z1)+90); pos3(hair,angle(z3-z2)+90);
558 filldraw stroke z1e--z2e--z3e; % diagonals
559 else: italcorr h#*slant-.5stem#+.5vair#-.75u#;
560 adjust_fit(0,0);
561 pickup fine.nib; pos1(vair,0); pos3(vair,0); x1=w-x3;
562 pos2(stem,0); bot y2=vround(1/12[x_height,h']+o); x2=.5w;
563 top y1=top y3=h+o; lft x1l=hround(rt x2r-3.25u-.5vair);
564 z0=whatever[z1r,z2r]=whatever[z2l,z3l];
565 y4l=y4r=y2; x4l=good.x .2[x2l,x2]; x4r=w-x4l;
566 filldraw z4l--z1l--z1r--z0--z3l--z3r--z4r--cycle; fi % diagonals
567 penlabels(0,1,2,3,4); endchar;
568
569 ecchar"Double tick mark (inch sign)"; % from accent (hungarian long umlaut)
570 beginchar(oct"202",9u#,min(asc_height#,2x_height#),0);
571 italcorr h#*slant-u#;
572 adjust_fit(0,0);
573 x3-x1=x4-x2=hround 3u; y3=y1; y4=y2;
574 if serifs: pickup crisp.nib; x3+.5stem=hround(w-1.5u); x2=2.5u;
575 y1+.5stem=h; y2=max(2/3[h,x_height],x_height+o+hair);
576 numeric theta; theta=angle(z2-z1)+90;
577 pos1(stem,theta); pos2(hair,theta);
578 pos3(stem,theta); pos4(hair,theta);
579 filldraw circ_stroke z1e--z2e; % left diagonal
580 filldraw circ_stroke z3e--z4e; % right diagonal
581 else: pickup fine.nib; pos1(stem,0); pos2(vair,0);
582 pos3(stem,0); pos4(vair,0);
583 rt x3r=hround(w-1.5u); lft x4l=hround(.5w+u-.5vair);
584 top y1=h; bot y2=vround 2/3[h,x_height];
585 filldraw stroke z1e--z2e; % left diagonal
586 filldraw stroke z3e--z4e; fi % right diagonal
587 penlabels(1,2,3,4); endchar;
588
589 ecchar"Double backwards tick mark"; % jk
590 beginchar(oct"203",9u#,min(asc_height#,2x_height#),0);
591 adjust_fit(0,0);
592 x3-x1=x4-x2=hround 3u; y3=y1; y4=y2;
593 if serifs: pickup crisp.nib; x1-.5stem=hround 1.5u; x2=3.5u;
594 y1+.5stem=h; y2=max(2/3[h,x_height],x_height+o+hair);
595 numeric theta; theta=angle(z2-z1)+90;
596 pos1(stem,theta); pos2(hair,theta);
597 pos3(stem,theta); pos4(hair,theta);
598 filldraw circ_stroke z1e--z2e; % left diagonal
599 filldraw circ_stroke z3e--z4e; % right diagonal
600 else: pickup fine.nib; pos1(stem,0); pos2(vair,0);
601 pos3(stem,0); pos4(vair,0);
602 lft x1l=hround 1.5u; rt x2r=hround(.5w-u+.5vair);
603 top y1=h; bot y2=vround 2/3[h,x_height];
604 filldraw stroke z1e--z2e; % left diagonal
605 filldraw stroke z3e--z4e; fi % right diagonal
606 penlabels(1,2,3,4); endchar;
607
608
609 ecchar "Dagger mark"; % from mathsy
610 beginchar(oct"204",8u#,asc_height#,desc_depth#);
611 adjust_fit(0,0); pickup fine.nib;
612 pos1(stem,0); pos2(thin_join,0); pos3(stem,0); pos4(hair,0);
613 pos5(stem,90); pos2'(thin_join,90); pos6(stem,90); z2'=z2;
614 x1=x2=x3=x4; x1-.5stem=hround(.5w-.5stem); center_on(x1);
615 x5-.5stem=hround u; x6=w-x5;
616 y1+.5stem=h+oo; y2=y5=y6; y3=.57y2; bot y4=-d-o;
617 y5+.5stem=floor(x_height+.5stem);
618 filldraw circ_stroke z1e{down}..z2e{down}..z3e{down}..z4e; % stem
619 filldraw circ_stroke z5e{right}..{right}z2'e; % left bulb
620 filldraw circ_stroke z6e{left}..{left}z2'e; % right bulb
621 penlabels(1,2,3,4,5,6); endchar;
622
623 ecchar "Double dagger mark"; % from mathsy
624 beginchar(oct"205",8u#,asc_height#,desc_depth#);
625 adjust_fit(0,0); pickup fine.nib;
626 pos1(stem,0); pos2(thin_join,0); pos3(stem,0);
627 pos4(stem,90); pos2'(thin_join,90); pos5(stem,90); z2'=z2;
628 x1=x2=x3; x1-.5stem=hround(.5w-.5stem); center_on(x1);
629 x4-.5stem=hround u; x5=w-x4;
630 y1+.5stem=h+oo; y2=y4=y5=.5[y1,y3]; y3-.5stem=ceiling(.5[-d,h]);
631 filldraw circ_stroke z1e{down}..{down}z2e; % top stem
632 filldraw circ_stroke z3e{up}..{up}z2e; % upper middle stem
633 filldraw circ_stroke z4e{right}..{right}z2'e; % top left bulb
634 filldraw circ_stroke z5e{left}..{left}z2'e; % top right bulb
635 pos6(stem,0); pos7(thin_join,0); pos8(stem,0);
636 pos9(stem,90); pos7'(thin_join,90); pos0(stem,90); z7'=z7;
637 x6=x7=x8=x1; x9=x4; x0=x5;
638 y6=y3-stem-1; y7=y9=y0=.5[y6,y8]; y8-.5stem=-d-oo;
639 filldraw circ_stroke z6e{down}..{down}z7e; % lower middle stem
640 filldraw circ_stroke z8e{up}..{up}z7e; % bottom stem
641 filldraw circ_stroke z9e{right}..{right}z7'e; % bottom left bulb
642 filldraw circ_stroke z0e{left}..{left}z7'e; % bottom right bulb
643 penlabels(1,2,3,4,5,6,7,8,9,0); endchar;
644
645 ecchar "Double vertical line (norm or cardinality)"; % from mathsy
646 % Change (jk): Made the two lines as close as in \P
647 beginchar(oct"206",9u#,body_height#,paren_depth#);
648 adjust_fit(0,0); pickup rule.nib;
649 x1=x2; top y1=h; .5[y1,y2]=math_axis;
650 x3=x4=w-x1; y3=y1; y4=y2;
651 x3-x1=ceiling(rule_thickness+1.25u);
652 draw z1--z2; draw z3--z4; % stems
653 labels(1,2,3,4); endchar;
654
655 ecchar "Per mill sign"; % by Emma Pease
656 beginchar(oct"207",15u#+max(6u#,2fudge*(hair#+stem#)),
657 body_height#,body_height#-asc_height#);
658 italcorr if hefty: .4asc_height#*slant-.5u# else: h#*slant-u# fi;
659 adjust_fit(0,0); pickup fine.nib;
660 numeric left_curve,right_curve;
661 left_curve=hround 5/6[fudged.hair,fudged.stem];
662 right_curve=max(fine.breadth,hround(fudged.hair if hefty:-2stem_corr fi));
663 pos1(vair,90); pos2(left_curve,180); pos3(vair,270); pos4(right_curve,360);
664 top y1r=h; lft x2r=hround u; rt x4r=hround(.5(w-6u)-1.5u);
665 bot y3r=floor(if monospace: .7 else: .5 fi\\ asc_height);
666 x1=x3=.5[x2,x4]; y2=y4=.5[y1,y3];
667 filldraw stroke pulled_super_arc.e(1,2)(superpull)
668 & pulled_super_arc.e(2,3)(superpull); % left half of upper bowl
669 filldraw stroke super_arc.e(3,4) & super_arc.e(4,1); % right half of upper bowl
670 %
671 pos5(vair,90); pos6(left_curve,180); pos7(vair,270); pos8(right_curve,360);
672 bot y7r=-d; rt x8r=hround(w-7u); lft x6r=hround(.5(w-6u)+1.5u);
673 top y5r=vround(if monospace: .3 else: .5 fi\\ asc_height);
674 x5=x7=.5[x6,x8]; y6=y8=.5[y5,y7];
675 filldraw stroke pulled_super_arc.e(5,6)(superpull)
676 & pulled_super_arc.e(6,7)(superpull); % left half of lower bowl
677 filldraw stroke super_arc.e(7,8) & super_arc.e(8,5); % right half of lower bowl
678 %
679 pos13(vair,90); pos14(left_curve,180); pos15(vair,270);
680 pos16(right_curve,360);
681 bot y15r=-d; rt x16r=hround(w-u); lft x14r=hround(.5(w-6u)+1.5u+6u);
682 top y13r=vround(if monospace: .3 else: .5 fi\\ asc_height);
683 x13=x15=.5[x14,x16]; y14=y16=.5[y13,y15];
684 filldraw stroke pulled_super_arc.e(13,14)(superpull)
685 & pulled_super_arc.e(14,15)(superpull); % left half of lower bowl
686 filldraw stroke super_arc.e(15,16) & super_arc.e(16,13); % right half of lower bowl
687 %
688 pickup rule.nib; top y9=h; bot y10=-d;
689 if hefty: x9=good.x(x5-eps); x10=good.x(x1+eps);
690 draw z9--z10; % diagonal
691 else: rt x9=hround(w-6u-2.5u); lft x10=hround 2.5u; draw z9--z10; % diagonal
692 pickup fine.nib; pos9(rule_thickness,angle(z9-z10)+90);
693 pos11(vair,angle(z1r-z4r)-90); pos12(vair,angle(z9-z10)+90);
694 path p; p=super_arc.r(1,4); z11r=point 2/3 of p; z12r=z9r;
695 filldraw stroke z11e{direction 2/3 of p}...{z9-z10}z12e; fi % link
696 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16); endchar;
697
698 ecchar "Bullet"; % from mathsy
699 beginchar(oct"210",9u#,v_center(7u#));
700 adjust_fit(0,0); pickup rule.nib; autorounded;
701 if .5w <> good.x .5w: change_width; fi
702 lft x6=hround u; x2=w-x6; top y8=h; y2=math_axis; circle_points;
703 filldraw z8{right}...z1{z2-z8}...z2{down}...z3{z4-z2}...z4{left}
704 ...z5{z6-z4}...z6{up}...z7{z8-z6}...cycle; % circle and interior
705 labels(1,2,3,4,5,6,7,8); endchar;
706
707 ecchar"Centigrade sign";
708 if serifs: beginchar(oct"211",13u#,cap_height#,0);
709 italcorr cap_height#*slant-.5u#;
710 adjust_fit(4u#,0);
711 pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90);
712 pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360);
713 rt x1r=rt x5r=hround(w-u); lft x3r=hround u; x2=x4=.55[x3,x1];
714 top y2r=h+o; bot y4r=-o; y3=.5[y2,y4];
715 bot y1=min(vround max(.6h,x_height-.5vair),bot y2l-eps);
716 y5=max(good.y .95(h-y1),y4l+eps);
717 (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u);
718 (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u);
719 filldraw stroke z1e{x2-x1,10(y2-y1)}
720 ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc
721 pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=h+o;
722 x1r-x1'=2cap_curve-fine; y1'=y1;
723 path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left};
724 numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1'));
725 filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb
726 else: beginchar(oct"211",11.5u#,cap_height#,0);
727 italcorr cap_height#*slant-.5u#;
728 adjust_fit(4u#,0);
729 pickup fine.nib; pos1(1.2flare,80); pos2(slab,90);
730 pos3(cap_curve,180); pos4(slab,270); pos5(flare,275);
731 rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u;
732 lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u);
733 top y1r=vround .95h+o; top y2r=h+o; y3=.5h;
734 bot y4r=-o; bot y5r=vround .08h-o; y5l:=good.y y5l; x5l:=good.x x5l;
735 filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3)
736 & super_arc.e(3,4) & term.e(4,5,right,.8,4); fi % arc and terminals
737 penlabels(1,1',2,3,4,5,6);
738 clearxy;
739 pickup rule.nib; autorounded;
740 lft x6=-4u; rt x2=0; top y8=h; y8-y2=x2-x8;
741 circle_points; draw_circle; % circle
742 labels(1,2,3,4,5,6,7,8);
743 math_fit(-.3cap_height#*slant-.5u#,.5ic#);
744 endchar;
745
746 ecchar "Oldstyle dollar sign"; % based on romanp (cm)
747 beginchar(oct"212",11u#,body_height#,body_height#-asc_height#);
748 italcorr fig_height#*slant-.5u#; % same as for digits
749 adjust_fit(0,0);
750 numeric theta; theta=90-angle(50u,asc_height); slope:=-asc_height/50u;
751 pickup fine.nib; pos2(slab,-90);
752 pos0(cap_stem,theta); pos7(slab,-90);
753 x2=x0=x7=.5w; top y2l=asc_height+oo; bot y7r=-oo;
754 y0=.52asc_height; lft x3l=hround u; rt x6r=hround(w-u);
755 x3r-x3l=x6r-x6l=hround .35[slab,cap_stem]-fine;
756 ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r;
757 ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r;
758 filldraw stroke super_arc.e(2,3) & z3e{down}
759 ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke
760 if serifs: pos1(hair,0); pos8(hair,180);
761 pos10(flare,0); pos9(flare,180);
762 rt x1r=hround(w-u); lft x8r=hround u; y1=.5[y0,y2]; y8=.5[y0,y7];
763 {{less_tense; pos2'(slab,90); z2'=z2; bulb(2',1,10); % upper arc and bulb
764 bulb(7,8,9)}}; % lower arc and bulb
765 else: pos1(.6[slab,flare],-100); pos8(flare,-100);
766 rt x1l=hround(w-1.3u); lft x8r=hround .8u;
767 top y1l=vround .92asc_height+oo; bot y8r=vround .1asc_height-oo;
768 filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal
769 filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal
770 pickup crisp.nib; pos12(bar,0); pos11(bar,0); pos13(bar,0); pos14(bar,0);
771 x11=x12; x13=x14=w-x11; x13-x11=ceiling(rule_thickness+1.25u);
772 top y12=top y14=h; bot y11=bot y13=-d;
773 filldraw stroke z12e--z11e; % left vertical crossbar
774 filldraw stroke z14e--z13e; %right vertical crossbar
775 penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14); endchar;
776
777 ecchar "Oldstyle cent sign"; % jk, based on cm `c'
778 beginchar(oct"213",9u#,x_height#+.5desc_depth#,.5desc_depth#);
779 italcorr x_height#*slant-.2u#;
780 adjust_fit(0,0);
781 pickup fine.nib; pos2(vair',90); pos4(vair',270);
782 x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo;
783 pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height;
784 if serifs: pos1(hair,0); pos0(flare,0);
785 y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,x_height]-.5flare);
786 rt x1r=hround(w-.7u); bulb(2,1,0); % bulb
787 pos5(hair,0); rt x5r=hround(w-.5u);
788 y5=max(good.y(.5bar_height-.9),y4l+vair');
789 (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u);
790 filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
791 & pulled_super_arc.e(3,4)(.5superpull)
792 ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal
793 else: pos1(4/7[vair',flare],80);
794 rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r];
795 filldraw stroke term.e(2,1,right,.8,4); % upper terminal
796 pos5(.6[vair',flare],275); rt x5r=hround(w-.5u);
797 y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
798 forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e;
799 if angle direction 1 of p.e>75:
800 p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor
801 filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
802 & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal
803 pickup crisp.nib;
804 x7=x3; x6=w-x7; y6=h; y7=-d;
805 numeric theta; theta=angle(z7-z6)-90;
806 pos6(vair,theta); pos7(vair,theta);
807 filldraw stroke z6e--z7e; % diagonal
808 penlabels(0,1,2,3,4,5,6,7); endchar;
809
810 iff variant_g: % I use this as marker for italic fonts
811 ecchar "Italic florin sign (italic letter f)"; % from itall (cm)
812 beginchar(oct"214",max(1.5u#,stem#)+max(3.5u#,2flare#),
813 asc_height#,desc_depth#);
814 italcorr asc_height#*slant+.75u#;
815 adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib;
816 numeric theta; z88=(.5w-.5u,h); z89=(.5w+.5u,-d); theta=angle(z88-z89);
817 pos0(flare,0); pos1(hair,0); pos2(vair,90);
818 pos3(.5[hair,stem],180); pos4(stem,theta+90);
819 pos5(stem,theta-90); pos6(.5[hair,stem],0);
820 pos7(vair,-90); pos8(hair,-180); pos9(flare,-180);
821 rt x1r=hround(w+.25u); lft x8r=hround-.35u; x2=.6[x1,x4]; x7=.6[x8,x5];
822 y9-.5flare=vround -.85d; y2-y0=y9-y7; top y2r=h+oo; bot y7r=-d-oo;
823 y4=.25[x_height,h]; y5=.5[-d,y4];
824 z4=whatever[z88,z89]; z5=whatever[z88,z89];
825 x3=.8[x2+x4-x88,x88]; x6=.8[x7+x5-x89,x89]; y3=.8[y4,y2]; y6=.8[y5,y7];
826 bulb(2,1,0); bulb(7,8,9); % bulbs
827 filldraw stroke z2e{left}...z3e...{z89-z88}z4e; % upper arc
828 filldraw z4r--z5l--z5r--z4l--cycle; % stem
829 filldraw stroke z5e{z89-z88}...z6e...{left}z7e; % lower arc
830 pickup crisp.nib; pos20(bar,90); pos21(bar,90);
831 top y20r=top y21r=x_height;
832 lft x20=lft x4r-.5stem-u; rt x21=rt x4l+.5stem+1.5u;
833 filldraw stroke z20e--z21e; % crossbar
834 math_fit(desc_depth#*slant+u#,x_height#*slant);
835 penlabels(0,1,2,3,4,5,6,7,8,9,20,21,88,89); endchar;
836
837
838 iff not variant_g:
839 ecchar "Florin sign (The letter f)"; % from romanl (cm)
840 beginchar(oct"214",5.5u#,asc_height#,0);
841 italcorr asc_height#*slant+if serifs:flare#-.25u# else: 1.25u# fi;
842 adjust_fit(stem_shift#,if monospace: .5u# else:-stem_shift# fi);
843 pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem');
844 pickup fine.nib; numeric bulb_diam;
845 if serifs: bulb_diam=hround .8[stem,flare];
846 pos2(bulb_diam,0); y2+.5bulb_diam=.9[x_height,h+oo];
847 if monospace: rt x2r=hround(w-.5u)+1 else: lft x2l=hround(w-.75u+.5) fi;
848 else: pos2(5/7[vair,flare],90); top y2r=h;
849 rt x2=hround(if monospace:w-.5u else:w+.75u fi); fi
850 f_stroke(1,2,a,b,c,jut,if not monospace:1.25fi\\ jut); % stem, terminal, serif
851 pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1;
852 pos3(bar,90); pos4(bar,90);
853 rt x4=hround(w-if monospace:.75u+1 else:1/3u fi);
854 filldraw stroke z3e--z4e; % bar
855 penlabels(1,2,3,4); endchar;
856
857 ecchar"Colon sign or Cedi sign"; % Panamese or Ghanese currency
858 if serifs: beginchar(oct"215",13u#,body_height#,body_height#-asc_height#);
859 italcorr cap_height#*slant-.5u#;
860 adjust_fit(0,0);
861 pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90);
862 pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360);
863 rt x1r=rt x5r=hround(w-u); lft x3r=hround u; x2=x4=.55[x3,x1];
864 numeric hh; hh=cap_height;
865 top y2r=hh+o; bot y4r=-o; y3=.5[y2,y4];
866 bot y1=min(vround max(.6hh,x_height-.5vair),bot y2l-eps);
867 y5=max(good.y .95(hh-y1),y4l+eps);
868 (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u);
869 (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u);
870 filldraw stroke z1e{x2-x1,10(y2-y1)}
871 ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc
872 pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=hh+o;
873 x1r-x1'=2cap_curve-fine; y1'=y1;
874 path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left};
875 numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1'));
876 filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb
877 pickup crisp.nib; pos12(bar,0); pos11(bar,0);
878 lft x12l=lft x11l=hround(x2-.5bar); top y12=h; bot y11=-d;
879 filldraw stroke z12e--z11e; % vertical crossbar
880 else: beginchar(oct"215",11.5u#,body_height#,body_height#-asc_height#);
881 italcorr cap_height#*slant-.5u#;
882 adjust_fit(0,0);
883 pickup fine.nib; pos1(1.2flare,80); pos2(slab,90);
884 pos3(cap_curve,180); pos4(slab,270); pos5(flare,275);
885 rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u;
886 lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u);
887 numeric hh; hh=cap_height;
888 top y1r=vround .95hh+o; top y2r=hh+o; y3=.5hh;
889 bot y4r=-o; bot y5r=vround .08hh-o; y5l:=good.y y5l; x5l:=good.x x5l;
890 filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3)
891 & super_arc.e(3,4) & term.e(4,5,right,.8,4); % arc and terminals
892 pickup crisp.nib; pos12(bar,0); pos11(bar,0);
893 lft x12l=lft x11l=hround(x2-.5bar); top y12=h; bot y11=-d;
894 filldraw stroke z12e--z11e; % vertical crossbar
895 fi
896 math_fit(-.3cap_height#*slant-.5u#,.5ic#);
897 penlabels(1,1',2,3,4,5,6,11,12); endchar;
898
899 ecchar"Won sign"; % Korean currency
900 beginchar(oct"216",18u#,cap_height#,0);
901 italcorr cap_height#*slant+.25u#;
902 adjust_fit(cap_serif_fit#,cap_serif_fit#);
903 numeric stem[],outer_jut,upper_notch,alpha,mid_corr;
904 outer_jut=.7cap_jut; x1l=w-x8r=l+letter_fit+outer_jut+.25u;
905 stem1=fudged.cap_stem-stem_corr;
906 stem4=min(fudged.hair if hefty:-2stem_corr fi,stem1);
907 stem2=stem4 if hefty:-2stem_corr fi;
908 stem3=stem1 if hefty:-2stem_corr fi;
909 x2-x1=x4-x3=x6-x5=x8-x7; x2l+apex_corr=x3l; x6l+apex_corr=x7l;
910 y1=y8=h; y2=y3=y6=y7=-apex_o; y4=y5=if monospace: vround .6 fi\\ h;
911 mid_corr=if monospace or hefty:-apex_corr else: 1/3jut fi;
912 alpha=diag_ratio(4,stem2-stem3+stem4,y1-y2,x8r-x1l+mid_corr-2apex_corr);
913 penpos1(alpha*stem1,0); penpos2(alpha*stem1,0);
914 penpos3(alpha*stem2,0); penpos4(alpha*stem2,0);
915 penpos5(alpha*stem3,0); penpos6(alpha*stem3,0);
916 penpos7(alpha*stem4,0); penpos8(alpha*stem4,0);
917 x4l-x1l=floor(x4l-x1l+.5(x5r+mid_corr-x4r)); % |x5r+mid_corr| $\approx$ |x4r|
918 z23=whatever[z1r,z2r]=whatever[z3l,z4l];
919 z45=whatever[z3r,z4r]=whatever[z5l,z6l];
920 z67=whatever[z5r,z6r]=whatever[z7l,z8l]; upper_notch=y4-cap_notch_cut;
921 fill diag_end(1l,2l,1,1,3r,4r){z4-z3}
922 ...if y45<upper_notch:(x45,upper_notch)+.5left{up}
923 --(x45,upper_notch)+.5right{down} else: z45&z45 fi
924 ...{z6-z5}diag_end(5l,6l,1,1,7r,8r)--diag_end(7r,8r,1,1,8l,7l){z7-z8}
925 ...if y67>cap_notch_cut:(x67,cap_notch_cut)+.5right{down}
926 --(x67,cap_notch_cut)+.5left{up} else: z67&z67 fi
927 ...{z5-z6}special_diag_end(6,5,4,3){z3-z4}
928 ...if y23>cap_notch_cut:(x23,cap_notch_cut)+.5right{down}
929 --(x23,cap_notch_cut)+.5left{up} else: z23&z23 fi
930 ...{z1-z2}diag_end(2r,1r,1,1,1l,2l)--cycle; % diagonals
931 if serifs: numeric inner_jut[]; pickup tiny.nib;
932 prime_points_inside(1,2); prime_points_inside(5,6);
933 prime_points_inside(8,7);
934 if monospace: inner_jut1=inner_jut4=1.5cap_jut;
935 elseif hefty: inner_jut1=inner_jut4=cap_jut;
936 else: fill diag_end(6r,5r,1,1,5l,6l)
937 --.5[z5l,z6l]--.5[z5r,z6r]--cycle; % middle stem
938 inner_jut2=.7inner_jut1; inner_jut4=1.1inner_jut3;
939 if rt x1'r+cap_jut+.5u+1<=lft x5'l-.7cap_jut: inner_jut1=cap_jut;
940 else: rt x1'r+inner_jut1+.5u+1=lft x5'l-inner_jut2; fi
941 if rt x5'r+cap_jut+.5u+1<=lft x8'l-1.1cap_jut: inner_jut3=cap_jut;
942 else: rt x5'r+inner_jut3+.5u+1=lft x8'l-inner_jut4; fi
943 dish_serif(5',6,e,1/3,inner_jut2,f,1/2,inner_jut3); fi % middle serif
944 dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut1); % left serif
945 dish_serif(8',7,c,.6,inner_jut4,d,1/2,outer_jut)(dark); fi % right serif
946 pickup extra_rule.nib;
947 x9=x11=x1l; x10=x12=x8r; y9=y10;
948 top y9=bar_height; y11=y12; draw z9--z10;
949 y11-y9=spread; draw z11--z12; % crossing bars
950 math_fit(.75u#-cap_height#*slant,ic#-2.5u#);
951 penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,23,45,67); endchar;
952
953 ecchar"Naira sign"; % Nigerian currency
954 beginchar(oct"217",13u#+width_adj#,cap_height#,0);
955 italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+
956 min(.5cap_stem#,u#);
957 adjust_fit(cap_serif_fit#+.25u#,cap_serif_fit#+.25u#);
958 numeric thin_stem; thin_stem=hround(fudged.hair+stem_corr);
959 pickup tiny.nib; pos1(thin_stem,0); pos2(thin_stem,0);
960 pos3(thin_stem,0); pos4(thin_stem,0);
961 pickup tiny.nib; top y1=top y3=h; bot y2=bot y4=0;
962 x1=x2; x3=x4; x1l=w-x3r;
963 rt x3r=hround min(w-2u,w-3u+.5fudged.cap_stem);
964 filldraw stroke z1e--z2e; % left stem
965 filldraw stroke z3e--z4e; % right stem
966 if hefty: penpos5(fudged.cap_stem,0); penpos6(fudged.cap_stem,0);
967 x5l=x1; x6r=x4; y5=h; y6=0;
968 numeric upper_notch,lower_notch;
969 upper_notch=h-cap_notch_cut; lower_notch=cap_notch_cut;
970 x1'=rt x1r; z1'=whatever[z5l,z6l]; x4'=lft x4l; z4'=whatever[z5r,z6r];
971 fill z5l..
972 if y1'<upper_notch: {right}(x1'+1,upper_notch){down}... fi
973 {z6-z5}diag_in(5l,6l,1,6r)--z6r..
974 if y4'>lower_notch: {left}(x4'-1,lower_notch){up}... fi
975 {z5-z6}diag_in(6r,5r,1,5l)--cycle; % diagonal
976 else: penpos5(whatever,0); penpos6(whatever,90);
977 z5l=z1l; z6l=z4l;
978 z7=z6l+(max(eps,cap_stem-3stem_corr-tiny),0) rotated (angle(z5l-z6l)-90);
979 z5r=z7+whatever*(z5l-z6l); z6r=z7+whatever*(z5l-z6l);
980 filldraw stroke z5e..z6e; fi % diagonal
981 if serifs: if hefty: serif(1,2,a,1/3,-cap_jut); % upper left serif
982 else: serif(5,6,a,1/3,-cap_jut); fi % upper left serif
983 dish_serif(2,1,b,1/2,cap_jut,c,1/2,cap_jut)(dark); % lower left serif
984 dish_serif(3,4,e,1/2,cap_jut,f,1/2,cap_jut)(dark); fi % upper right serif
985 pickup extra_rule.nib;
986 x8=x10=0; x9=x11=w; y10=y11;
987 top y8=bar_height; y8=y9; draw z8--z9;
988 y10-y8=spread; draw z10--z11; % crossing bars
989 math_fit(0,max(.5ic#-.5u#,0));
990 penlabels(1,1',2,3,4,4',5,6,7,8,9,10,11); endchar;
991
992 ecchar"Guarani sign"; % Currency of Paraguay
993 if serifs: beginchar(oct"220",14u#,body_height#,body_height#-asc_height#);
994 italcorr cap_height#*slant-1.5u#-.5cap_serif_fit#;
995 adjust_fit(0,.5cap_serif_fit#);
996 numeric hh; hh=cap_height;
997 pickup tiny.nib; pos0(cap_stem,0); pos7(cap_stem,0);
998 rt x0r=hround(w-2u); y0=good.y(.1[bar_height,x_height]+1); x7=x0;
999 pickup fine.nib;
1000 if hefty: bot y7=0; pos5(cap_stem,0); x5=x0; top y5=tiny.top y0;
1001 else: pos5(cap_hair,0); pos8(cap_stem,0);
1002 y7=.5bar_height; z5l=z8l; z8=z7; x9=x8r; bot y9=0;
1003 filldraw z8l{down}..{4(x9-x8),y9-y8}z9--z8r--cycle; fi % spur
1004 pos1(cap_hair,0); pos2(cap_band,90);
1005 pos3(cap_curve,180); pos4(cap_band,270);
1006 rt x1r=hround(w-2u); lft x3r=hround u; x2=x4=.55[x3,x1];
1007 top y2r=hh+o; bot y4r=-o; y3=.5[y2,y4];
1008 bot y1=min(vround max(.6hh,x_height-.5vair),bot y2l-eps);
1009 (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u);
1010 (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u);
1011 filldraw stroke z1e{x2-x1,10(y2-y1)}
1012 ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...z5e{up}; % arc
1013 pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=hh+o;
1014 x1r-x1'=2cap_curve-fine; y1'=y1;
1015 path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left};
1016 numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1'));
1017 filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb
1018 pickup tiny.nib; filldraw stroke z0e--z7e; % stem
1019 dish_serif(0,7,a,1/3,max(cap_jut,2.25u),b,1/3,1.25u); % serif
1020 pickup crisp.nib; pos12(bar,0); pos11(bar,0);
1021 lft x12l=lft x11l=hround(x2-.5bar); top y12=h; bot y11=-d;
1022 filldraw stroke z12e--z11e; % vertical crossbar
1023 math_fit(-.3cap_height#*slant-.5u#,ic#);
1024 else: beginchar(oct"220",14u#,body_height#,body_height#-asc_height#);
1025 italcorr cap_height#*slant-.5u#;
1026 adjust_fit(0,0);
1027 numeric hh; hh=cap_height;
1028 pickup fine.nib; pos1(1.2flare,80); pos2(slab,90);
1029 pos3(cap_curve,180); pos4(slab,270); pos5(flare,270);
1030 rt x1r=hround(w-1.35u); x2=x4=.5w+u;
1031 lft x3r=hround max(u,2u-.5cap_curve); rt x5l=hround(w-1.2u);
1032 top y1r=vround .93hh+o; top y2r=hh+o; y3=.5hh;
1033 bot y4r=-o; bot y5r=vround .07hh-o;
1034 filldraw stroke rterm.e(2,1,right,.9,4)&super_arc.e(2,3)
1035 & super_arc.e(3,4) & term.e(4,5,right,1,4); % arc and terminals
1036 pos0(stem,0); pos7(stem,0);
1037 z7r=z5r; x0=x7; top y0=1+vround .35[bar_height,x_height];
1038 filldraw stroke z0e--z7e; % stem
1039 pos8(cap_bar,90); pos9(cap_bar,90);
1040 z0r=z9r; y8=y9; lft x8=hround x4;
1041 filldraw stroke z8e--z9e; % bar
1042 pickup crisp.nib; pos12(bar,0); pos11(bar,0);
1043 lft x12l=lft x11l=hround(x2-.5bar); top y12=h; bot y11=-d;
1044 filldraw stroke z12e--z11e; % vertical crossbar
1045 math_fit(-.3cap_height#*slant-.5u#,.5ic#); fi
1046 penlabels(0,1,1',2,3,4,5,6,7,8,9,11,12); endchar;
1047
1048 ecchar"Peso sign";
1049 beginchar(oct"221",12u#,cap_height#,0);
1050 italcorr .75cap_height#*slant-.5u#;
1051 adjust_fit(cap_serif_fit#+.25u#,0);
1052 pickup tiny.nib; penpos1(cap_stem'-tiny,0); penpos2(cap_stem-tiny,0);
1053 pos0(cap_stem',0); pos0'(cap_stem,0);
1054 lft x1l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0;
1055 x1l=x2l=x0l=x0'l; y0=y0'=y7;
1056 penpos3(cap_band,90); penpos4(cap_band,90);
1057 penpos5(cap_curve if hefty:-3stem_corr fi,0);
1058 penpos6(.5[vair,cap_band],-90); penpos7(.5[vair,cap_band],-90);
1059 z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7;
1060 x7=x2; y7l=vround .5h; x4=x6=.5w+.75u; x5r=hround(w-u);
1061 x4l:=x6l:=x4-.25cap_curve;
1062 filldraw stroke z1e--z0e--z0'e--z2e; % stem
1063 fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe
1064 if serifs: nodish_serif(1,0,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif
1065 dish_serif(2,0',c,1/3,cap_jut,d,1/3,cap_jut); fi % lower serif
1066 pickup extra_rule.nib;
1067 x8=0; x9=.5[x1r,x5r]; top y8=bar_height; y8=y9; draw z8--z9;
1068 math_fit(0,ic#-2.5u#); penlabels(0,1,2,3,4,5,6,7); labels(8,9);
1069 endchar;
1070
1071 ecchar "Lira sign"; %
1072 compute_spread(.35x_height#,.45x_height#);
1073 beginchar(oct"222",12u#,asc_height#,0);
1074 adjust_fit(0,.75asc_height#*slant-.5u#); pickup fine.nib;
1075 pos0(flare,0); pos1(hair,0); pos2(vair,90); pos3(stem,180);
1076 pos4(stem,180); pos4'(stem,0); pos5(vair,-90); z4'=z4;
1077 x2=2/3w-.5u; rt x3l=rt x4l=hround(.5w-u+.5stem); x5=2.5u;
1078 y1=y3=.75h; top y2=h+oo; y4=.25h; bot y5r=-oo;
1079 rt x1r=hround(w-1.5u); bulb(2,1,0); % bulb
1080 filldraw stroke pulled_arc.e(2,3)..z4e; % stem
1081 numeric light_stem; light_stem=2/3[vair,vstem];
1082 pos6(.5[hair,light_stem],-180); pos7(light_stem,-300);
1083 pos8(light_stem,-300); pos9(hair,-180);
1084 lft x6r=hround u; x7=3u; x8=w-3.5u; rt x9l=hround(w-u);
1085 y6=.4[y5,y7]; top y7r=vround .2h; bot y8l=-oo; y9=good.y .2h;
1086 filldraw stroke pulled_arc.e(4',5)...z6e{up}...z7e{right}
1087 ..{right}z8e...{up}z9e; % loop and arm
1088 pickup extra_rule.nib;
1089 x10=3u; x11=w-4.5u; x12=3u; x13=w-4.5u;
1090 top y12=bar_height;
1091 y11=y10; y13=y12; y10-y12=spread;
1092 draw z10--z11; % upper bar
1093 draw z12--z13; % lower bar
1094 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar;
1095
1096 ecchar"Recipe sign";
1097 beginchar(oct"223",if serifs: 12u#+.5max(2u#,cap_curve#)
1098 else:12.5u#-.5width_adj# fi,cap_height#,0);
1099 italcorr .75cap_height#*slant- if serifs: 1.75 else: .5 fi\\ u#;
1100 adjust_fit(cap_serif_fit#,0);
1101 pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0);
1102 lft x1l=lft x2l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0;
1103 filldraw stroke z1e--z2e; % stem
1104 penpos3(cap_band,90); penpos4(cap_band,90);
1105 penpos5(cap_curve if hefty:-3stem_corr fi,0);
1106 penpos6(vair,-90); penpos7(vair,-90);
1107 z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7;
1108 x7=x2; y7l=vround(.5h+.5vair); x4=x6;
1109 if serifs: x4=.5w-.5u; x5r=hround(w-2.25u);
1110 else: x4=.5w+.5u; x5r=hround(w-u); fi
1111 x4l:=x6l:=x4-.125cap_curve;
1112 fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe
1113 if serifs: pos6'(vair,-90); pos0(cap_stem,180);
1114 pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0);
1115 z6'=z6; lft x0r=lft x8r=hround(x5-2/3u-.5cap_curve);
1116 y8=1/3[y2,y7]; y0=3/5[y2,y7]; x9=.5[x8l,x10r];
1117 bot y9r=-o; rt x10r=hround(w-.05u); y10=1/4[y2,y7];
1118 filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up}; % tail
1119 nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif
1120 dish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); % lower serif
1121 else: penpos8(cap_stem-2stem_corr,0); penpos9(cap_stem,0);
1122 x8=x6+.5u; y8=y6; x9r=hround(w-.5u); y9=0;
1123 fill z8l--diag_end(8l,9l,.5,1,9r,8r)--z8r--cycle; fi % tail
1124 x1:=x8;
1125 put_cross(.5cap_stem+if serifs: .9max(limit_dist,cap_jut) else: .8u fi,
1126 .5cap_stem+if serifs: 3u else: 4u fi);
1127 math_fit(0,.75ic#); penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar;
1128
1129 iff not variant_g: % not italic
1130 ecchar"Interrobang";
1131 beginchar(oct"224",8.5u#,asc_height#,0);
1132 italcorr .8asc_height#*slant;
1133 adjust_fit(0,0);
1134 pickup tiny.nib; pos7(dot_size,0); pos8(dot_size,90);
1135 lft x7l=hround(.5w-.25u-.5dot_size); bot y8l=0; z7=z8; % dot(7,8); % dot
1136 numeric bot_width;
1137 bot_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi;
1138 pickup fine.nib; pos2(vair,90); pos3(curve,0);
1139 pos4(vair,-90); pos5(bot_width,0); pos6(bot_width,0);
1140 x2=x4=x5=x6=x7; rt x3r=hround(w-u); bot y6=1+.25[top y8r,x_height];
1141 top y2r=hround .9h+oo; y3=.75[y6,y2]; y4=.5[y6,y2]; y5=.1[y6,y2];
1142 {{interim superness:=more_super;
1143 filldraw stroke pulled_super_arc.e(2,3)(superpull)
1144 & subpath (0,1) of super_arc.e(3,4) .. z5e---z6e\\}}; % arc and stem
1145 if serifs: pos1(hair,180); pos0(flare,180);
1146 lft x1r=hround u; y1=y3; bulb(2,1,0); % bulb
1147 else: pos1(Vround 5/7[vair,flare],110);
1148 lft x1r=hround u; top y1r=vround .9[y6,top y2r];
1149 filldraw stroke term.e(2,1,left,1,4); fi % terminal
1150 penlabels(0,1,2,3,4,5,6,7,8);
1151 clearxy;
1152 pickup tiny.nib; pos3(dot_size,0); pos4(dot_size,90);
1153 lft x3l=hround(.5w-.5dot_size); bot y4l=0; z3=z4; dot(3,4); % dot
1154 numeric bot_width;
1155 bot_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi;
1156 pickup fine.nib; pos1(dot_size,0); pos2(bot_width,0);
1157 x1=x2=x3; bot y2=.25[top y4r,x_height]+1;
1158 if square_dots: top y1=h;
1159 filldraw stroke z1e--z2e; % stem
1160 else: top z0=(x1,h+o); y1+.5dot_size=h+o;
1161 filldraw z1r...z0...z1l---z2l--z2r---cycle; fi % stem and bulb
1162 penlabels(0,1,2,3,4); endchar;
1163
1164 iff not variant_g: % not italic
1165 ecchar"Gnaborretni";
1166 beginchar(oct"225",8.5u#,asc_height#-desc_depth#,desc_depth#);
1167 adjust_fit(0,0);
1168 pickup tiny.nib; pos7(dot_size,0); pos8(dot_size,90);
1169 lft x7l=hround(.5w-.25u-.5dot_size); top y8r=h; z7=z8; % dot(7,8); % dot
1170 numeric top_width;
1171 top_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi;
1172 pickup fine.nib; pos2(vair,270); pos3(curve,180);
1173 pos4(vair,90); pos5(top_width,180); pos6(top_width,180);
1174 x2=x4=x5=x6=x7; lft x3r=hround u; top y6=.25[bot y8l,h-x_height]-1;
1175 bot y2r=hround .1asc_height-d-oo; y3=.75[y6,y2]; y4=.5[y6,y2]; y5=.1[y6,y2];
1176 {{interim superness:=more_super;
1177 filldraw stroke pulled_super_arc.e(2,3)(superpull)
1178 & subpath (0,1) of super_arc.e(3,4) .. z5e---z6e\\}}; % arc and stem
1179 if serifs: pos1(hair,0); pos0(flare,0);
1180 rt x1r=hround(w-u); y1=y3; bulb(2,1,0); % bulb
1181 else: pos1(Vround 5/7[vair,flare],-70);
1182 rt x1r=hround(w-u); bot y1r=vround .9[y6,bot y2r];
1183 filldraw stroke term.e(2,1,right,1,4); fi % terminal
1184 penlabels(0,1,2,3,4,5,6,7,8);
1185 clearxy;
1186 pickup tiny.nib; pos3(dot_size,0); pos4(dot_size,90);
1187 lft x3l=hround(.5w-.5dot_size); top y4r=h; z3=z4; dot(3,4); % dot
1188 numeric top_width;
1189 top_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi;
1190 pickup fine.nib; pos1(dot_size,0); pos2(top_width,0);
1191 x1=x2=x3; top y2=.25[bot y4l,h-x_height]-1;
1192 if square_dots: bot y1=-d;
1193 filldraw stroke z1e--z2e; % stem
1194 else: bot z0=(x1,-d-o); y1-.5dot_size=-d-o;
1195 filldraw z1l...z0...z1r---z2r--z2l---cycle; fi % stem and bulb
1196 penlabels(0,1,2,3,4); endchar;
1197
1198 iff variant_g: % italic
1199 ecchar"Interrobang";
1200 beginchar(oct"224",9u#,asc_height#,0);
1201 italcorr asc_height#*slant-u#;
1202 adjust_fit(0,0);
1203 adjust_fit(0,0); pickup tiny.nib; pos10(dot_size,0); pos11(dot_size,90);
1204 lft x10l=hround(.5w-.5dot_size); bot y11l=0; z10=z11; % dot(10,11); % dot
1205 pickup fine.nib; pos1(flare,180); pos2(hair,180); pos3(vair,90);
1206 lft x1r=hround u; x3=.5w;
1207 y1-.5flare=x_height; top y3r=hround .9h+o; bulb(3,2,1); % bulb
1208 pos8(vair,-90); x8=.5w; bot y8r=.25[top y11r,x_height]+1;
1209 numeric theta; theta=90+angle(10u,y3-y8); slope:=(y3-y8)/10u;
1210 pos3'(vair,-90); z3'=z3; pos0(vstem,theta); x0=x3; y0=1/3[y8,y3];
1211 rt x4l=hround(w-1.5u); lft x7r=hround 1/3w;
1212 x4l-x4r=x7l-x7r=hround .5[vair,vstem]-fine;
1213 ellipse_set(3'l,4l,5l,0l); ellipse_set(3'r,4r,5r,0r); y4=y4r;
1214 ellipse_set(8l,7l,6l,0l); ellipse_set(8r,7r,6r,0r); y7=y7r;
1215 pos9(hair,0); rt x9r=hround(2/3w+.5hair); y9=good.y .5[y8,y0];
1216 filldraw stroke super_arc.e(3',4) & z4e{down}
1217 ..z5e---z6e..z7e{down} & super_arc.e(7,8)...{up}z9e; % main stroke
1218 penlabels(0,1,2,3,4,5,6,7,8,9,10,11);
1219 clearxy;
1220 pickup tiny.nib; pos3(dot_size,0); pos4(dot_size,90);
1221 lft x3l=hround(.5w-.5dot_size); bot y4l=0; z3=z4; dot(3,4); % dot
1222 numeric bot_width;
1223 bot_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi;
1224 pickup fine.nib; pos1(dot_size,0); pos2(bot_width,0);
1225 x1=x2=x3; bot y2=.25[top y4r,x_height]+1;
1226 if square_dots: top y1=h;
1227 filldraw stroke z1e--z2e; % stem
1228 else: top z0=(x1,h+o); y1+.5dot_size=h+o;
1229 filldraw z1r...z0...z1l---z2l--z2r---cycle; fi % stem and bulb
1230 penlabels(0,1,2,3,4); endchar;
1231
1232 iff variant_g: % italic
1233 ecchar"Gnaborretni";
1234 beginchar(oct"225",9u#,asc_height#-desc_depth#,desc_depth#);
1235 adjust_fit(0,0);
1236 pickup tiny.nib; pos10(dot_size,0); pos11(dot_size,90);
1237 lft x10l=hround(.5w-.5dot_size); top y11r=h; z10=z11; % dot(10,11); % dot
1238 pickup fine.nib; pos1(flare,0); pos2(hair,0); pos3(vair,-90);
1239 rt x1r=hround(w-u); x3=.5w; y1+.5flare=asc_height-x_height-d;
1240 bot y3r=hround .1asc_height-d-o; bulb(3,2,1); % bulb
1241 pos8(vair,90); x8=.5w; top y8r=.25[bot y11l,y1+.5flare]-1;
1242 numeric theta; theta=angle(10u,y8-y3)-90; slope:=(y8-y3)/10u;
1243 pos3'(vair,90); z3'=z3; pos0(vstem,theta); x0=x3; y0=1/3[y8,y3];
1244 lft x4l=hround 1.5u; rt x7r=hround 2/3w;
1245 x4r-x4l=x7r-x7l=hround .5[vair,vstem]-fine;
1246 ellipse_set(3'l,4l,5l,0l); ellipse_set(3'r,4r,5r,0r); y4=y4r;
1247 ellipse_set(8l,7l,6l,0l); ellipse_set(8r,7r,6r,0r); y7=y7r;
1248 pos9(hair,180); lft x9r=hround(1/3w-.5hair); y9=good.y .5[y8,y0];
1249 filldraw stroke super_arc.e(3',4) & z4e{up}
1250 ..z5e---z6e..z7e{up} & super_arc.e(7,8)...{down}z9e; % main stroke
1251 penlabels(0,1,2,3,4,5,6,7,8,9,10,11);
1252 clearxy;
1253 pickup tiny.nib; pos3(dot_size,0); pos4(dot_size,90);
1254 lft x3l=hround(.5w-.5dot_size); top y4r=h; z3=z4; dot(3,4); % dot
1255 numeric top_width;
1256 top_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi;
1257 pickup fine.nib; pos1(dot_size,0); pos2(top_width,0);
1258 x1=x2=x3; top y2=.25[bot y4l,h-x_height]-1;
1259 if square_dots: bot y1=-d;
1260 filldraw stroke z1e--z2e; % stem
1261 else: bot z0=(x1,-d-o); y1-.5dot_size=-d-o;
1262 filldraw z1l...z0...z1r---z2r--z2l---cycle; fi % stem and bulb
1263 penlabels(0,1,2,3,4); endchar;
1264
1265 iff not variant_g: % not italic
1266 ecchar"Dong sign"; % Vietnamese currency
1267 beginchar(oct"226",10u#+serif_fit#,body_height#,0);
1268 italcorr asc_height#*slant-serif_fit#+.5stem#-2u#;
1269 adjust_fit(0,serif_fit#);
1270 numeric hh; hh=asc_height;
1271 pickup tiny.nib; pos1(stem',0); pos2(stem,0);
1272 pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2;
1273 rt x1r=hround(w-2.5u+.5stem'); top y1=hh;
1274 numeric edge; edge=lft x2l;
1275 pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0);
1276 pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360);
1277 lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]);
1278 y3=1/8[bar_height,x_height];
1279 x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo if monospace: -hair fi;
1280 lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height if monospace: -.5hair fi;
1281 x6l=x4l-.2u; bot y6r=-oo;
1282 x7=x3; y7=min(y3,y6+y4-y3+.6vair);
1283 (x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]);
1284 (x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]);
1285 filldraw stroke z3e{up}...pulled_arc.e(4,5)
1286 & pulled_arc.e(5,6)...{up}z7e; % bowl
1287 y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l));
1288 pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi;
1289 filldraw stroke z1e--z0'e--z0e--z2e; % stem
1290 if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif
1291 sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif
1292 %
1293 pos8(bar,90); pos9(bar,90);
1294 x8=.5[x4,x5];
1295 if serifs: x9=x2r+jut; else: x9=w; fi
1296 if serifs: y8=y9=.5[y.a2-.5slab,y4+.5vair];
1297 else: y8=y9=.5[x_height,asc_height-serif_drop]; fi
1298 filldraw stroke z8e--z9e;
1299 currentpicture:=currentpicture shifted (0,body_height-asc_height);
1300 pickup rule.nib;
1301 x10=x5; x11=x9; top y10=0; y10=y11;
1302 draw z10--z11;
1303 penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar;
1304
1305 iff variant_g: %italic
1306 ecchar"Italic Dong sign"; % Vietnamese currency
1307 beginchar(oct"226",9u#,body_height#,0);
1308 italcorr max(1/3x_height#*slant+.5hair#+.5u#,
1309 h#*slant+.5stem#-2u#) if math_fitting:-.5u# fi;
1310 adjust_fit(0,0); pickup fine.nib;
1311 pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270);
1312 x0=x4; x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve);
1313 x4+.5stem=hround(w-2.5u+.5stem);
1314 top y1r=x_height+oo; bot y3r=-oo; y0=y2=.5[y1,y3];
1315 filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2)
1316 & pulled_arc.e(2,3) & super_arc.e(3,0); % bowl
1317 x5=x0; x7=w; hook_out(5,6,7); % closing hook
1318 pickup tiny.nib; pos5'(stem,0); pos4(stem,0);
1319 z5'=z5; top y4=h; filldraw stroke z4e--z5'e; % stem
1320 sloped_serif.l(4,5',a,1/3,jut,serif_drop); % serif
1321 math_fit(-.3x_height#*slant+.5curve#-u#,ic#);
1322 % the bar
1323 pos8(bar,90); pos9(bar,90);
1324 x8=x1; % .5[x1,x4];
1325 x9=x6;
1326 y8=y9=.5[y.a2-.5slab,y1+.5vair];
1327 filldraw stroke z8e--z9e;
1328 currentpicture:=currentpicture shifted (0,body_height-asc_height);
1329 pickup rule.nib;
1330 x10=x2; x11=x9; top y10=0; y10=y11;
1331 draw z10--z11;
1332 penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar;
1333
1334 ecchar"Trademark"; % jk, design based on logo font
1335 beginchar(oct"227",12u#,body_height#,0);
1336 italcorr .7body_height#;
1337 adjust_fit(0,0);
1338 numeric ww, hh; ww=.5w; hh=vround .5body_height;
1339 pickup pencircle xscaled hair yscaled vair;
1340 lft x1=-eps; x2=ww-x1; x3=x4=.5ww;
1341 y1=y2=y3; top y1=hh; bot y4=-o;
1342 draw z1--z2; draw z3--z4;
1343 labels(1,2,3,4);
1344 clearxy;
1345 x1=x2=hround(ww+u); x4=x5=hround(w-u); x3=hround .5[x1,x4];
1346 y1=y5; y2=y4; bot y1=-o;
1347 top y2=hh+o; y3=vround (y1+.5bar_height);
1348 draw z1--z2--z3--z4--z5;
1349 labels(1,2,3,4,5);
1350 currentpicture:=currentpicture shifted (0,hh);
1351 endchar;
1352
1353 ecchar"Per ten thousand sign"; % Yannis, Unicode Computer Modern
1354 beginchar(oct"230",9u#+max(6u#,2fudge*(hair#+stem#)),
1355 body_height#,body_height#-asc_height#);
1356 italcorr if hefty: .4asc_height#*slant-.5u# else: h#*slant-u# fi;
1357 adjust_fit(0,
1358 2*(.5*(9u#+max(6u#,2fudge*(hair#+stem#)))
1359 -2.5u#+5/6[fudged.hair#,fudged.stem#]));
1360 pickup fine.nib;
1361 numeric left_curve,right_curve;
1362 left_curve=hround 5/6[fudged.hair,fudged.stem];
1363 right_curve=max(fine.breadth,hround(fudged.hair if hefty:-2stem_corr fi));
1364 pos1(vair,90); pos2(left_curve,180); pos3(vair,270); pos4(right_curve,360);
1365 top y1r=h; lft x2r=hround u; rt x4r=hround(.5w-1.5u);
1366 bot y3r=floor(if monospace: .7 else: .5 fi\\ asc_height);
1367 x1=x3=.5[x2,x4]; y2=y4=.5[y1,y3];
1368 pos5(vair,90); pos6(left_curve,180); pos7(vair,270); pos8(right_curve,360);
1369 bot y7r=-d; rt x8r=hround(w-u); lft x6r=hround(.5w+1.5u);
1370 top y5r=vround(if monospace: .3 else: .5 fi\\ asc_height);
1371 x5=x7=.5[x6,x8]; y6=y8=.5[y5,y7];
1372 filldraw stroke pulled_super_arc.e(5,6)(superpull)
1373 & pulled_super_arc.e(6,7)(superpull); % left half of lower bowl
1374 filldraw stroke super_arc.e(7,8) & super_arc.e(8,5); % right half of lower bowl
1375 hihi:=(.5*(9u#+max(6u#,2fudge*(hair#+stem#)))
1376 -2.5u#+5/6[fudged.hair#,fudged.stem#])
1377 if monospace: *expansion_factor fi *hppp;
1378 picture petit_zero; petit_zero := currentpicture;
1379 pickup rule.nib; top y9=h; bot y10=-d;
1380 if hefty: x9=good.x(x5-eps); x10=good.x(x1+eps);
1381 draw z9--z10; % diagonal
1382 else: rt x9=hround(w-2.5u); lft x10=hround 2.5u; draw z9--z10; % diagonal
1383 pickup fine.nib; pos9(rule_thickness,angle(z9-z10)+90);
1384 pos11(vair,angle(z1r-z4r)-90); pos12(vair,angle(z9-z10)+90);
1385 path p; p=super_arc.r(1,4); z11r=point 2/3 of p; z12r=z9r;
1386 filldraw stroke z11e{direction 2/3 of p}...{z9-z10}z12e; fi % link
1387 pickup fine.nib;
1388 filldraw stroke pulled_super_arc.e(1,2)(superpull)
1389 & pulled_super_arc.e(2,3)(superpull); % left half of upper bowl
1390 filldraw stroke super_arc.e(3,4) & super_arc.e(4,1); % right half of upper bowl
1391 addto currentpicture also (petit_zero shifted (hihi,0));
1392 addto currentpicture also (petit_zero shifted (2hihi,0));
1393 picture petit_zero; % Release resources allocated to the picture variable
1394 penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar;
1395
1396 ecchar "Alternate pilcrow sign"; % one vertical bar only
1397 beginchar(oct"231",8.5u#,asc_height#,desc_depth#);
1398 adjust_fit(0,0); pickup rule.nib; autorounded;
1399 top y1=h; bot y6=-d-eps; y4=y9=y1;
1400 y3=y5=good.y .5[y1,y6];
1401 lft x2=hround u; y2=.5[y1,y3]; rt x9=hround(w-.5u); x4=x5=x6=good.x(x9-1.5u);
1402 x1=x3=min(.5w,x4);
1403 filldraw z4..z1{left}...z2{down}...{right}z5--cycle; % filled bowl
1404 draw z9--z4--z6; % left stem and upper serif
1405 if serifs:
1406 x11=x9; x10-x6=x4-x9;
1407 bot y10=-d-eps; y10=y11;
1408 draw z10--z11; % lower serif
1409 fi
1410 labels(1,2,3,4,5,6,9,10,11); endchar;
1411
1412 ecchar"Baht sign"; % currency of Thailand
1413 beginchar(oct"232",12.5u#,body_height#,body_height#-asc_height#);
1414 italcorr .75cap_height#*slant-.5u#;
1415 adjust_fit(cap_serif_fit#,0);
1416 numeric hh; hh=cap_height;
1417 numeric left_stem,right_curve,middle_weight;
1418 left_stem=cap_stem-hround 2stem_corr; middle_weight=.6vair+.5;
1419 pickup tiny.nib; pos1(left_stem,0); pos2(left_stem,0);
1420 lft x1l=lft x2l=hround max(2u,3u-.5left_stem); top y1=hh; bot y2=0;
1421 filldraw stroke z1e--z2e; % stem
1422 penpos3(cap_band,90); penpos4(cap_band,90);
1423 penpos6(middle_weight,-90); penpos7(middle_weight,-90);
1424 penpos8(middle_weight,90); penpos9(middle_weight,90);
1425 penpos5(right_curve-stem_corr,0); penpos10(right_curve,0);
1426 penpos11(cap_band,-90); penpos12(cap_band,-90);
1427 z3r=top z1; y4=y3; y5=.5[y4,y6]; y6=y7; y7l-y8l=vair;
1428 z12r=bot z2; y11=y12; y10=.5[y11,y9]; y8=y9; .5[y7l,y8l]=.52hh;
1429 x4=x6; x9=x11=x4+.5u; x7=x8=x1; x9l:=x4+.25u;
1430 x5r=hround(w-1.5u); x10r=hround(w-u);
1431 if serifs: right_curve=cap_curve-stem_corr; x4=.5[x1,w-1.5u];
1432 else: right_curve=cap_curve-3stem_corr; x4=.5[x1,w-2.5u];
1433 x4l:=x4l-.5u; x9l:=x9l-.5u; fi
1434 x6l:=x6l-.5u; x11l:=x11l-.5u;
1435 fill stroke z3e..super_arc.e(4,5) & super_arc.e(5,6)..z7e; % upper lobe
1436 fill stroke z8e..super_arc.e(9,10) & super_arc.e(10,11)..z12e; % lower lobe
1437 if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif
1438 nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif
1439 pickup crisp.nib; pos13(bar,0); pos14(bar,0);
1440 rt x13r=rt x14r=rt x4; top y13=h; bot y14=-d;
1441 filldraw stroke z13e--z14e; % vertical crossbar
1442 math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar;
1443
1444 ecchar"Numero sign"; % from wncyr
1445 beginchar(oct"233",15u#+width_adj#,cap_height#,0);
1446 italcorr cap_height#*slant
1447 -cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#);
1448 adjust_fit(cap_serif_fit#
1449 if serifs: +.5(flare#+(cap_stem#-stem#)) fi ,cap_serif_fit#);
1450 w:=if serifs: 10u else: 11u fi;
1451 numeric thin_stem;
1452 thin_stem=hround(fudged.hair+stem_corr);
1453 pickup tiny.nib;
1454 pos1(thin_stem,0); pos2(thin_stem,0);
1455 pos3(thin_stem,0); pos4(thin_stem,0);
1456 top y1=h;
1457 if serifs: top y3=.79h; bot y2=.21h;
1458 else: top y3=h; bot y2=0; fi
1459 bot y4=0;
1460 x1=x2; x3=x4; x1l=w-x3r;
1461 rt x3r=hround min(w-2u,w-3u+.5fudged.cap_stem);
1462 x91=x2-.75flare; bot y91r=-oo; x92=w-x91;
1463 top y92l=h+oo;
1464 pos91(thin_stem,-90); pos92(thin_stem,-90);
1465 if serifs:
1466 filldraw stroke z1e--z2e & pulled_arc.e(2,91); % left stem
1467 filldraw stroke z4e--z3e & pulled_arc.e(3,92); % right stem
1468 else:
1469 filldraw stroke z1e--z2e; filldraw stroke z4e--z3e; % stems
1470 fi
1471 if hefty:
1472 penpos5(fudged.cap_stem,0); penpos6(fudged.cap_stem,0);
1473 x5l=x1; x6r=x4; y5=h; y6=0;
1474 numeric upper_notch,lower_notch;
1475 upper_notch=h-cap_notch_cut;
1476 lower_notch=cap_notch_cut;
1477 x1'=rt x1r; z1'=whatever[z5l,z6l]; x4'=lft x4l;
1478 z4'=whatever[z5r,z6r];
1479 fill z5l..
1480 if y1'<upper_notch: {right}(x1'+1,upper_notch){down}... fi
1481 {z6-z5}diag_in(5l,6l,1,6r)--z6r..
1482 if y4'>lower_notch: {left}(x4'-1,lower_notch){up}... fi
1483 {z5-z6}diag_in(6r,5r,1,5l)--cycle; % diagonal
1484 else:
1485 penpos5(whatever,0); penpos6(whatever,90);
1486 z5l=z1l; z6l=z4l;
1487 z7=z6l+(max(eps,cap_stem-3stem_corr-tiny),0) rotated (angle(z5l-z6l)-90);
1488 z5r=z7+whatever*(z5l-z6l); z6r=z7+whatever*(z5l-z6l);
1489 filldraw stroke z5e--z6e; % diagonal
1490 fi
1491 if serifs:
1492 if hefty: serif(1,2,a,1/3,-cap_jut); % upper left serif
1493 else: serif(5,6,a,1/3,-cap_jut); fi % upper left serif
1494 fi
1495 pickup tiny.nib;
1496 if serifs:
1497 x93=x2-1.5flare;
1498 y93=.75flare;
1499 pos95(flare+(cap_stem-stem),-180);
1500 x94=x3+1.5flare;
1501 y94=h-y93;
1502 pos96(flare+(cap_stem-stem),0);
1503 pos92'(thin_stem,90);
1504 z92'=z92;
1505 pos93(cap_hair,-180);
1506 pos94(cap_hair,0);
1507 bulb(91,93,95); bulb(92',94,96);
1508 fi
1509 w:=15u;
1510 penpos71(vair,90); penpos73(vair',-90); penpos72(.8curve,180);
1511 penpos74(.8curve,0); x72r=hround max(.5u,1.25u-.4curve)+9.5u;
1512 x74r=w-x72r+9u; x71=x73=12u; y71r=h-3u+vround 1.5oo; y73r=x_height-3u-oo;
1513 y72=y74=.5[h,x_height]-3u-vair_corr; y72l:=y74l:=.52[h,x_height]-3u;
1514 penstroke pulled_arc.e(71,72) & pulled_arc.e(72,73) & pulled_arc.e(73,74) &
1515 pulled_arc.e(74,71) & cycle;
1516 x81=max(lft x72r,x73-(lft w-x73));
1517 x82=min(rt x74r,lft w); y81=y82=.8x_height-3u;
1518 pos81(bar,90); pos82(bar,90);
1519 filldraw stroke z81e--z82e;
1520 math_fit(0,max(.5ic#-.5u#,0));
1521 penlabels(1,1',2,3,4,4',5,6,7); endchar;
1522
1523 ecchar "Abzueglich sign"; % jk
1524 beginchar(oct"234",9u#,body_height#,0);
1525 italcorr body_height#*slant-.5u#;
1526 adjust_fit(0,0); pickup rule.nib;
1527 rt x1=hround(w-u)+eps; top y1=h+eps;
1528 lft x2=hround u-eps; bot y2=-eps;
1529 draw z1--z2; % diagonal
1530 x3=w-x5=good.x (lft x1 - .5dot_size);
1531 bot y4 = good.y .5dot_size;
1532 top y6 = good.y h-.5dot_size;
1533 pos3(dot_size,0); pos4(dot_size,90); z3=z4;
1534 pos5(dot_size,0); pos6(dot_size,90); z5=z6;
1535 dot(3,4); dot(5,6); % dots
1536 penlabels(1,2,3,4,5,6); endchar;
1537
1538 ecchar"Aestimated sign (large e)"; % jk
1539 beginchar(oct"235",(11.25u#+max(.75u#,.5cap_curve#)),cap_height#,0);
1540 italcorr .76cap_height#*slant+.5min(curve#-1.5u#,0);
1541 adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi);
1542 numeric left_curve,right_curve;
1543 left_curve=right_curve+3stem_corr=cap_curve if not serifs: -1.5stem_corr fi;
1544 if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi
1545 if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi
1546 pickup tiny.nib;
1547 pos1(right_curve,0); pos2(vair,90); pos3(left_curve,180);
1548 y1=good.y .52h; top y2r=h+vround 1.5oo; y0l=bot y1;
1549 rt x1r=hround min(w-.5u,w-u+.5right_curve);
1550 lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u;
1551 {{interim superness:=more_super;
1552 filldraw stroke super_arc.e(1,2)}}; % right bowl
1553 y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u;
1554 if serifs: pos4(vair',270); pos5(hair,360);
1555 y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r;
1556 (x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u);
1557 filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4)
1558 ...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal
1559 else: pos4(vair,270);
1560 filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc
1561 pickup fine.nib; pos4'(vair,270); z4=z4';
1562 pos5(.5[vair,flare],275); rt x5r=hround(w-.6u);
1563 y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
1564 filldraw stroke term.e(4',5,right,1,4); fi % terminal
1565 path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4);
1566 y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1;
1567 forsuffixes $=l,r:
1568 x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor
1569 fill stroke z0e--z1'e; % crossbar
1570 penlabels(0,1,2,3,4,5); endchar;
1571
1572 ecchar "Open bullet"; % derived from Circle operator
1573 beginchar(oct"236",9u#,v_center(7u#));
1574 adjust_fit(0,0); pickup rule.nib; autorounded;
1575 if .5w <> good.x .5w: change_width; fi
1576 lft x6=hround u; x2=w-x6; top y8=h; y2=math_axis;
1577 circle_points; draw_circle; % circle
1578 labels(1,2,3,4,5,6,7,8); endchar;
1579
1580 ecchar"Servicemark"; % jk, design based on logo font
1581 beginchar(oct"237",12u#,body_height#,0);
1582 italcorr .7body_height#;
1583 adjust_fit(0,0);
1584 numeric ww, hh; ww=.5w; hh=vround .5body_height;
1585 pickup pencircle xscaled hair yscaled vair;
1586 x3=x8= u;
1587 x2=x4=.382[x3,ww-x3];
1588 x1=ww-x3;
1589 x5=x7=.618[x3,ww-x3];
1590 x6=.5[ww-x3,lft ww];
1591 top y1=hh; y4=good.y .55hh; bot y8=0;
1592 y1=y2; y3=.5[y2,y4]; y4=y5; y6=.5[y5,y7]; y7=y8;
1593 draw z1--z2; draw z4--z5; draw z7--z8;
1594 super_crescent(2,3,4);
1595 super_crescent(5,6,7);
1596 labels(1,2,3,4,5,6,7,8);
1597 clearxy;
1598 x1=x2=hround(ww+u); x4=x5=hround(w-u); x3=hround .5[x1,x4];
1599 y1=y5; y2=y4; bot y1=-o;
1600 top y2=hh+o; y3=vround (y1+.5bar_height);
1601 draw z1--z2--z3--z4--z5;
1602 labels(1,2,3,4,5);
1603 currentpicture:=currentpicture shifted (0,hh);
1604 endchar;
1605
1606 ecchar "Left square bracket with quill"; % from Haralambous/Plaice
1607 beginchar(oct"240",9u#,body_height#,paren_depth#);
1608 italcorr math_axis#*slant+.5vair#-u#;
1609 adjust_fit(if monospace: -1.5u#,u# else: -2.5u#,0 fi);
1610 pickup fine.nib;
1611 forsuffixes $=1,1',4,4',7,7',11,11',17,17':
1612 pos$(vair,0); endfor
1613 forsuffixes $=2,3,5,6: pos$(stem,0); endfor
1614 x2=x3=x5=x6; x1=x1'=x7=x7'=w-x4=w-x4';
1615 rt x4r=hround(w-1.5u+.5vair); rt x2r=hround(.5w+.5stem);
1616 top y1=h; bot y7=-d; .5[y4,y4']=.5[y1,y7]=.5[y2,y6]=.5[y3,y5];
1617 y1-y2=y3-y4=(y1-y4)/4;
1618 y1-y1'=y4-y4'=y7'-y7=y11-y11'=y17-y17'=vair-fine;
1619 x11=x11'=x17=x17'; x11-x2=x2-x1; y11=y1; y17=y7;
1620 filldraw z11'l{left}...z2r---z3r...{right}z4r
1621 --z4'r{left}...z5r---z6r...{right}z17l
1622 --z17r--z17'r{left}...z6l---z5l...{right}.5[z4l,z4'l]{left}
1623 ...z3l---z2l...{right}z11r--z11'r--cycle; % stroke
1624 penlabels(1,2,3,4,5,6,7); endchar;
1625
1626 ecchar "Right square bracket with quill"; % from Haralambous/Plaice
1627 beginchar(oct"241",9u#,body_height#,paren_depth#);
1628 italcorr body_height#*slant+.5vair#-u#;
1629 adjust_fit(if monospace: u#,-1.5u# else: 0,-2.5u# fi);
1630 pickup fine.nib;
1631 forsuffixes $=1,1',4,4',7,7',11,11',17,17':
1632 pos$(vair,0); endfor
1633 forsuffixes $=2,3,5,6: pos$(stem,0); endfor
1634 x2=x3=x5=x6; x1=x1'=x7=x7'=w-x4=w-x4';
1635 lft x4l=hround(1.5u-.5vair); lft x2l=hround(.5w-.5stem);
1636 top y1=h; bot y7=-d; .5[y4,y4']=.5[y1,y7]=.5[y2,y6]=.5[y3,y5];
1637 y1-y2=y3-y4=(y1-y4)/4; y1-y1'=y4-y4'=y7'-y7=vair-fine;
1638 x11=x11'; x17=x17';
1639 y11=y1; y17=y7;
1640 x1-x2=x2-x11; x17=x11; y11-y11'=y17'-y17=vair-fine;
1641 filldraw z11'r{right}...z2l---z3l...{left}z4l
1642 --z4'l{right}...z5l---z6l...{left}z17'r
1643 --z17'l--z17l{right}...z6r---z5r...{left}.5[z4r,z4'r]{right}
1644 ...z3r---z2r...{left}z11l--z11'l--cycle; % stroke
1645 penlabels(1,2,3,4,5,6,7); endchar;
1646
1647 ecchar "Cent sign"; % from wasychr (wasy)
1648 % Modified height and depth (jk)
1649 % Modified: Bar instead of broken bar
1650 beginchar(oct"242",9u#,x_height#+.5desc_depth#,.5desc_depth#);
1651 italcorr x_height#*slant-.2u#;
1652 adjust_fit(0,0);
1653 pickup fine.nib; pos2(vair',90); pos4(vair',270);
1654 x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo;
1655 pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height;
1656 if serifs: pos1(hair,0); pos0(flare,0);
1657 y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,x_height]-.5flare);
1658 rt x1r=hround(w-.7u); bulb(2,1,0); % bulb
1659 pos5(hair,0); rt x5r=hround(w-.5u);
1660 y5=max(good.y(.5bar_height-.9),y4l+vair');
1661 (x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u);
1662 filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
1663 & pulled_super_arc.e(3,4)(.5superpull)
1664 ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal
1665 else: pos1(4/7[vair',flare],80);
1666 rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r];
1667 filldraw stroke term.e(2,1,right,.8,4); % upper terminal
1668 pos5(.6[vair',flare],275); rt x5r=hround(w-.5u);
1669 y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l;
1670 forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e;
1671 if angle direction 1 of p.e>75:
1672 p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor
1673 filldraw stroke pulled_super_arc.e(2,3)(.7superpull)
1674 & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal
1675 pickup crisp.nib;
1676 x6=x7=x8=x9=x2; y7=y2; y8=y4; bot y9=-d; y6-y7 = y8-y9;
1677 pos6(bar,0); pos7(bar,0);
1678 pos8(bar,0); pos9(bar,0);
1679 filldraw stroke z6e--z9e; % bar
1680 %filldraw stroke z6e--z7e; % upper bar
1681 %filldraw stroke z8e--z9e; % lower bar
1682 penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
1683
1684 ecchar "Sterling sign"; % from italp (cm)
1685 % already contains bug fix found by Yannis Haralambous
1686 beginchar(oct"243",12u#,asc_height#,0);
1687 adjust_fit(0,.75asc_height#*slant-.5u#); pickup fine.nib;
1688 pos0(flare,0); pos1(hair,0); pos2(vair,90); pos3(stem,180);
1689 pos4(stem,180); pos4'(stem,0); pos5(vair,-90); z4'=z4;
1690 x2=2/3w-.5u; rt x3l=rt x4l=hround(.5w-u+.5stem); x5=2.5u;
1691 y1=y3=.75h; top y2=h+oo; y4=.25h; bot y5r=-oo;
1692 rt x1r=hround(w-1.5u); bulb(2,1,0); % bulb
1693 filldraw stroke pulled_arc.e(2,3)..z4e; % stem
1694 numeric light_stem; light_stem=2/3[vair,vstem];
1695 pos6(.5[hair,light_stem],-180); pos7(light_stem,-300);
1696 pos8(light_stem,-300); pos9(hair,-180);
1697 lft x6r=hround u; x7=3u; x8=w-3.5u; rt x9l=hround(w-u);
1698 y6=.4[y5,y7]; top y7r=vround .2h; bot y8l=-oo; y9=good.y .2h;
1699 filldraw stroke pulled_arc.e(4',5)...z6e{up}...z7e{right}
1700 ..{right}z8e...{up}z9e; % loop and arm
1701 pos10(bar,90); pos11(bar,90); x10=3u; x11=w-4.5u;
1702 top y10r=top y11r=vround(.5h+.5bar); filldraw stroke z10e--z11e; % bar
1703 penlabels(1,2,3,4,5,6,7,8,9,10,11); endchar;
1704
1705 ecchar "Currency sign"; % from rsym (wasy)
1706 beginchar(oct"244",1.13 min(asc_height#,9/7x_height#)+2u#,
1707 min(asc_height#,9/7x_height#),0);
1708 italcorr x_height#*slant;
1709 adjust_fit(if monospace: u#,u# else: 0,0 fi);
1710 pickup rule.nib; autorounded;
1711 x4 = good.x .5w; x2-x6=y8-y4; y2=good.y .5h; bot y4=-oo;
1712 circle_points;
1713 z9 = 1.30[z5,z1];
1714 z10 = 1.30[z7,z3];
1715 z11 = 1.30[z1,z5];
1716 z12 = 1.30[z3,z7];
1717 draw_circle;
1718 draw z1--z9;
1719 draw z3--z10;
1720 draw z5--z11;
1721 draw z7--z12;
1722 labels(1,2,3,4,5,6,7,8,9,10,11,12); endchar;
1723
1724
1725 ecchar "Yen symbol"; % from asymbols (msam)
1726 % Change (jk): Use correct pen for horizontal bars
1727 compute_spread(.45x_height#, .55x_height#);
1728 beginchar(oct"245",13u#,cap_height#,0); %% adapted from "Y"
1729 italcorr cap_height#*slant+.45u#;
1730 adjust_fit(cap_serif_fit#,cap_serif_fit#); numeric
1731 left_stem,right_stem,outer_jut,dy,alpha;
1732 left_stem=cap_stem-stem_corr; right_stem=min(cap_hair if
1733 hefty:-2stem_corr fi,left_stem); outer_jut=.75cap_jut;
1734 x1l=w-x4r=l+letter_fit+outer_jut+.05u;
1735 x2l=x5l=hround(.5w-.5left_stem); x3r=x5r; y1=y4=h;
1736 y2=y3=y5=.4h; dy=y1-y2; alpha=((x2l-x1l)++dy)/dy;
1737 penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
1738 penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
1739 penpos5(left_stem,0); penpos6(left_stem,0); x5=x6; y6=0;
1740 z0=whatever[z1r,z2r]=whatever[z3l,z4l]; if
1741 y0>y2+cap_notch_cut: y0:=y2+cap_notch_cut;
1742 fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)--z5r
1743 --diag_end(5r,6r,1,1,6l,5l)--z5l--diag_end(2l,1l,1,1,1r,2r){z2-z1}
1744 ...{down}z0+.5left--cycle; % diagonals and stem
1745 else: fill z0--diag_end(0,4l,1,1,4r,3r)--z5r
1746 --diag_end(5r,6r,1,1,6l,5l)--z5l
1747 --diag_end(2l,1l,1,1,1r,0)--cycle; fi % diagonals & stem
1748 if serifs: numeric inner_jut; pickup tiny.nib;
1749 prime_points_inside(1,2); prime_points_inside(4,3);
1750 prime_points_inside(6,5);
1751 if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut:
1752 inner_jut=cap_jut;
1753 else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
1754 dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % upper left serif
1755 dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % upper right serif
1756 dish_serif(6',5,e,1/3,cap_jut,f,1/3,cap_jut); fi % lower serif
1757 pickup extra_rule.nib;
1758 x7=x9=x1l; x8=x10=x4r; y9=y10;
1759 top y7=bar_height; y7=y8; draw z7--z8;
1760 y9-y7=spread; draw z9--z10; % crossing bars
1761 penlabels(0,1,2,3,4,5,6,1',2',3',4',5',6',7,8,9,10); endchar;
1762
1763 ecchar "Broken vertical bar"; % jk
1764 beginchar(oct"246",3u#,body_height#,paren_depth#);
1765 italcorr body_height#*slant - u#;
1766 adjust_fit(0,0); pickup rule.nib;
1767 top y1=h; .5[y1,y4]=math_axis;
1768 compute_spread(.45x_height#,.55x_height#); y2-y3=spread;
1769 .5[y2,y3]=math_axis;
1770 x1=x2=x3=x4=good.x .5w;
1771 draw z1--z2; draw z3--z4;
1772 labels(1,2,3,4); endchar;
1773
1774 ecchar "Section sign"; % from mathsy, renovated (jk)
1775 beginchar(oct"247",6.5u#+max(1.5u#,stem#),asc_height#,desc_depth#);
1776 adjust_fit(0,0); pickup fine.nib;
1777 numeric s_slab; s_slab=if serifs:slab else:vround .2[slab,cap_stem] fi;
1778 numeric ess'; ess'=max(fine.breadth,cap_ess);
1779 numeric sstem; sstem=hround .5[s_slab,ess']-fine;
1780 if sstem < fine.breadth: sstem:=fine.breadth; fi
1781 pos2(vair,90); pos3(sstem,180);
1782 pos4(ess',270); pos4'(vair,270);
1783 pos5'(sstem,0); pos5(sstem,180);
1784 pos6(ess',90); pos6'(vair,90); pos7(sstem,0);
1785 pos8(vair,-90);
1786 top y2r=h+oo; bot y8r=-d-oo;
1787 y3=.52[y4,y2]; y5=.52[y4,y6]; y7=.52[y6,y8]; y5'=.52[y6,y4];
1788 y2-y4=y4-y6=y6-y8;
1789 bot z4'=bot z4; top z6'=top z6;
1790 lft x3r=hround 1.25u;
1791 x2=x4=x6=x8=.5w; x5=x7=w-x3; x5'=x3;
1792 if serifs:
1793 pos0(stem,0); pos1(hair,0); pos9(hair,-180); pos10(stem,-180);
1794 rt x1r=hround(w-1.5u); x9=w-x1; y2-y1=y9-y8=(y2-y8)/8;
1795 bulb(2,1,0); bulb(8,9,10); % bulbs
1796 else:
1797 pos1(.6[slab,flare],-100); pos9(flare,-100); pos2'(vair,-90);
1798 rt x1l=hround(w-1.3u); lft x9r=hround .8u; z2'=z2;
1799 top y1l=vround .92asc_height+oo; bot y9r=vround .1asc_height-d-oo;
1800 filldraw stroke term.e(2',1,right,.9,4); % upper arc and terminal
1801 filldraw stroke term.e(8,9,left,.9,4); % lower arc and terminal
1802 fi
1803 filldraw stroke z2e{left}...z3e{down}...z4e{3(x5-x3),y5-y3}
1804 ...z5e{down}...{left}z6'e; % upper stroke
1805 filldraw stroke z4'e{left}...z5'e{down}...z6e{3(x7-x5'),y7-y5'}
1806 ...z7e{down}...{left}z8e; % upper stroke
1807 penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar;
1808
1809 ecchar "Umlaut (double dot) accent"; % from accent (cm)
1810 numeric dot_diam#,dot_diam;
1811 dot_diam#=max(dot_size#,cap_curve#);
1812 beginchar(oct"250",9u#,min(asc_height#,10/7x_height#+.5dot_diam#),0);
1813 dot_diam=max(tiny.breadth,hround(max(dot_size,cap_curve)-2stem_corr));
1814 italcorr h#*slant+.5dot_diam#-2.25u#;
1815 adjust_fit(0,0);
1816 pickup tiny.nib; pos1(dot_diam,0); pos2(dot_diam,90);
1817 x1=x2=2.75u; top y2r=h+1;
1818 if bot y2l<x_height+o+slab: y2l:=min(y2r-eps,x_height+o+slab+.5tiny); fi
1819 y1=.5[y2l,y2r]; dot(1,2); % left dot
1820 pos3(dot_diam,0); penpos4(y2r-y2l,90); y3=y4=y1; x3=x4=w-x1;
1821 dot(3,4); % right dot
1822 penlabels(1,2,3,4); endchar;
1823
1824 ecchar"Copyright";
1825 beginchar(oct"251",20u#,body_height#,max(paren_depth#,desc_depth#));
1826 autorounded;
1827 adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib;
1828 if .5w <> good.x .5w: change_width; fi
1829 lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o;
1830 circle_points; draw_circle; % circle
1831 labels(1,2,3,4,5,6,7,8);
1832 clearxy; autorounding:=0;
1833 numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-6u);
1834 rr=hround(.5w+5u);
1835 if serifs:
1836 pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90);
1837 pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360);
1838 rt x1r=rt x5r=hround(rr-u); lft x3r=hround(ll+u); x2=x4=.55[x3,x1];
1839 top y2r=hh+o; bot y4r=-o; y3=.5[y2,y4];
1840 bot y1=min(vround max(.6hh,.7x_height-.5vair),bot y2l-eps);
1841 y5=max(good.y .95(hh-y1),y4l+eps);
1842 (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u);
1843 (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u);
1844 filldraw stroke z1e{x2-x1,10(y2-y1)}
1845 ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc
1846 pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=hh+o;
1847 x1r-x1'=2cap_curve-fine; y1'=y1;
1848 path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left};
1849 numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1'));
1850 filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb
1851 else:
1852 pickup fine.nib; pos1(1.2flare,80); pos2(slab,90);
1853 pos3(cap_curve,180); pos4(slab,270); pos5(flare,275);
1854 rt x1r=hround(rr-1.1u); x2=x4=.5w+1.25u;
1855 lft x3r=ll+hround max(u,2u-.5cap_curve); rt x5r=hround(rr-.9u);
1856 top y1r=vround .95hh+o; top y2r=hh+o; y3=.5hh;
1857 bot y4r=-o; bot y5r=vround .08hh-o; y5l:=good.y y5l; x5l:=good.x x5l;
1858 filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3)
1859 & super_arc.e(3,4) & term.e(4,5,right,.8,4); fi % arc and terminals
1860 penlabels(1,1',2,3,4,5,6); endchar;
1861
1862 ecchar"Copyleft";
1863 beginchar(oct"253",20u#,body_height#,max(paren_depth#,desc_depth#));
1864 autorounded;
1865 adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib;
1866 if .5w <> good.x .5w: change_width; fi
1867 lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o;
1868 circle_points; draw_circle; % circle
1869 labels(1,2,3,4,5,6,7,8);
1870 clearxy; autorounding:=0;
1871 numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-5u);
1872 rr=hround(.5w+6u);
1873 if serifs:
1874 pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,-90);
1875 pos3(cap_curve,-180); pos4(cap_band,-270); pos5(hair,-360);
1876 lft x1l=lft x5l=hround(ll+u); rt x3l=hround(rr-u); x2=x4=.55[x3,x1];
1877 top y2l=hh+o; bot y4l=-o; y3=.5[y2,y4];
1878 bot y1=min(vround max(.6hh,.7x_height-.5vair),bot y2r-eps);
1879 y5=max(good.y .95(hh-y1),y4r+eps);
1880 (x2r',y2r)=whatever[z2l,z1r]; x2r:=min(x2r',x2r+.5u);
1881 (x4r',y4r)=whatever[z4l,z5r]; x4r:=min(x4r',x4r+.5u);
1882 filldraw stroke z1e{x2-x1,10(y2-y1)}
1883 ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc
1884 pos6(.3[fine.breadth,cap_hair],0); x6l=x1l; top y6=hh+o;
1885 x1l-x1'=2cap_curve-fine; y1'=y1;
1886 path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{right};
1887 numeric t; t=xpart(upper_arc intersectiontimes (z6r--z1'));
1888 filldraw z1l--z6l--z6r--subpath(t,0) of upper_arc--cycle; % barb
1889 else:
1890 pickup fine.nib; pos1(1.2flare,-80); pos2(slab,-90);
1891 pos3(cap_curve,-180); pos4(slab,-270); pos5(flare,-275);
1892 lft x1l=hround(ll+1.1u); x2=x4=.5w-1.25u;
1893 rt x3l=rr-hround max(u,2u-.5cap_curve); lft x5l=hround(ll+.9u);
1894 top y1l=vround .95hh+o; top y2l=hh+o; y3=.5hh;
1895 bot y4l=-o; bot y5l=vround .08hh-o; y5r:=good.y y5r; x5r:=good.x x5r;
1896 filldraw stroke rterm.e(2,1,left,.9,4) & super_arc.e(2,3)
1897 & super_arc.e(3,4) & term.e(4,5,left,.8,4); fi % arc and terminals
1898 penlabels(1,1',2,3,4,5,6); endchar;
1899
1900 ecchar "Logical not sign"; % from sym
1901 beginchar(oct"254",12u#,x_height#,0);
1902 italcorr x_height#*slant-.5u#;
1903 adjust_fit(0,0); pickup rule.nib;
1904 lft x1=hround u-eps; x2=x3=w-x1;
1905 y1=y2=good.y .5[bar_height,h]; y2-y3=1.2(h-bar_height);
1906 draw z1--z2--z3; % bar and stem
1907 labels(1,2,3); endchar;
1908
1909 ecchar"Circled P"; % Sound recording copyright sign % jk
1910 beginchar(oct"255",20u#,body_height#,max(paren_depth#,desc_depth#));
1911 autorounded;
1912 adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib;
1913 if .5w <> good.x .5w: change_width; fi
1914 lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o;
1915 circle_points; draw_circle; % circle
1916 labels(1,2,3,4,5,6,7,8);
1917 clearxy; autorounding:=0;
1918 numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-6u);
1919 rr=hround(.5w+6u);
1920 pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0);
1921 pos0(cap_stem',0); pos0'(cap_stem,0);
1922 lft x1l=ll+hround max(2u,3u-.5cap_stem'); top y1=hh; bot y2=0;
1923 x1l=x2l=x0l=x0'l; y0=y0'=y7;
1924 penpos3(cap_band,90); penpos4(cap_band,90);
1925 penpos5(cap_curve if hefty:-3stem_corr fi,0);
1926 penpos6(.5[vair,cap_band],-90); penpos7(.5[vair,cap_band],-90);
1927 z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7;
1928 x7=x2; y7l=vround(.5hh); x4=x6=.5w+.75u; x5r=hround(rr-u);
1929 x4l:=x6l:=x4-.25cap_curve;
1930 filldraw stroke z1e--z2e; % stem
1931 fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe
1932 if serifs:
1933 nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif
1934 dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower serif
1935 fi
1936 penlabels(0,1,2,3,4,5,6); endchar;
1937
1938 ecchar"Registered"; % jk
1939 beginchar(oct"256",20u#,body_height#,max(paren_depth#,desc_depth#));
1940 autorounded;
1941 adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib;
1942 if .5w <> good.x .5w: change_width; fi
1943 lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o;
1944 circle_points; draw_circle; % circle
1945 labels(1,2,3,4,5,6,7,8);
1946 clearxy; autorounding:=0;
1947 numeric hh,ll,rr; hh=vround .7cap_height; ll=hround(.5w-6u);
1948 rr=hround(.5w+6u);
1949 pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0);
1950 lft x1l=lft x2l=ll+hround max(2u,3u-.5cap_stem'); top y1=hh; bot y2=0;
1951 filldraw stroke z1e--z2e; % stem
1952 penpos3(cap_band,90); penpos4(cap_band,90);
1953 penpos5(cap_curve if hefty:-3stem_corr fi,0);
1954 penpos6(vair,-90); penpos7(vair,-90);
1955 z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7;
1956 x7=x2; y7l=vround(.5hh+.5vair); x4=x6;
1957 if serifs: x4=.5w-.5u; x5r=hround(rr-2.25u);
1958 else: x4=.5w+.5u; x5r=hround(rr-u); fi
1959 x4l:=x6l:=x4-.125cap_curve;
1960 fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe
1961 if serifs: pos6'(vair,-90); pos0(cap_stem,180);
1962 pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0);
1963 z6'=z6; lft x0r=lft x8r=hround(x5-2/3u-.5cap_curve);
1964 y8=1/3[y2,y7]; y0=3/5[y2,y7]; x9=.5[x8l,x10r];
1965 bot y9r=-o; rt x10r=hround(rr-.25u); y10=1/3[y2,y7];
1966 filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up}; % tail
1967 nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif
1968 dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower serif
1969 else: penpos8(cap_stem-2stem_corr,0); penpos9(cap_stem,0);
1970 x8=x6+.5u; y8=y6; x9r=hround(rr-.5u); y9=0;
1971 fill z8l--diag_end(8l,9l,.5,1,9r,8r)--z8r--cycle; fi % tail
1972 penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar;
1973
1974 ecchar"High bar (Macron)"; % jk
1975 beginchar(oct"257",14u#,min(asc_height#,2x_height#),0);
1976 adjust_fit(0,0); pickup rule.nib;
1977 lft x1=hround 1.5u-eps; x2=w-x1; top y1=top y2=h;
1978 draw z1--z2; % bar
1979 labels(1,2); endchar;
1980
1981 ecchar "Plus-or-minus sign"; % from sym
1982 beginarithchar(oct"261"); pickup rule.nib;
1983 numeric shiftup; shiftup=vround 1.5u;
1984 x1=x2=.5w; lft x3=lft x5=hround u-eps; x4=x6=w-x3;
1985 .5[y1,y2]=y3=y4=math_axis+shiftup; top y1=h+shiftup; y5=y6=y2;
1986 draw z1--z2; % stem
1987 draw z3--z4; % plus bar
1988 draw z5--z6; % minus bar
1989 labels(1,2,3,4,5,6); endchar;
1990
1991 ecchar"Degree sign"; % Yannis, Unicode Computer Modern
1992 beginchar(oct"260",4u#,cap_height#,0);
1993 adjust_fit(if monospace: 1.5u#,1.5u# else: u#,u# fi);
1994 pickup rule.nib; autorounded;
1995 if .5w <> good.x .5w: change_width; fi
1996 lft x6=0; x2=w-x6; top y8=h; y8-y2=x2-x8;
1997 circle_points; draw_circle; % circle
1998 labels(1,2,3,4,5,6,7,8); endchar;
1999
2000 ecchar"Tick mark"; % from accent (cmfonts, acute accent)
2001 beginchar(oct"264",9u#,min(asc_height#,2x_height#),0);
2002 italcorr h#*slant-if serifs: 1.5 fi u#;
2003 adjust_fit(0,0);
2004 if serifs: pickup crisp.nib; x1+.5stem=hround(w-2u); x2=2/3[x1,w-x1];
2005 y1+.5stem=h+eps; y2=max(2/3[h,x_height],x_height+o+hair);
2006 numeric theta; theta=angle(z2-z1)+90;
2007 pos1(stem,theta); pos2(hair,theta);
2008 filldraw circ_stroke z1e--z2e; % diagonal
2009 else: pickup fine.nib; pos1(stem,0); pos2(vair,0);
2010 rt x1r=hround(w-1.5u); lft x2l=hround(.5w-.25u-.5vair);
2011 top y1=h; bot y2=vround 2/3[h,x_height];
2012 filldraw stroke z1e--z2e; fi % diagonal
2013 penlabels(1,2); endchar;
2014
2015 iff not variant_g:
2016 ecchar"Micro sign"; % jk, based on cm `u'
2017 beginchar(oct"265",10u#,x_height#,desc_depth#);
2018 italcorr x_height#*slant-serif_fit#+.5stem#-2u#;
2019 adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#);
2020 numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi;
2021 if light_vair<fine.breadth: light_vair:=fine.breadth; fi
2022 pickup tiny.nib; pos1(stem,0); pos2(stem,0); pos7(stem,0);
2023 pos3(stem,0); pos4(stem',0);
2024 lft x1l=hround(2.5u-.5stem); x1=x2=x7; x3=w-x1; x3r=x4r;
2025 if serifs: top y1=h+min(oo,serif_drop); bot y4=-min(oo,serif_drop);
2026 else: top y1=h; bot y4=0; fi
2027 pos0(stem,0); pos0'(stem',0);
2028 x0=x3; x0'=x4; y0=y0'; bot y7=-d;
2029 penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height;
2030 penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0);
2031 y6=y0=2/3bar_height;
2032 filldraw stroke z1e--z7e; % left stem
2033 filldraw stroke z3e..z0e--z0'e..z4e; % right stem
2034 pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l;
2035 (x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]);
2036 filldraw stroke {{interim superness:=hein_super;
2037 pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc
2038 if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif
2039 sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif
2040 sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); % lower right serif
2041 pickup crisp.nib;
2042 dish_serif(7,1,d,1/3,jut,e,1/3,jut); fi % lower left serif
2043 penlabels(1,2,3,4,5,7); labels(6); endchar;
2044
2045 iff variant_g: % This triggers italics
2046 ecchar "Micro sign"; % from greekl (cm)
2047 beginchar(oct"265",9u#,x_height#,desc_depth#);
2048 italcorr 1/3x_height#*slant+.5hair#+.5u#;
2049 adjust_fit(0,0); pickup fine.nib; interim superness:=more_super;
2050 pos1(stem,-180); pos2(stem,-180); x1=x2=x3; lft x1r=hround(1.5u-.5stem);
2051 y1+.5stem=h+oo; y2-.5stem=-d-o;
2052 filldraw z1r---z2r..z2l---z1l..cycle; % left stem
2053 pos3(stem,-180); pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5];
2054 pos6(stem,0); rt x6r=hround(w-2.5u+.5stem);
2055 x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook
2056 y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h;
2057 filldraw stroke super_arc.e(3,4)...{up}z5e; % left stem and arc
2058 filldraw circ_stroke z6e--z7e; % right stem
2059 math_fit(desc_depth#*slant+.5stem#-u#,ic#);
2060 penlabels(1,2,3,4,5,6,7,8,9); endchar;
2061
2062 ecchar "Paragraph mark"; % from mathsy
2063 beginchar(oct"266",11u#,asc_height#,desc_depth#);
2064 adjust_fit(0,0); pickup rule.nib; autorounded;
2065 top y1=h; bot y6=-d-eps; y4=y7=y9=y1;
2066 y8=y6; y3=y5=good.y .5[y1,y6];
2067 x7-x4=ceiling(rule_thickness+1.25u);
2068 lft x2=hround u; y2=.5[y1,y3]; x4=x5=x6; rt x9=hround(w-.5u);
2069 x7=x8=good.x(x9-1.5u); x1=x3=min(.5w,x4);
2070 filldraw z4..z1{left}...z2{down}...{right}z5--cycle; % filled bowl
2071 draw z9--z4--z6; % left stem and upper serif
2072 draw z7--z8; % right stem
2073 if serifs:
2074 x11=x9; x10-x8=x4-x9;
2075 bot y10=-d-eps; y10=y11;
2076 draw z10--z11; % lower serif
2077 fi
2078 labels(1,2,3,4,5,6,7,8,9,10,11); endchar;
2079
2080 ecchar "Centered dot"; % reengineered for catalan l.l
2081 beginchar(oct"267",(11u#-width_adj#-2max(2u#+.5cap_stem#,3u#)),
2082 x_height#,0);
2083 adjust_fit(0,0);
2084 pickup fine.nib;
2085 pos1(udot_diam,0); pos2(udot_diam,90);
2086 lft x1l=hround(.5w-.5udot_diam); y1+.5udot_diam=vround(bar_height+.5udot_diam);
2087 z1=z2; dot(1,2); % dot
2088 penlabels(1,2); endchar;
2089
2090 ecchar "Reference mark"; % From Haralambous/Plaice
2091 beginchar(oct"270",1/3[x_height#,asc_height#],
2092 1/3[x_height#,asc_height#],0);
2093 italcorr .5x_height#*slant-.5u#;
2094 adjust_fit(if monospace:
2095 -1/3[x_height#,asc_height#] + mono_charwd#,
2096 -1/3[x_height#,asc_height#] + mono_charwd#
2097 else: u#,u# fi);
2098 pickup rule.nib;
2099 Dot_size:=min(dot_size,max(1,.25h-rule_thickness));
2100 lft x1=0; top y1=h;
2101 x2=x3=w-x1; x4=x1; .5[y1,y2]=.5[y3,y4]=.5h; y2=y4;
2102 draw z1--z2; draw z3--z4; % diagonals
2103 top z1'=.5[top z1,top z3]-(0,.5Dot_size);
2104 rt z3'=.5[rt z3,rt z2]-(.5Dot_size,0);
2105 bot z2'=.5[bot z2,bot z4]+(0,.5Dot_size);
2106 lft z4'=.5[lft z4,lft z1]+(.5Dot_size,0);
2107 z1'=z1''; z2'=z2''; z3'=z3''; z4'=z4'';
2108 penpos1'(Dot_size,0);
2109 penpos1''(Dot_size,90); dot(1',1'');
2110 penpos2'(Dot_size,0);
2111 penpos2''(Dot_size,90); dot(2',2'');
2112 penpos3'(Dot_size,0);
2113 penpos3''(Dot_size,90); dot(3',3'');
2114 penpos4'(Dot_size,0);
2115 penpos4''(Dot_size,90); dot(4',4'');
2116 labels(1,2,3,4,1',2',3',4',1'',2'',3'',4'',1'r,1'l,1''r,1''l);
2117 endchar;
2118
2119 ecchar"Root sign"; % textsurd, from wnri
2120 beginchar(oct"273",8.5u#,body_height#,paren_depth#-rule_thickness#);
2121 italcorr body_height#*slant;
2122 adjust_fit(0,-letter_fit#);
2123 pickup rule.nib;
2124 w':=7u;
2125 x1=good.x (1/9w'+2.5u); x2=good.x (.65w'+2.5u);
2126 bot y1=-.5d; bot y2=asc_height;
2127 draw z1--z2; % diagonal
2128 pickup crisp.nib;
2129 pos3(if hefty: else: .7 fi max(curve,rule_thickness),0);
2130 x3l=1.5[x2,x1]; y3=.5[y1,y2];
2131 pos4(rule_thickness,0); x4=x1; bot y4=-.5d;
2132 pos5(vair,-45); x5l=good.x(x3l-u); z5l=whatever[z3r,z2];
2133 z6=z5r+whatever*(z2-z3r)=whatever[z3l,z4l];
2134 z7=whatever[z1,z2]=z3r+whatever*(z4l-z3l);
2135 filldraw z5r--z6--z4l--z4--z7--z3r--z5l--cycle; % left diagonal and serif
2136 x8=x2+2u; y8=y2;
2137 pickup rule.nib;
2138 draw z2--z8;
2139 penlabels(1,2,3,4,5,6,7,8);
2140 endchar;
2141
2142 ecchar "Euro currency sign"; % jk
2143 beginchar(oct"277",14u#,cap_height#,0);
2144 italcorr cap_height#*slant-beak_jut#-.5u#;
2145 adjust_fit(0,0);
2146 pickup fine.nib;
2147 pos2(slab,90); pos1(hair,0);
2148 top y2r=h; x2=hround 9u; rt x1r=hround(w-u); y1=good.y(y2l-beak)-eps;
2149 arm(2,1,a,beak_darkness,beak_jut); % upper arm and beak
2150 pos3(cap_curve,180); pos4(slab,270); pos5(hair,0);
2151 bot y4r=0; x4=x2; rt x5r=hround(w-u); y5=good.y(y4l+7/6beak)+eps;
2152 arm(4,5,b,beak_darkness,1.5beak_jut); % lower arm and beak
2153 lft x3r =hround 2.5u; y3=.52h;
2154 filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % arc
2155 pos6(slab,-90); pos7(hair,0); pos8(slab,90); pos9(hair,0);
2156 bot y6r=top y8r+if hefty: 1.333 else: 2 fi vair
2157 =vround(y3+if hefty: .667 fi vair+eps);
2158 y7=good.y(y6l+beak)+eps; y9=good.y(y8l-beak)-eps;
2159 x6=x8=hround u; rt x7r=rt x9r=hround 10u;
2160 arm(6,7,c,beak_darkness,0); arm(8,9,d,beak_darkness,0); % middle arms
2161 penlabels(1,2,3,4,5,6,7,8,9); endchar;
2162
2163 ecchar "Times operator"; % from mathsy
2164 beginarithchar(oct"326"); pickup rule.nib;
2165 x1=good.x(1/sqrt2)[.5w,rt u]; y1=good.y(1/sqrt2)[math_axis,bot h];
2166 x2=x3=w-x1; x4=x1; .5[y1,y2]=.5[y3,y4]=math_axis; y2=y4;
2167 draw z1--z2; draw z3--z4; % diagonals
2168 labels(1,2,3,4); endchar;
2169
2170 ecchar "Elementary division operator"; % from mathsy
2171 beginarithchar(oct"366"); pickup rule.nib;
2172 numeric del; del=dot_size-currentbreadth;
2173 x3-.5del=good.x(.5w-.5del); center_on(x3);
2174 y3+.5del=good.y(math_axis+math_spread[.5x_height,.6x_height]+.5del);
2175 lft x1=hround u-eps; x2=w-x1; y1=y2=math_axis;
2176 draw z1--z2; % bar
2177 pos3(dot_size,0); pos4(dot_size,90); z3=z4;
2178 pos5(dot_size,0); pos6(dot_size,90); z5=z6; x5=x3; .5[y3,y5]=math_axis;
2179 dot(3,4); dot(5,6); % dots
2180 penlabels(1,2,3,4,5,6); endchar;
2181
2182
2183 endinput;