| 1 |
% |
| 2 |
% These characters should rather be in a character font than in a |
| 3 |
% symbol font |
| 4 |
% |
| 5 |
|
| 6 |
cmchar "Cent sign"; |
| 7 |
beginchar(hex"67",9u#,asc_height#,desc_depth#); |
| 8 |
italcorr x_height#*slant-.2u#; |
| 9 |
adjust_fit(0,0); |
| 10 |
pickup fine.nib; pos2(vair',90); pos4(vair',270); |
| 11 |
x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo; |
| 12 |
pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height; |
| 13 |
if serifs: pos1(hair,0); pos0(flare,0); |
| 14 |
y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,x_height]-.5flare); |
| 15 |
rt x1r=hround(w-.7u); bulb(2,1,0); % bulb |
| 16 |
pos5(hair,0); rt x5r=hround(w-.5u); |
| 17 |
y5=max(good.y(.5bar_height-.9),y4l+vair'); |
| 18 |
(x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); |
| 19 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 20 |
& pulled_super_arc.e(3,4)(.5superpull) |
| 21 |
..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal |
| 22 |
else: pos1(4/7[vair',flare],80); |
| 23 |
rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; |
| 24 |
filldraw stroke term.e(2,1,right,.8,4); % upper terminal |
| 25 |
pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); |
| 26 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 27 |
forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; |
| 28 |
if angle direction 1 of p.e>75: |
| 29 |
p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor |
| 30 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 31 |
& pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal |
| 32 |
pickup crisp.nib; |
| 33 |
x6=x7=x8=x9=x2; y7=y2; y8=y4; bot y9=-d; y6-y7 = y8-y9; |
| 34 |
pos6(bar,0); pos7(bar,0); |
| 35 |
pos8(bar,0); pos9(bar,0); |
| 36 |
filldraw stroke z6e--z7e; % upper bar |
| 37 |
filldraw stroke z8e--z9e; % lower bar |
| 38 |
penlabels(0,1,2,3,4,5,6,7,8,9); endchar; |
| 39 |
|
| 40 |
cmchar "Upside down e"; |
| 41 |
beginchar(hex"55",7.25u#+max(.75u#,.5curve#),x_height#,0); |
| 42 |
italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); |
| 43 |
adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); |
| 44 |
numeric left_curve,right_curve; |
| 45 |
left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; |
| 46 |
if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi |
| 47 |
if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi |
| 48 |
pickup tiny.nib; pos1(right_curve,180); |
| 49 |
pos2(vair,270); pos3(left_curve,0); |
| 50 |
y1=good.y (h-bar_height); bot y2r=vround (-1.5oo); y0l=top y1; |
| 51 |
lft x1r=hround max(.5u,u-.5right_curve); |
| 52 |
rt x3r=hround min(w-.5u,w-(1.25u-.5left_curve)); x2=.5w-.25u; |
| 53 |
{{interim superness:=more_super; |
| 54 |
filldraw stroke super_arc.e(2,1)}}; % left bowl |
| 55 |
y3=.5[y2,y4]; top y4r=h+oo; x4=x2-.25u; |
| 56 |
if serifs: pos4(vair',90); pos5(hair,180); |
| 57 |
y5=min(good.y(h-(.5bar_height-.9)),y4l-vair); x5r=x1r; |
| 58 |
(x,y4l)=whatever[z4r,z5]; x4l:=max(x,x4l-.5u); |
| 59 |
filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) |
| 60 |
...{x5-x4,5(y5-y4)}z5e; % right bowl, arc, and terminal |
| 61 |
else: pos4(vair,90); |
| 62 |
filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % right bowl and arc |
| 63 |
pickup fine.nib; pos4'(vair,90); z4=z4'; |
| 64 |
pos5(.5[vair,flare],95); lft x5r=hround(.6u); |
| 65 |
y5r=good.y(y5r-1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 66 |
filldraw stroke term.e(4',5,left,1,4); fi % terminal |
| 67 |
path testpath; testpath=super_arc.l(2,3) & super_arc.l(3,4); |
| 68 |
y1'r=y0r=y0l-.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; |
| 69 |
forsuffixes $=l,r: |
| 70 |
x0$=xpart(((2h,y0$)--(x1,y0$)) intersectionpoint testpath); endfor % old |
| 71 |
fill stroke z0e--z1'e; % crossbar |
| 72 |
penlabels(0,1,2,3,4,5); endchar; |
| 73 |
|
| 74 |
cmchar "Phonetic open o"; |
| 75 |
beginchar(hex"6C",8.5u#,x_height#,0); |
| 76 |
italcorr x_height#*slant-.2u#; |
| 77 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 78 |
pickup fine.nib; pos2(vair',270); pos4(vair',90); |
| 79 |
x2=x4=.5w; top y4r=vround(h+oo); bot y2r=-1.5oo; |
| 80 |
pos3(curve,0); rt x3l=hround (w-max(1.6u,2.35u-.5curve)); y3=.5h; |
| 81 |
if serifs: pos1(hair,180); pos0(flare,180); |
| 82 |
y1=h-.70[bar_height,h]+.5flare; |
| 83 |
lft x1r=hround(0.5u); bulb(2,1,0); % bulb |
| 84 |
pos5(hair,180); lft x5r=hround(0.7u); |
| 85 |
y5=min(good.y(h+oo-.45bar_height+.9),y4l-vair'); |
| 86 |
(x,y4l)=whatever[z4l,z5r]; x4l:=max(x,x4l-.5u); |
| 87 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 88 |
& pulled_super_arc.e(3,4)(.5superpull) |
| 89 |
..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and upper terminal |
| 90 |
else: pos1(4/7[vair',flare],260); |
| 91 |
lft x1r=hround(.6u); bot y1r=vround (.82[h-bar_height,bot y2r]); |
| 92 |
filldraw stroke term.e(2,1,left,.8,4); % lower terminal |
| 93 |
pos5(.6[vair',flare],95); lft x5r=hround(1.5u); |
| 94 |
y5r=good.y(y5l+h-1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 95 |
forsuffixes e=l,r: path p.e; p.e=z4e{left}..tension .9 and 1..z5e; |
| 96 |
if angle direction 1 of p.e<255: |
| 97 |
p.e:=z4e{left}..tension atleast.9 and 1..{dir 255}z5e; fi endfor |
| 98 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 99 |
& pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and upper terminal |
| 100 |
penlabels(0,1,2,3,4,5); endchar; |
| 101 |
|
| 102 |
cmchar "The small islandic thorn"; |
| 103 |
beginchar(hex"69",10u#+serif_fit#,asc_height#,desc_depth#); |
| 104 |
italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); |
| 105 |
adjust_fit(serif_fit#,0); |
| 106 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 107 |
pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; |
| 108 |
lft x1l=hround(2.5u-.5stem'); top y1=h if serifs: +min(oo,serif_drop) fi; |
| 109 |
numeric edge; edge=rt x2r; |
| 110 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); |
| 111 |
pos4(vair',90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); |
| 112 |
rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l), 1/3[rt x2,edge]); |
| 113 |
y3=1/8[bar_height,x_height]; |
| 114 |
x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; |
| 115 |
rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; |
| 116 |
x6l=x4l-.2u; bot y6r=-oo; |
| 117 |
x7=x3; y7=min(y3,y6+y4-y3+.6vair); |
| 118 |
(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); |
| 119 |
(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x5r,x6]); |
| 120 |
filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5) |
| 121 |
&super_arc.e(5,6)&z6e{left}...{up}z7e; % bowl |
| 122 |
y0=ypart(((edge,x_height)--(edge,0)) intersectionpoint |
| 123 |
(z3l{up}...{right}z4l)); |
| 124 |
pickup tiny.nib; bot y2=-d; |
| 125 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 126 |
pickup crisp.nib; pos8(hair,0); pos7'(stem,0); |
| 127 |
z7'=z2; x8l=x7'l; bot y8=0; |
| 128 |
filldraw stroke z7'e--z8e; % point |
| 129 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif |
| 130 |
dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif |
| 131 |
penlabels(0,1,2,3,4,5,6,7,8); endchar; |
| 132 |
|
| 133 |
cmchar "Uppercase Thorn"; |
| 134 |
beginchar(hex"6A",12u#,cap_height#,0); |
| 135 |
italcorr .5cap_height#*slant-.5u#; |
| 136 |
adjust_fit(cap_serif_fit#,0); |
| 137 |
pickup tiny.nib; penpos1(cap_stem'-tiny,0); penpos2(cap_stem-tiny,0); |
| 138 |
pos0(cap_stem',0); pos0'(cap_stem,0); |
| 139 |
lft x1l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0; |
| 140 |
x1l=x2l=x0l=x0'l; y0=y0'=y7; |
| 141 |
penpos3(cap_band,90); penpos4(cap_band,90); |
| 142 |
penpos5(cap_curve if hefty:-3stem_corr fi,0); |
| 143 |
penpos6(.5[vair,cap_band],-90); penpos7(.5[vair,cap_band],-90); |
| 144 |
y4=y3; y5=.5[y4l,y6l]; y6=y7; |
| 145 |
x3=x7=x2; x4=x6=.5w+.75u; x5r=hround(w-u); |
| 146 |
y3r=vround(.80h); |
| 147 |
y7r=vround(.20h); |
| 148 |
x4l:=x6l:=x4-.25cap_curve; |
| 149 |
filldraw stroke z1e--z0e--z0'e--z2e; % stem |
| 150 |
fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe |
| 151 |
if serifs: dish_serif(1,0,a,1/3,cap_jut,b,1/3,cap_jut); % upper serif |
| 152 |
dish_serif(2,0',c,1/3,cap_jut,d,1/3,cap_jut); fi % lower serif |
| 153 |
math_fit(0,ic#-2.5u#); penlabels(0,1,2,3,4,5,6,7); endchar; |
| 154 |
|
| 155 |
cmchar "Islandic edh"; |
| 156 |
beginchar(hex"6B",9u#,asc_height#,0); |
| 157 |
italcorr .8x_height#*slant; |
| 158 |
adjust_fit(0,0); |
| 159 |
penpos1(vair,90); penpos3(vair',-90); |
| 160 |
penpos1'(hair,0); |
| 161 |
penpos2(curve,180); penpos4(curve,0); penpos4'(curve,0); |
| 162 |
penpos5(curve,0); penpos6(curve,0); |
| 163 |
x2r=hround max(.5u,1.25u-.5curve); |
| 164 |
x4r=w-x2r; x1=x3=.5w; y1r=x_height; y3r=-oo; |
| 165 |
y2=y4=.5(x_height-oo)-vair_corr; y2l:=y4l:=.5x_height; |
| 166 |
y4'=y4+1.5u; x4'=x4; |
| 167 |
top y6 = h; |
| 168 |
x6= if monospace: 2/3 else: 1/3 fi [x2,x5]; |
| 169 |
y5=0.66[y4',y6]; |
| 170 |
x5=0.60[x4',x6]; |
| 171 |
z1' = z4'; |
| 172 |
penstroke pulled_arc.e(1',1) |
| 173 |
& pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 174 |
& pulled_arc.e(3,4)..z4'e..z5e---z6e; % bowl and stem |
| 175 |
numeric newstem; newstem = .5[hair,.7stem]; |
| 176 |
penpos7(newstem,-45); penpos8(newstem,-45); |
| 177 |
top y8l = h; |
| 178 |
bot y7r = .12[top y1r,h]; |
| 179 |
(x8-x7)/(y6-y5) = (y8-y7)/(x5-x6); |
| 180 |
z=.5[z7,z8]; % make bar symmetric |
| 181 |
(y6-y)/(y6-y5) = (x6-x)/(x6-x5); |
| 182 |
penstroke z7e--z8e; % bar |
| 183 |
penlabels(1,2,3,4,5,6,7,8); endchar; |
| 184 |
|
| 185 |
cmchar "The letter long-s"; |
| 186 |
beginchar(hex"54",5.5u#,asc_height#,0); |
| 187 |
italcorr asc_height#*slant+if serifs:flare#-.25u# else: 1.25u# fi; |
| 188 |
adjust_fit(stem_shift#,if monospace: .5u# else:-stem_shift# fi); |
| 189 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 190 |
pickup fine.nib; numeric bulb_diam; |
| 191 |
if serifs: bulb_diam=hround .8[stem,flare]; |
| 192 |
pos2(bulb_diam,0); y2+.5bulb_diam=.9[x_height,h+oo]; |
| 193 |
if monospace: rt x2r=hround(w-.5u)+1 else: lft x2l=hround(w-.75u+.5) fi; |
| 194 |
else: pos2(5/7[vair,flare],90); top y2r=h; |
| 195 |
rt x2=hround(if monospace:w-.5u else:w+.75u fi); fi |
| 196 |
f_stroke(1,2,a,b,c,jut,if not monospace:1.25fi\\ jut); % stem, terminal, serif |
| 197 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .7u; |
| 198 |
pos3(bar,90); pos4(bar,90); |
| 199 |
rt x4=hround(2.5u); |
| 200 |
filldraw stroke z3e--z4e; % bar |
| 201 |
penlabels(1,2,3,4); endchar; |
| 202 |
|
| 203 |
cmchar "Permille sign"; |
| 204 |
beginchar(hex"68",9u#+max(9u#,3fudge*(hair#+stem#)), |
| 205 |
body_height#,body_height#-asc_height#); |
| 206 |
italcorr if hefty: .4asc_height#*slant-.5u# else: h#*slant-u# fi; |
| 207 |
adjust_fit(0,0); pickup fine.nib; |
| 208 |
numeric left_curve,right_curve; |
| 209 |
left_curve=hround 5/6[fudged.hair,fudged.stem]; |
| 210 |
right_curve=max(fine.breadth,hround(fudged.hair if hefty:-2stem_corr fi)); |
| 211 |
pos1(vair,90); pos2(left_curve,180); pos3(vair,270); pos4(right_curve,360); |
| 212 |
top y1r=h; lft x2r=hround u; rt x4r=hround(.35w-u); |
| 213 |
bot y3r=floor(if monospace: .7 else: .5 fi\\ asc_height); |
| 214 |
x1=x3=.5[x2,x4]; y2=y4=.5[y1,y3]; |
| 215 |
filldraw stroke pulled_super_arc.e(1,2)(superpull) |
| 216 |
& pulled_super_arc.e(2,3)(superpull); % left half of upper bowl |
| 217 |
filldraw stroke super_arc.e(3,4) & super_arc.e(4,1); % right half of upper bowl |
| 218 |
pos5(vair,90); pos6(left_curve,180); pos7(vair,270); |
| 219 |
pos8(right_curve,360); |
| 220 |
bot y7r=-d; rt x8r=hround(.70w-u); x6-x8 = x2-x4; |
| 221 |
top y5r=vround(if monospace: .3 else: .5 fi\\ asc_height); |
| 222 |
x5=x7=.5[x6,x8]; y6=y8=.5[y5,y7]; |
| 223 |
filldraw stroke pulled_super_arc.e(5,6)(superpull) |
| 224 |
& pulled_super_arc.e(6,7)(superpull); % left half of lower bowl |
| 225 |
filldraw stroke super_arc.e(7,8) & super_arc.e(8,5); % right half of lower bowl |
| 226 |
pos5'(vair,90); pos6'(left_curve,180); pos7'(vair,270); |
| 227 |
pos8'(right_curve,360); |
| 228 |
bot y7'r=-d; rt x8'r=hround(w-u); x6'-x8' = x6-x8; |
| 229 |
top y5'r=vround(if monospace: .3 else: .5 fi\\ asc_height); |
| 230 |
x5'=x7'=.5[x6',x8']; y6'=y8'=.5[y5',y7']; |
| 231 |
filldraw stroke pulled_super_arc.e(5',6')(superpull) |
| 232 |
& pulled_super_arc.e(6',7')(superpull); % left half of lower bowl |
| 233 |
filldraw stroke super_arc.e(7',8') & super_arc.e(8',5'); % right half of lower bowl |
| 234 |
pickup rule.nib; top y9=h; bot y10=-d; |
| 235 |
if hefty: x9=good.x(x5-eps); x10=good.x(x1+eps); |
| 236 |
draw z9--z10; % diagonal |
| 237 |
else: rt x9=hround(.67w-2.5u); lft x10=hround 2.5u; draw z9--z10; % diagonal |
| 238 |
pickup fine.nib; pos9(rule_thickness,angle(z9-z10)+90); |
| 239 |
pos11(vair,angle(z1r-z4r)-90); pos12(vair,angle(z9-z10)+90); |
| 240 |
path p; p=super_arc.r(1,4); z11r=point 2/3 of p; z12r=z9r; |
| 241 |
filldraw stroke z11e{direction 2/3 of p}...{z9-z10}z12e; fi % link |
| 242 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; |
| 243 |
|
| 244 |
cmchar "German Paragraph sign, similar to section"; |
| 245 |
beginchar(hex"4D",8.5u#+max(1.5u#,stem#),asc_height#,1/2desc_depth#); |
| 246 |
italcorr cap_height#*slant-u#; |
| 247 |
adjust_fit(0,0); pickup fine.nib; |
| 248 |
pos0(stem,0); pos1(hair,0); pos2(vair,90); pos3(curve,180); |
| 249 |
pos4(vair,270); pos5'(curve,0); pos5(curve,180); |
| 250 |
% pos6(9/10curve,0); |
| 251 |
pos6(vair,90); pos7(curve,0); pos8(vair,-90); pos9(hair,-180); pos10(stem,-180); |
| 252 |
top y2r=h+oo; bot y8r=-d-oo; y2-y1=y9-y8=(y2-y8)/8; |
| 253 |
y3=.52[y4,y2]; y5=.52[y4,y6]; y7=.52[y6,y8]; y5'=.52[y6,y4]; |
| 254 |
y2-y4=y4-y6=y6-y8; |
| 255 |
rt x1r=hround(w-1.5u); lft x3r=hround 1.25u; |
| 256 |
x2=x4=x6=x8=.5w; x5=x7=w-x3; x5'=x3; x9=w-x1; |
| 257 |
bulb(2,1,0); bulb(8,9,10); % bulbs |
| 258 |
filldraw stroke z2e{left}...z3e{down}...z4e{3(x5-x3),y5-y3} |
| 259 |
...z5e{down}...{left}z6e; % upper stroke |
| 260 |
filldraw stroke z4e{left}...z5'e{down}...z6e{3(x7-x5'),y7-y5'} |
| 261 |
...z7e{down}...{left}z8e; % upper stroke |
| 262 |
penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; |
| 263 |
|
| 264 |
cmchar "Euro symbol"; |
| 265 |
beginchar(hex"4E",12.5u#,cap_height#,0); |
| 266 |
italcorr cap_height#*slant-.5u#; |
| 267 |
adjust_fit(0,0); |
| 268 |
pickup fine.nib; pos1(25/33flare,80); pos2(15/11slab,90); |
| 269 |
pos3(30/37cap_curve,180); pos4(18/11slab,270); pos5(22/33flare,275); |
| 270 |
rt x1r=hround(w-1.1u); x2=x4=.5w+1.75u; |
| 271 |
lft x3r=hround max(2u,3u-32/64cap_curve); x5r=x1r-0.1u; |
| 272 |
top y1r=vround .95h+oo; top y2r=h+oo; y3=.5h; |
| 273 |
bot y4r=-oo; bot y5r=vround .08h-oo; y5l:=good.y y5l; x5l:=good.x x5l; |
| 274 |
filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3) |
| 275 |
& super_arc.e(3,4) & term.e(4,5,right,.8,4); % arc and terminals |
| 276 |
italcorr h#*slant-.5u#; |
| 277 |
adjust_fit(0,0); pickup rule.nib; |
| 278 |
lft x9=hround 0.5u-eps; x7=x9+0.1u; x10=0.6w; x8=x10+0.3u; |
| 279 |
y7=y8; y9=y10; y7-y9=1/5h; .5[y7,y9]=.5h; |
| 280 |
draw z7--z8; % upper bar |
| 281 |
draw z9--z10; % upper bar |
| 282 |
penlabels(1,1',2,3,4,5,6,7,8,9,10); endchar; |
| 283 |
|
| 284 |
cmchar "round z zh"; |
| 285 |
beginchar(hex"4F",8u#,x_height#,desc_depth#); |
| 286 |
italcorr x_height#*slant-.5serif_fit#-.3u#; |
| 287 |
adjust_fit(0,.5serif_fit#); |
| 288 |
numeric arm_thickness[],z_stem; |
| 289 |
if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; |
| 290 |
z_stem=.6[vair,stem]; |
| 291 |
else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi |
| 292 |
pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); lft x3l=3u; x4l = x3l; |
| 293 |
top y1=h; y2=min(y1,h-2/3arm_thickness1); |
| 294 |
y3=vround(-d+.85x_height); y4=y3-2/3arm_thickness1; |
| 295 |
numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); |
| 296 |
penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); |
| 297 |
penpos3(alpha*(z_stem-tiny),0); |
| 298 |
penpos4(alpha*(z_stem-tiny),0); |
| 299 |
pair delta; delta=penoffset z3-z2 of currentpen; |
| 300 |
fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l--z4r |
| 301 |
--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r |
| 302 |
---cycle; % diagonal |
| 303 |
pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); |
| 304 |
top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; |
| 305 |
arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak |
| 306 |
pos12(vair',270); pos14(vair',90); |
| 307 |
x12=x14=x3; bot y14l=y4; bot y12r=-d; |
| 308 |
pos13(curve,0); rt x13l=hround (w-max(1.9u,2.65u-.5curve)); |
| 309 |
y13=.5[y12,y14]; |
| 310 |
%if serifs: |
| 311 |
pos11(hair,180); pos10(flare,180); |
| 312 |
y11=y14-.70[bar_height,0.85x_height]+.75flare; |
| 313 |
lft x11r=hround(0.3u); bulb(12,11,10); % bulb |
| 314 |
filldraw stroke pulled_super_arc.e(12,13)(.7superpull) |
| 315 |
& pulled_super_arc.e(13,14)(.5superpull); |
| 316 |
penlabels(1,2,3,4,10,11,12,13,14); endchar; |