| 1 |
|
| 2 |
% the italic characters that correspond to those in phochar. |
| 3 |
% created by Emma Pease. In most cases these are modified forms of |
| 4 |
% standard computer modern characters |
| 5 |
|
| 6 |
cmchar "Italic letter rotated a"; |
| 7 |
beginchar("A",9u#,x_height#,0); |
| 8 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 9 |
adjust_fit(0,0); pickup fine.nib; |
| 10 |
pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); |
| 11 |
pos4(stem,0); x4=x0; y4+.5stem=vround .98h; |
| 12 |
x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); |
| 13 |
rt x4r=hround(w-2.5u+.5stem); |
| 14 |
top y1r=h+oo; bot y3r=-oo; y0=y2=.5[y1,y3]; |
| 15 |
filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2) |
| 16 |
& pulled_arc.e(2,3) & super_arc.e(3,0); % bowl |
| 17 |
x5=x4; x7=w; hook_out(5,6,7); % closing hook |
| 18 |
filldraw circ_stroke z4e--z5e; % stem |
| 19 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 20 |
currentpicture:=currentpicture rotatedaround ((.5(w+slant*h),.5h),180); |
| 21 |
penlabels(0,1,2,3,4,5,6,7); endchar; |
| 22 |
|
| 23 |
cmchar "Italic letter rotated c"; |
| 24 |
beginchar("c",8u#,x_height#,0); |
| 25 |
italcorr if math_fitting:1/3x_height#*slant else:x_height#*slant-u# fi; |
| 26 |
adjust_fit(0,0); pickup fine.nib; |
| 27 |
pos0(flare,180); pos1(hair,180); pos2(vair,90); |
| 28 |
pos3(curve,0); pos4(vair,270); pos5(hair,220); |
| 29 |
x2=x4=.5(w-u); lft x1r=min(lft x2,hround(u))-eps; |
| 30 |
rt x3r=w-hround(1.5u-.5curve); x5r=good.x(eps); x6=x5; |
| 31 |
y1=.5[bar_height,h]; top y2r=h+oo; bulb(2,1,0); % bulb |
| 32 |
bot y4r=-oo; y3=.5[y2,y4]; top y5l=vround .5bar_height; y6=bar_height; |
| 33 |
path p; p=z4{left}..z5..z6; |
| 34 |
filldraw stroke pulled_arc.e(2,3) |
| 35 |
& pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc |
| 36 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 37 |
penlabels(0,1,2,3,4,5,6); endchar; |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
% need an eth (d) |
| 42 |
cmchar "The letter eth"; |
| 43 |
beginchar("d",9u#,asc_height#,0); |
| 44 |
italcorr .7x_height#*slant; |
| 45 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 46 |
penpos1(vair,90); penpos3(vair',-90); |
| 47 |
penpos2(curve,180); penpos4(curve,0); |
| 48 |
x2r=hround max(.5u,1.25u-.5curve); |
| 49 |
x4r=w-x2r; x1=x3=.5w; y1r=x_height; % +vround 1.5oo; |
| 50 |
y3r=-oo; |
| 51 |
y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height; |
| 52 |
penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 53 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl |
| 54 |
penpos5(hair/(sind 45),45); penpos4'(stem,0); |
| 55 |
x4r=x4'r; y4=y4'; |
| 56 |
top y5r=h+oo; x5=x2; |
| 57 |
penstroke pulled_arc.e(4',5); |
| 58 |
penpos6(bar+stem_corr,120); penpos7(bar+stem_corr,120); |
| 59 |
y6=.35[y1,y5]; y7r=h+oo; |
| 60 |
x7r=rt x4; x6l=rt x2l; |
| 61 |
filldraw stroke z6e--z7e; |
| 62 |
penlabels(1,2,3,4,5,6,7); endchar; |
| 63 |
|
| 64 |
cmchar "Italic letter schwa"; |
| 65 |
beginchar("e",8u#,x_height#,0); |
| 66 |
italcorr max(1/3x_height#*slant,x_height#*slant+.5(.2[hair#,stem#])-u#); |
| 67 |
adjust_fit(0,0); pickup fine.nib; |
| 68 |
numeric heavy_hair; heavy_hair=hround .2[hair,stem]; |
| 69 |
pos0(vair,90); pos1(heavy_hair,180); pos2(vair,-90); |
| 70 |
pos3(curve,0); pos4(vair,90); pos5(hair,140); |
| 71 |
x0=lft x3l; lft x1r=hround(1.5u-.5heavy_hair); x2=x4=.5(w-u); |
| 72 |
rt x3r=hround(w-1.5u+.5curve); x5r=good.x(eps); x6=x5; |
| 73 |
y0=y3=y6=h-bar_height; y1=.5[y0,y2]; bot y2r=-oo; top y4r=h+oo; |
| 74 |
bot y5l=vround(h-.5bar_height); path p; p=z4{left}..z5..z6; |
| 75 |
filldraw stroke z0e{left}...z1e{down}...pulled_arc.e(2,3) |
| 76 |
& pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc |
| 77 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 78 |
penlabels(0,1,2,3,4,5,6); endchar; |
| 79 |
|
| 80 |
cmchar "The letter variant schwa"; |
| 81 |
beginchar("E",if serifs: 9.5u# else:9u# fi,x_height#,0); |
| 82 |
italcorr x_height#*slant+.25u#; |
| 83 |
adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); |
| 84 |
numeric left_stem,right_stem,outer_jut,alpha; |
| 85 |
left_stem=fudged.stem-stem_corr; |
| 86 |
right_stem=min(fudged.hair if hefty:-2stem_corr fi,left_stem); |
| 87 |
outer_jut=.75jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4=h; |
| 88 |
x2-x1=x4-x3; x2l+apex_corr=x3l; y2=y3=-apex_oo; |
| 89 |
alpha=diag_ratio(2,right_stem,y1-y2,x4r-x1l-apex_corr); |
| 90 |
penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); |
| 91 |
penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); |
| 92 |
z0=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 93 |
if y0>notch_cut: y0:=notch_cut; |
| 94 |
fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r) |
| 95 |
--diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} |
| 96 |
...{down}z0+.5left--cycle; % left and right diagonals |
| 97 |
else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l) |
| 98 |
--diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals |
| 99 |
if serifs: numeric inner_jut; pickup tiny.nib; |
| 100 |
prime_points_inside(1,2); prime_points_inside(4,3); |
| 101 |
if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; |
| 102 |
else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi |
| 103 |
dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif |
| 104 |
dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); fi % right serif |
| 105 |
currentpicture:=currentpicture rotatedaround ((.5(w+slant*h),.5h),180); |
| 106 |
penlabels(0,1,2,3,4); endchar; |
| 107 |
|
| 108 |
cmchar "Italic letter rotated g"; |
| 109 |
beginchar("g",8u#,x_height#+desc_depth#,0); |
| 110 |
h:=vround(x_height#*hppp); d:=vround(desc_depth#*hppp); % vertical adj. |
| 111 |
italcorr x_height#*slant+.5stem#-u#; |
| 112 |
adjust_fit(0,0); pickup fine.nib; |
| 113 |
pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); |
| 114 |
x0=x4; x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); |
| 115 |
x4+.5stem=hround(w-1.5u+.5stem); |
| 116 |
top y1r=h+oo; bot y3r=0; y0=y2=.5[y1,y3]; |
| 117 |
filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2) |
| 118 |
& pulled_arc.e(2,3) & super_arc.e(3,0); % bowl |
| 119 |
pos4(stem,0); y4+.5stem=vround .98h; |
| 120 |
pos5(stem,0); x5=x4; y5=-1/3d; |
| 121 |
pos6(vair,-90); pos7(hair,-180); pos8(flare,-180); |
| 122 |
bot y6r=-d-oo; y8-.5flare=vround -.9d; |
| 123 |
lft x8r=hround(2u-.5flare); x6=x1; bulb(6,7,8); % bulb |
| 124 |
filldraw circ_stroke z4e---z5e...{left}z6e; % stem and arc |
| 125 |
math_fit(-min(.3x_height#*slant+.5curve#-u#,1.5u#-desc_depth#*slant), |
| 126 |
ic#-1/3x_height#*slant); |
| 127 |
currentpicture:=currentpicture rotatedaround ((.5(w+slant*h),.5h),180); |
| 128 |
penlabels(0,1,2,3,4,5,6,7,8); endchar; |
| 129 |
|
| 130 |
cmchar "letter variant i"; |
| 131 |
beginchar("i",4u#,x_height#,0); l_width#:=4u#; |
| 132 |
italcorr max(1/3x_height#*slant+.5hair#+.5u#, |
| 133 |
x_height#*slant+.5stem#-2u#) if math_fitting:+.5u# fi; |
| 134 |
adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib; |
| 135 |
x2-.5stem=hround(1.5u-.5stem); x4=w; hook_out(2,3,4); % closing hook |
| 136 |
pickup tiny.nib; pos1(stem,0); pos2'(stem,0); z2'=z2; |
| 137 |
top y1=h; x1=x2; filldraw stroke z1e--z2e; % stem |
| 138 |
sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif |
| 139 |
math_fit(-.5u#,1/3x_height#*slant+.5hair#+u#); penlabels(1,2,3,4); endchar; |
| 140 |
|
| 141 |
cmchar "Dotless letter j barred"; |
| 142 |
beginchar("j",5.5u#,x_height#,desc_depth#); |
| 143 |
italcorr x_height#*slant-serif_fit#+.5stem#-2u#; |
| 144 |
adjust_fit(serif_fit#+2stem_shift# if monospace:+.5u# fi, |
| 145 |
serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 146 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 147 |
rt x1r=hround(.5w+.25u+.5stem'); x1=x2; |
| 148 |
top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=-1/3d; |
| 149 |
filldraw stroke z1e--z2e; % stem |
| 150 |
if serifs: sloped_serif.l(1,2,a,1/3,1.1jut,serif_drop); % upper serif |
| 151 |
pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); |
| 152 |
x5=.5[x2,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; |
| 153 |
if monospace: lft x6r=0 else: z6r=z7r; rt x7l=floor .75u fi; |
| 154 |
(x,y5r)=whatever[z5l,z2l]; x5r:=max(x,.5[x6r,x5]); |
| 155 |
filldraw stroke z2e{down}...z5e{left}; bulb(5,6,7); % arc and bulb |
| 156 |
else: pickup fine.nib; pos2'(stem',0); z2'=z2; |
| 157 |
pos6(.2[vair,stem'],-90); pos7(vair,-90); |
| 158 |
lft x7r=hround -.75u; bot y7r=vround 5/6(-d-oo); |
| 159 |
x3r=x1r; top y4r=min(2x_height,h+1); |
| 160 |
(x,y7l)=whatever[z7r,(x1,min(h,asc_height))]; x7l:=x; |
| 161 |
z5r=z2'r; (x2'l,y5l)=whatever[z7l,z5r]; x5l=x2'l; y5=y5r; |
| 162 |
x6r=.5[x7r,x5r]; x6l:=.5[x7l,x5l]; bot y6r=-d-oo; |
| 163 |
filldraw stroke z2'e..{down}z5e & super_arc.e(5,6) |
| 164 |
& term.e(6,7,left,1,4); fi % arc and terminal |
| 165 |
pickup crisp.nib; bot y3r=bot y4r=0; lft x3=hround .5u-1; |
| 166 |
pos3(bar,90); pos4(bar,90); |
| 167 |
rt x4=hround(w-if monospace:.75u+1 else:1/3u fi); |
| 168 |
filldraw stroke z3e--z4e; % bar |
| 169 |
penlabels(1,2,3,4,5,6,7); endchar; |
| 170 |
|
| 171 |
cmchar "Italic letter m"; |
| 172 |
beginchar("m",15u#,x_height#,0); |
| 173 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 174 |
adjust_fit(if monospace:-1.5u#,-2u# else: 0,0 fi); pickup fine.nib; |
| 175 |
numeric shaved_stem; shaved_stem=mfudged.stem; |
| 176 |
save stem; stem=shaved_stem; |
| 177 |
pos2(stem,0); x1=x2; |
| 178 |
if monospace: pos1(stem,0); lft x1l=hround(2.5u-.5stem); top y1=h; |
| 179 |
else: x0=0; lft x2l=hround(2.5u-.5stem); |
| 180 |
hook_in(0,a,1); fi % opening hook |
| 181 |
y2-.5stem=-oo; filldraw circ_stroke z2e--z1e; % left stem |
| 182 |
x4+.5stem=hround(.5w+.5stem); ital_arch(2,3,4); % left arch |
| 183 |
pos5(stem,0); y5=y2; x5=x4; |
| 184 |
filldraw circ_stroke z5e--z4e; % middle stem |
| 185 |
x7+.5stem=hround(w-2.5u+.5stem); |
| 186 |
x8=x7-.25u; ital_arch(5,6,7); % right arch |
| 187 |
if monospace: pos9(vair,90); x9=good.x .5[x8,w]; bot y9l=0; y8=1/3h; |
| 188 |
pos8(stem,0); filldraw stroke z8e{-u,-x_height}...{right}z9e; % terminal |
| 189 |
else: x9=w; hook_out(8,b,9)(skewed); fi % closing hook |
| 190 |
filldraw stroke z7e{down}..{-u,-x_height}z8e; % right stem |
| 191 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 192 |
currentpicture:=currentpicture rotatedaround ((.5(w+h*slant),.5h),180); |
| 193 |
penlabels(0,a,1,2,3,4,5,6,7,8,9); endchar; |
| 194 |
|
| 195 |
% letter italic engma |
| 196 |
|
| 197 |
|
| 198 |
cmchar "Italic letter thorn"; |
| 199 |
beginchar("p",8u#,asc_height#,desc_depth#); |
| 200 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 201 |
adjust_fit(0,0); pickup tiny.nib; |
| 202 |
pos1(stem,0); pos2(stem,0); pos6(stem,0);x1=x2=x6; |
| 203 |
lft x1l=hround(1.5u-.5stem); top y1=h; y2=.5x_height;bot y6=-d; |
| 204 |
filldraw stroke z1e--z6e; % stem |
| 205 |
sloped_serif.l(1,2,a,1/3,jut,serif_drop); % top serif |
| 206 |
dish_serif(6,2,b,1/3,.75jut,c,1/3,jut); % bottom serif |
| 207 |
pickup fine.nib; pos2'(stem,-180); pos3(vair,-90); |
| 208 |
pos4(curve,0); pos5(vair,90); pos0(hair,180); |
| 209 |
z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-1.5u+.5curve); |
| 210 |
bot y3r=-oo; top y5r=x_height+oo; y4=y2; |
| 211 |
filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4) |
| 212 |
& pulled_arc.e(4,5) & super_arc.e(5,0); % bowl |
| 213 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 214 |
penlabels(0,1,2,3,4,5,6); endchar; |
| 215 |
|
| 216 |
cmchar "Italic letter rotated r"; |
| 217 |
beginchar("r",5.5u#+max(1.75u#,flare#),x_height#,0); |
| 218 |
italcorr x_height#*slant; |
| 219 |
adjust_fit(if monospace:.25u#,.5u# else: 0,0 fi); pickup fine.nib; |
| 220 |
x0=0; x2=x3; pos3(stem,0); lft x3l=hround(2.5u-.5stem); y3-.5stem=-oo; |
| 221 |
hook_in(0,1,2); % opening hook |
| 222 |
filldraw circ_stroke z3e--z2e; % left stem |
| 223 |
pos3'(hair,180); z3'=z3; pos4(vair,90); pos5(hair,0); pos6(flare,0); |
| 224 |
x4=w-.5u-max(1.75u,flare); rt x5r=hround(r-.5u); top y4r=h+oo; |
| 225 |
filldraw stroke z3'e{up}...z4e{right}; % link |
| 226 |
y6+.5flare=vround(bot y4l-.03x_height); bulb(4,5,6); % bulb |
| 227 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#-.5u#); |
| 228 |
currentpicture:=currentpicture rotatedaround ((.5(w+h*slant),.5h),180); |
| 229 |
penlabels(0,1,2,3,4,5,6); endchar; |
| 230 |
|
| 231 |
% the letter esh |
| 232 |
|
| 233 |
cmchar "Italic letter rotated h"; |
| 234 |
beginchar("u",9.5u#,x_height#,desc_depth#); |
| 235 |
italcorr .7x_height#*slant+.5hair#+.5u#; |
| 236 |
adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; |
| 237 |
x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 238 |
hook_in(0,1,2)(skewed); % opening hook |
| 239 |
pos2'(stem,-180); z2'=z2; |
| 240 |
pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; |
| 241 |
pos7(stem,0);pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); |
| 242 |
x5=x6=x7; bot y7=-d; |
| 243 |
y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; |
| 244 |
filldraw stroke z2'e{-u,-x_height} |
| 245 |
...super_arc.e(3,4)...{up}z5e; % left stem and arc |
| 246 |
filldraw circ_stroke z6e--z7e; % right stem |
| 247 |
dish_serif(7,6,a,1/3,jut,b,1/3,jut); % serif |
| 248 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 249 |
penlabels(0,1,2,3,4,5,6,7); endchar; |
| 250 |
|
| 251 |
% the letter yogh |
| 252 |
|
| 253 |
cmchar "Italic letter y"; |
| 254 |
beginchar("y",8.5u#,x_height#+desc_depth#,0); |
| 255 |
h:=vround(x_height#*hppp); d:=vround(desc_depth#*hppp); %adj. vertical |
| 256 |
italcorr x_height#*slant+.5stem#-u#; |
| 257 |
adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; |
| 258 |
x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 259 |
hook_in(0,1,2)(skewed); % opening hook |
| 260 |
pos2'(stem,-180); z2'=z2; |
| 261 |
pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; |
| 262 |
pos6(stem,0); rt x6r=hround(w-1.5u+.5stem); |
| 263 |
pos7(stem,0); pos8(vair,-90); |
| 264 |
y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; |
| 265 |
y7=0; bot y8r=-d-oo; x5=x6=x7; x8=.5w; |
| 266 |
pos9(hair,-180); pos10(flare,-180); y9=-.5d; |
| 267 |
lft x9r=hround(2.75u-.5flare); bulb(8,9,10); % bulb |
| 268 |
filldraw stroke z2'e{-u,-x_height} |
| 269 |
...super_arc.e(3,4)...{up}z5e; % left stem and arc |
| 270 |
filldraw circ_stroke z6e---z7e...{left}z8e; % right stem and link |
| 271 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#-1/3x_height#*slant); |
| 272 |
currentpicture:=currentpicture rotatedaround ((.5(w+h*slant),.5h),180); |
| 273 |
penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; |
| 274 |
|
| 275 |
|
| 276 |
cmchar "The letter variant u"; |
| 277 |
beginchar(oct"012",10u#,x_height#,0); |
| 278 |
italcorr .75x_height#*slant-.5u#; |
| 279 |
adjust_fit(0,0); |
| 280 |
pickup tiny.nib; pos1(vair,90); pos2(curve,180); |
| 281 |
pos3(vair,180); pos4(curve,0); pos5(vair,0); |
| 282 |
x1=.5w; top y1r=h+o; lft x2r=hround u; y2=y4=2/3h; x4=w-x2; |
| 283 |
rt x3l=hround(1/3(w+.5u)+.5hair); bot y3=bot y5=0; x5=w-x3; |
| 284 |
filldraw stroke z3e{up}...{up}z2e |
| 285 |
& pulled_super_arc.e(2,1)(.5superpull) |
| 286 |
& pulled_super_arc.e(1,4)(.5superpull) |
| 287 |
& z4e{down}...{down}z5e; % bowl |
| 288 |
numeric arm_thickness; path p; p=z3{up}...{up}z2; |
| 289 |
arm_thickness=vround(if hefty:slab+2stem_corr else:.75[slab,vstem] fi); |
| 290 |
pickup crisp.nib; pos6(arm_thickness,-90); pos7(fudged.hair,-180); |
| 291 |
bot y6r=0; x6=x3; lft x7r=hround .8u; |
| 292 |
y7=good.y(y6l+.3beak)+eps; |
| 293 |
(x,y)=p intersectionpoint((0,y6l)--(w,y6l)); x6l:=x; |
| 294 |
arm(6,7,a,.5beak_darkness,-1.2beak_jut); % left arm and beak |
| 295 |
pos8(arm_thickness,-90); pos9(fudged.hair,0); |
| 296 |
y8=y6; y9=y7; x8+x6=x9+x7=w; x8l:=w-x6l; |
| 297 |
arm(8,9,b,.5beak_darkness,1.2beak_jut); % right arm and beak |
| 298 |
math_fit(0,.5ic#); |
| 299 |
currentpicture:=currentpicture rotatedaround ((.5(w+h*slant),.5h),180); |
| 300 |
penlabels(1,2,3,4,5,6,7,8,9); endchar; |
| 301 |
|
| 302 |
cmchar "The letter variant varu"; |
| 303 |
beginchar(oct"010",11u#,x_height#,0); |
| 304 |
italcorr x_height#*slant; |
| 305 |
adjust_fit(0,0); pickup fine.nib; |
| 306 |
pos2(curve,-180); lft x2r=hround.5u; y2=y8=bar_height; |
| 307 |
y4=y6=vround.4h; |
| 308 |
%y1+.5hair=h; x1=x2+.75u; pos1(hair,angle(2(x1-x2),y1-y2)+90); |
| 309 |
y1r=h+oo; x1=.5w; pos1(hair,90); |
| 310 |
pos3(hair,-90); pos4(hair,0); pos5(vair,90); |
| 311 |
pos6(hair,180); pos7(hair,270); pos8(curve,360); |
| 312 |
bot y3r=bot y7r=-oo; top y5r=vround(.1[y4,h]+.5vair); |
| 313 |
x3=.5[x2,x4]; x7+.25u=.5[x6,x8]; rt x8r=hround(w-.5u); |
| 314 |
x5+.5stem=hround(.5w+.5stem)+eps; |
| 315 |
x5=.5[x4,x6]; rt x4r-lft x6r=min(stem,2hair)+2eps; |
| 316 |
if x4l<x6l: x4l:=x6l:=x5; fi |
| 317 |
filldraw circ_stroke z1e{left}...z2e{down}...z3e{right} |
| 318 |
...{up}z4e...{left}z5e; % left arc |
| 319 |
filldraw stroke z5e{left}...z6e{down}...z7e{right}...{up}z8e...z1e{left}; |
| 320 |
math_fit(-bar_height#*slant,2/3ic#); penlabels(1,2,3,4,5,6,7,8); endchar; |
| 321 |
|
| 322 |
cmchar "Glottal stop"; |
| 323 |
beginchar("?",8.5u#,asc_height#,0); |
| 324 |
italcorr .8asc_height#*slant; |
| 325 |
adjust_fit(0,0); |
| 326 |
pickup tiny.nib; pos7(stem',0); bot y7=0; x7=.47w; |
| 327 |
numeric bot_width; |
| 328 |
bot_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi; |
| 329 |
pickup fine.nib; pos2(vair,90); pos3(curve,0); |
| 330 |
pos4(vair,-90); pos5(stem',0); pos6(stem',0); |
| 331 |
x2=x4=x5=x6=x7; rt x3r=hround(w-u); bot y6=1+.5[top y7r,x_height]; |
| 332 |
top y2r=h+oo; y3=.75[y6,y2]; y4=.5[y6,y2]; y5=.1[y6,y2]; |
| 333 |
{{interim superness:=more_super; |
| 334 |
filldraw stroke pulled_super_arc.e(2,3)(superpull) |
| 335 |
& subpath (0,1) of super_arc.e(3,4) .. z5e---z7e\\}}; % arc and stem |
| 336 |
if serifs: pos1(hair,180); pos0(flare,180); |
| 337 |
lft x1r=hround u; y1=y3; bulb(2,1,0); % bulb |
| 338 |
dish_serif(7,5,e,1/3,jut,f,1/3,jut); %serif |
| 339 |
else: pos1(vround 5/7[vair,flare],110); |
| 340 |
lft x1r=hround u; top y1r=vround .9[y6,top y2r]; |
| 341 |
filldraw stroke term.e(2,1,left,1,4); fi % terminal |
| 342 |
penlabels(0,1,2,3,4,5,6,7); endchar; |
| 343 |
|
| 344 |
cmchar "Italic letter df"; |
| 345 |
beginchar("D",9.5u#,asc_height#,0); |
| 346 |
italcorr .9[x_height#,asc_height#]*slant+.5u# if math_fitting:-.5u# fi; |
| 347 |
adjust_fit(0,0); pickup fine.nib; |
| 348 |
pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); |
| 349 |
x0=x4; x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); |
| 350 |
x4+.5stem=hround(w-2.5u+.5stem-.5u); |
| 351 |
top y1r=x_height+oo; bot y3r=-oo; y0=y2=.5[y1,y3]; |
| 352 |
filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2) |
| 353 |
& pulled_arc.e(2,3) & super_arc.e(3,0); % bowl |
| 354 |
x5=x0; x7=w-.5u; hook_out(5,6,7); % closing hook |
| 355 |
pickup tiny.nib; pos5'(stem,0); pos4(stem,0); pos4'(stem,180); |
| 356 |
z5'=z5; y4=.25[x_height,h]; filldraw stroke z4e--z5'e; % stem |
| 357 |
z4=z4'; pickup fine.nib; |
| 358 |
pos11(.5[hair,stem],180); |
| 359 |
pos8(vair,90);pos9(hair,0);pos10(flare,0); |
| 360 |
top y8r=h+oo;y10+.5flare=vround .9[x_height,h]; |
| 361 |
rt x9r=hround(w+.25u); x8=.6[x9,x4']; x11r=x4'; y11=.8[y4',y8]; |
| 362 |
bulb(8,9,10); |
| 363 |
filldraw stroke z8e{left}...z11e...{down}z4'e; |
| 364 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 365 |
penlabels(0,1,2,3,4',5,6,7,8,9,10,11); endchar; |
| 366 |
|
| 367 |
|
| 368 |
cmchar "Italic letter emgma"; |
| 369 |
beginchar("M",14u#,x_height#,desc_depth#); |
| 370 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 371 |
adjust_fit(if monospace:-1.5u#,-2u# else: 0,0 fi); pickup fine.nib; |
| 372 |
numeric shaved_stem; shaved_stem=mfudged.stem; |
| 373 |
save stem; stem=shaved_stem; |
| 374 |
pos2(stem,0); x1=x2; |
| 375 |
if monospace: pos1(stem,0); lft x1l=hround(2.5u-.5stem); top y1=h; |
| 376 |
else: x0=0; lft x2l=hround(2.5u-.5stem); |
| 377 |
hook_in(0,a,1); fi % opening hook |
| 378 |
y2-.5stem=-oo; filldraw circ_stroke z2e--z1e; % left stem |
| 379 |
x4+.5stem=hround(.5w+.5stem); ital_arch(2,3,4); % left arch |
| 380 |
pos5(stem,0); y5=y2; x5=x4; |
| 381 |
filldraw circ_stroke z5e--z4e; % middle stem |
| 382 |
lft x7l=hround(w-1.5u-.5stem); |
| 383 |
x8=x7; ital_arch(5,6,7); % right arch |
| 384 |
pos8(stem,0);bot y8=-1/3d; |
| 385 |
pos9(vair,-90);pos10(hair,-180);pos11(flare,-180); |
| 386 |
bot y9r=-d-oo; y11-.5flare=-vround.9d; |
| 387 |
x9=w-3.5u; lft x10r=min(hround-.5u,lft x10r+x9-x10l-eps)+9u; |
| 388 |
filldraw stroke z7e---z8e...{left}z9e; % right stem and arc |
| 389 |
bulb(9,10,11); |
| 390 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 391 |
penlabels(0,a,1,2,3,4,5,6,7,8,9,10,11); endchar; |
| 392 |
|
| 393 |
|
| 394 |
cmchar "Italic letter engma"; |
| 395 |
beginchar("n",9u#,x_height#,desc_depth#); |
| 396 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 397 |
adjust_fit(0,0); pickup fine.nib; |
| 398 |
x0=0; x1=x2; pos2(stem,0); lft x2l=hround(2.5u-.5stem); y2-.5stem=-oo; |
| 399 |
hook_in(0,a,1); % opening hook |
| 400 |
filldraw circ_stroke z2e--z1e; % left stem |
| 401 |
lft x4l=hround(w-1.5u-.5stem); x5=x4; ital_arch(2,3,4); % arch |
| 402 |
pos5(stem,0);bot y5=-1/3d; |
| 403 |
pos6(vair,-90);pos7(hair,-180);pos8(flare,-180); |
| 404 |
bot y6r=-d-oo; y8-.5flare=-vround.9d; |
| 405 |
x6=w-3.5u; lft x7r=min(hround-.5u,lft x7r+x6-x7l-eps)+4u; |
| 406 |
filldraw stroke z4e---z5e...{left}z6e; % right stem and arc |
| 407 |
bulb(6,7,8); |
| 408 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 409 |
penlabels(0,a,1,2,3,4,5,6,7,8); endchar; |
| 410 |
|
| 411 |
% the following characters were borrowed without adjustment from the |
| 412 |
% regular character set. |
| 413 |
|
| 414 |
cmchar "The letter flap"; |
| 415 |
numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#]; |
| 416 |
define_whole_blacker_pixels(r_flare); |
| 417 |
beginchar("f",if serifs:max(7u#,5.5u#+r_flare#) else:6.5u# fi,x_height#,0); |
| 418 |
italcorr x_height#*slant if not serifs: +.25u# fi; |
| 419 |
adjust_fit(serif_fit#,0); |
| 420 |
pickup fine.nib; top y4r=h+oo; |
| 421 |
if serifs: pos4(vair,90); pos5(hair,0); |
| 422 |
x4=w-max(1.75u,.25u+r_flare); |
| 423 |
rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,h]+oo; |
| 424 |
pos6(r_flare,0); bulb(4,5,6); % bulb |
| 425 |
else: pos4(r_flare,90); rt x4=hround(w-.25u); fi |
| 426 |
pos0'(hround(stem-3stem_corr),180); |
| 427 |
rt x0'l=hround(2.5u-.5stem')+stem'; top y0'=bar_height; |
| 428 |
filldraw stroke z0'e{up}...{right}z4e; % arc |
| 429 |
pickup tiny.nib; pos0(stem',0); pos2(stem',0); |
| 430 |
pos1(hround(stem-3stem_corr),0); top y1=h+min(oo,serif_drop); |
| 431 |
%pos0'(hround(stem-3stem_corr),0); |
| 432 |
y0=y0'; x1l=x0l=x2l; |
| 433 |
lft x1l=hround(2.5u-.5stem'); bot y2=0; |
| 434 |
filldraw stroke z0e--z2e; % stem |
| 435 |
if serifs: dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi % lower serif |
| 436 |
penlabels(1,2,0',4,5,6); endchar; |
| 437 |
|
| 438 |
cmchar "The letter voiced h"; |
| 439 |
beginchar("h",10u#,asc_height#,0); |
| 440 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 441 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 442 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 443 |
pos1'(stem',0); pos2'(stem',0); pos3(stem,0); |
| 444 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; |
| 445 |
top y1=.25[x_height,h]; bot y2=0; y1=y1'; y2=y2'; |
| 446 |
filldraw stroke z1'e--z2'e; % left stem |
| 447 |
h_stroke(2,a,3,4); % arch and right stem |
| 448 |
if serifs: pickup tiny.nib; |
| 449 |
pos9(vair,-270); pos9'(vair,-90);z9=z9';x9=.5[x1,x10]; top y9r=h; |
| 450 |
pos10(hair,-360); |
| 451 |
rt x10r=min(w- hround u,rt x3r); |
| 452 |
y10=.75[x_height,h]-.5flare; |
| 453 |
pos11(flare,-360); %z11l=z10l; |
| 454 |
bulb(9,10,11); filldraw stroke super_arc.e(1,9'); % tail |
| 455 |
else: pickup fine.nib; pos1'(stem,0); z1'=z1; |
| 456 |
z1''r=z1'r; z1''=z1'; z1''l=(x1'l,0); |
| 457 |
pos9(vair,-270); x9=4.5u; top y9r=h; |
| 458 |
pos10(.5[vair,flare],90); rt x10=hround 1.25u; |
| 459 |
y10r=good.y 5/6[x_height,h]; y10l:=good.y y10l; |
| 460 |
filldraw stroke z1'e..z1''e&super_arc.e(1'',9) |
| 461 |
& term.e(9,10,left,.9,4); fi % tail |
| 462 |
if serifs: numeric inner_jut; pickup tiny.nib; |
| 463 |
if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; |
| 464 |
else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi |
| 465 |
dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif |
| 466 |
dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif |
| 467 |
penlabels(1,2,3,4,9,10,11); endchar; |
| 468 |
|
| 469 |
cmchar "The letter hook k"; |
| 470 |
beginchar("k",9.5u#,asc_height#,0); |
| 471 |
italcorr x_height#*slant-.2u#; |
| 472 |
adjust_fit(serif_fit#,serif_fit#); pickup tiny.nib; |
| 473 |
numeric right_jut,stem[],alpha[]; |
| 474 |
stem1=max(tiny.breadth,hround(fudged.stem-stem_corr)); |
| 475 |
stem2=max(tiny.breadth,hround(fudged.stem-2stem_corr)); |
| 476 |
stem3=max(tiny.breadth,hround(fudged.hair if hefty:-\\4stem_corr fi)); |
| 477 |
stem4=max(tiny.breadth,hround(fudged.stem-3stem_corr)); |
| 478 |
if serifs: right_jut=.6jut; else: right_jut=.4tiny; fi |
| 479 |
pos1(stem1,0); pos2(stem2,0); top y1=.25[x_height,h]; bot y2=0; |
| 480 |
lft x1l=lft x2l=hround(2.5u-.5stem1); |
| 481 |
top y3=x_height; rt x3r=hround(r-letter_fit-.7u-right_jut)+eps; |
| 482 |
bot y6=0; rt x6r=hround(r-letter_fit-.3u-right_jut)+eps; |
| 483 |
x4=x11=x1; y4=.7bar_height; y11=y3; |
| 484 |
alpha1=diag_ratio(1,.5(stem3-tiny),y3-y4,x3r-x4); |
| 485 |
alpha2=diag_ratio(1,.5(stem4-tiny),y11-y6,x6r-x1); |
| 486 |
penpos3(alpha1*(stem3-tiny),0); penpos4(whatever,-90); |
| 487 |
z5=.5[z5l,z5r]; penpos6(alpha2*(stem4-tiny),0); |
| 488 |
forsuffixes $=l,r: y3'$=x_height; y6'$=0; z4$=z3'$+whatever*(z3-z4); |
| 489 |
z5$=z6'$+whatever*(z11-z6)=whatever[z3,z4]; endfor |
| 490 |
z3'r=z3r+penoffset z3-z4 of currentpen+whatever*(z3-z4); |
| 491 |
% we have also |z3'l=z3l+penoffset z4-z3 of currentpen+whatever*(z3-z4)|;\] |
| 492 |
z6'r=z6r+penoffset z11-z6 of currentpen+whatever*(z11-z6); |
| 493 |
z6'l=z6l+penoffset z6-z11 of currentpen+whatever*(z11-z6); |
| 494 |
fill z4r--diag_end(4r,3'r,1,.5,3'l,4l)--z4l--cycle; % upper diagonal |
| 495 |
fill z5l--diag_end(5l,6'l,.5,1,6'r,5r)--z5r--cycle; % lower diagonal |
| 496 |
pos0(stem1,0); pos0'(stem2,0); y0=y0'; x0=x1; x0'=x2; |
| 497 |
rt z0r=whatever[z3,z4]; filldraw stroke z1e..z0e--z0'e..z2e; % stem |
| 498 |
if serifs: numeric inner_jut; |
| 499 |
if rt x2r+jut+.5u+1<=lft x6l-jut: inner_jut=jut; |
| 500 |
else: rt x2r+inner_jut+.5u+1=lft x6l-inner_jut; fi |
| 501 |
dish_serif(2,0',b,1/3,jut,c,1/3,inner_jut); % lower stem serif |
| 502 |
dish_serif(3,4,d,2/3,1.4jut,e,1/2,right_jut)(dark); % upperDiagonal serif |
| 503 |
dish_serif(6,5,f,1/2,inner_jut,g,1/3,right_jut)(dark);fi % lowerDiagonal serif |
| 504 |
if serifs: pickup tiny.nib; |
| 505 |
pos7(vair,-270); pos7'(vair,-90);z7=z7';x7=.5[x1,x8]; top y7r=h; |
| 506 |
pos8(hair,-360); rt x8r=rt x3r; y8=.75[x_height,h]-.5flare; |
| 507 |
pos9(flare,-360); |
| 508 |
bulb(7,8,9); filldraw stroke super_arc.e(1,7'); % hook |
| 509 |
else: pickup fine.nib; pos1'(stem,0); z1'=z1; |
| 510 |
z1''r=z1'r; z1''=z1'; z1''l=(x1'l,0); |
| 511 |
pos7(vair,-90); x7=4.5u; top y7l=h; |
| 512 |
pos8(.5[vair,flare],90); rt x8=hround 1.25u; |
| 513 |
y8r=good.y 5/6[x_height,h]; y8l:=good.y y8l; |
| 514 |
filldraw stroke z1'e..z1''e&super_arc.e(1'',7) |
| 515 |
& term.e(7,8,left,.9,4); fi % tail |
| 516 |
penlabels(0,1,2,3,4,5,6,7,8,9,11); endchar; |
| 517 |
|
| 518 |
cmchar "The letter esh"; |
| 519 |
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); |
| 520 |
beginchar("s",5.5u#,asc_height#,desc_depth#); |
| 521 |
define_whole_blacker_pixels(dot_diam); |
| 522 |
italcorr h#*slant-serif_fit#+.5stem#-2u#; |
| 523 |
adjust_fit(serif_fit#+2stem_shift# if monospace:+\\.5u# fi, |
| 524 |
serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 525 |
numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); |
| 526 |
pickup tiny.nib; pos0(stem',0); pos1(shaved_stem,0); |
| 527 |
x0=x1; |
| 528 |
x1=.5w; |
| 529 |
top y0=x_height if serifs: +min(oo,serif_drop) fi; |
| 530 |
bot y1=-1/3d; |
| 531 |
pickup fine.nib; numeric bulb_diam; |
| 532 |
if serifs: |
| 533 |
pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); |
| 534 |
x5=.5[x1,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; |
| 535 |
if monospace: lft x6r=0 else: z6r=z7r; rt x7l=floor .75u fi; |
| 536 |
(x,y5r)=whatever[z5l,z1l]; x5r:=max(x,.5[x6r,x5]); |
| 537 |
filldraw stroke z1e{down}...z5e{left}; bulb(5,6,7); % lower arc and bulb |
| 538 |
bulb_diam=hround .8[stem,flare]; |
| 539 |
pos2(bulb_diam,0); y2+.5bulb_diam=.9[x_height,h+oo]; |
| 540 |
if monospace: rt x2r=hround(w-.5u)+1 else: lft x2l=hround(w-.75u+.5) fi; |
| 541 |
else: pickup fine.nib; pos1'(stem',0); z1'=z1; |
| 542 |
pos6(.2[vair,stem'],-90); pos7(vair,-90); |
| 543 |
lft x7r=hround -.75u; bot y7r=vround 5/6(-d-oo); |
| 544 |
(x,y7l)=whatever[z7r,z3]; x7l:=x; |
| 545 |
z5r=z1'r; (x1'l,y5l)=whatever[z7l,z5r]; x5l=x1'l; y5=y5r; |
| 546 |
x6r=.5[x7r,x5r]; x6l:=.5[x7l,x5l]; bot y6r=-d-oo; |
| 547 |
filldraw stroke z1'e..{down}z5e & super_arc.e(5,6) |
| 548 |
& z6e{left}..z7e; % arc and terminal |
| 549 |
pos2(5/7[vair,flare],90); top y2r=h; |
| 550 |
rt x2=hround(if monospace:w-.5u else:w+.75u fi); fi |
| 551 |
pickup tiny.nib; |
| 552 |
penpos3(x1r-x1l,0); x3l=x1l; top y3=x_height; |
| 553 |
filldraw stroke z1e--z3e; % stem |
| 554 |
pickup fine.nib; pos3'(x1r-x1l-(hround stem_corr)+tiny,180); |
| 555 |
y3'=y3; lft x3'r=tiny.lft x1l; |
| 556 |
penpos4(x3'l-x3'r,180); x4=x3'; y4+.5vair=.5[x_height,h]; |
| 557 |
pos8(vair,90); top y8r=h+oo; |
| 558 |
if serifs: x8=.5[x4,x2r]; (xa,y8r)=whatever[z8l,z4l]; |
| 559 |
x8r:=min(xa,.5[x8,x2r]); pos9(hair,0); bulb(8,9,2); % bulb |
| 560 |
filldraw stroke z3'e--z4e & super_arc.e(4,8); % arc |
| 561 |
else: x8=.6[x4,x2]; y4l:=1/3[y4l,y8l]; |
| 562 |
filldraw stroke z3'e--z4e & super_arc.e(4,8) |
| 563 |
& term.e(8,2,right,.9,4); fi % arc and terminal |
| 564 |
penlabels(1,2,3,4,5,6,7,8); endchar; |
| 565 |
|
| 566 |
cmchar "The letter yogh"; |
| 567 |
beginchar("x",8u#,x_height#,desc_depth#); |
| 568 |
italcorr x_height#*slant-.5serif_fit#-.3u#; |
| 569 |
adjust_fit(0,.5serif_fit#); |
| 570 |
numeric arm_thickness[],z_stem,stem[]; |
| 571 |
stem1=fudged.stem-4stem_corr; |
| 572 |
if hefty: arm_thickness1=stem1; arm_thickness2=stem1; |
| 573 |
z_stem=fudged.hair; |
| 574 |
else: arm_thickness1=stem1; arm_thickness2=stem1; z_stem=fudged.hair; fi |
| 575 |
if arm_thickness1<tiny.breadth: arm_thickness1:=tiny.breadth; fi |
| 576 |
pickup tiny.nib; rt x1r=rt x2r=hround(w-.8u); |
| 577 |
lft x3l=lft x4l=hround .3[.5u, w-.8u]; |
| 578 |
top y1=h; y2=min(y1,h-2/3arm_thickness1); |
| 579 |
bot y4=.3[0,h]; y3=max(y4,2/3arm_thickness2); |
| 580 |
numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); |
| 581 |
penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); |
| 582 |
penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); |
| 583 |
pair delta; delta=penoffset z3-z2 of currentpen; |
| 584 |
fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l |
| 585 |
---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r |
| 586 |
---cycle; % diagonal |
| 587 |
pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); |
| 588 |
top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; |
| 589 |
arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak |
| 590 |
pickup fine.nib; pos11(vair,-90); |
| 591 |
pos12(vair,180); x12r=x3r; %.5[1.5u,x7]; |
| 592 |
x8=x13=hround .5[.5u, w-.8u]; |
| 593 |
pos7(curve,0); rt x7r=hround(w-.75u); |
| 594 |
lft x11=lft x4; %min(hround 3u,lft x12)-eps; |
| 595 |
pos8(vair,-90); bot y8r=-d; pos13(vair, 90); y13=.1[y3,y5]; |
| 596 |
y7=.5[bot y13l,top y8l]; |
| 597 |
top y11l=top y4l; %vround(0+.5vair); |
| 598 |
y3=y12; |
| 599 |
filldraw stroke pulled_arc.e(12,13); %link |
| 600 |
filldraw stroke pulled_arc.e(13,7) |
| 601 |
& pulled_arc.e(7,8); % bowl |
| 602 |
if serifs: numeric bulb_diam[]; |
| 603 |
bulb_diam2=flare+cap_stem-stem; |
| 604 |
pos10(bulb_diam2,-180); pos9(cap_hair,-180); |
| 605 |
lft x10r=hround .75u; y10=-.3d; %max(.1h+.5bulb_diam2,.3h-.5bulb_diam2); |
| 606 |
bulb(8,9,10); % lower bulb |
| 607 |
else: pos9(bot_thickness,angle(-2u,-h)); |
| 608 |
lft x9r=hround .75u; top y9l=vround -.3d; |
| 609 |
y9r:=good.y y9r-eps; x9l:=good.x x9l; |
| 610 |
filldraw stroke term.e(8,9,left,1,4); fi % lower terminal |
| 611 |
penlabels(1,2,3,4,5,6,7,8,9,10,12,13); endchar; |
| 612 |
|
| 613 |
cmchar "The letter dj"; |
| 614 |
beginchar("J",10.5u#,asc_height#,desc_depth#); |
| 615 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 616 |
adjust_fit(0,serif_fit#); |
| 617 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 618 |
pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; |
| 619 |
rt x1r=hround(w-3u+.5stem'+serif_fit); top y1=h; |
| 620 |
numeric edge; edge=lft x2l; |
| 621 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); |
| 622 |
pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); |
| 623 |
lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); |
| 624 |
y3=1/8[bar_height,x_height]; |
| 625 |
x4l=.5(w-.5u)-.3u; top y4r=x_height+oo; |
| 626 |
lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; |
| 627 |
x6l=x4l-.2u; bot y6r=-oo; |
| 628 |
x7=x3; y7=min(y3,y6+y4-y3+.6vair); |
| 629 |
(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); |
| 630 |
(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); |
| 631 |
filldraw stroke z3e{up}...pulled_arc.e(4,5) |
| 632 |
& pulled_arc.e(5,6)...{up}z7e; % bowl |
| 633 |
y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); |
| 634 |
pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; |
| 635 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 636 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif |
| 637 |
pickup tiny.nib; pos2'(stem',-180); z2'=z2; |
| 638 |
pos8(vair,-90); pos9(hair,0); pos10(flare,0); |
| 639 |
x8=.5[x2',x9r]; bot y8r=-d-oo; y9-.5flare=-.88d; |
| 640 |
if monospace: rt x9r = w else: z9r=z10r; lft x10l= w-floor .75u fi; |
| 641 |
(xc,y8r)=whatever[z8l,z2'l]; x8r:=min(xc,.5[x9r,x8]); |
| 642 |
filldraw stroke z2'e{down}...z8e{right}; bulb(8,9,10); % arc and bulb |
| 643 |
else: pickup fine.nib; pos2'(stem',180); z2'=z2; |
| 644 |
pos9(.2[vair,stem'],-90); pos10(vair,-90); |
| 645 |
rt x10r=w-(hround.75u); bot y10r=vround 5/6(-d-oo); |
| 646 |
(x,y10l)=whatever[z10r,z2]; x7l:=x; |
| 647 |
z8l=z2'l; (x2'r,y8r)=whatever[z10r,z8l]; x8r=x2'r;y8=y8l; |
| 648 |
x9r=.5[x10l,x8l]; x9l:=.5[x10l,x8l]; bot y9r=-d-oo; |
| 649 |
filldraw stroke z2'e..{down}z5e & super_arc.e(8,9) |
| 650 |
& z9e{right}..z10e; fi % arc and terminal |
| 651 |
penlabels(0,1,2',3,4,5,6,7,8,9,10); endchar; |
| 652 |
|
| 653 |
|
| 654 |
cmchar "Italic letter enya"; |
| 655 |
beginchar(oct"116",11u#,x_height#,desc_depth#); |
| 656 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 657 |
adjust_fit(0,0); pickup fine.nib; |
| 658 |
x0=0; x1=x2=x2'; pos2(stem,0); pos2'(stem,0); |
| 659 |
lft x2l=hround(3.5u-.5stem); bot y2=-1/3d; y2'-.5stem=-oo; |
| 660 |
hook_in(0,a,1); % opening hook |
| 661 |
x4+.5stem=hround(w-2.5u+.5stem); x5=x4-.25u; ital_arch(2',3,4); % arch |
| 662 |
x7=w; hook_out(5,6,7)(skewed); % closing hook |
| 663 |
filldraw stroke z4e{down}..{-u,-x_height}z5e; % right stem |
| 664 |
pos8(vair,-90); pos9(hair,-180); pos10(flare,-180); |
| 665 |
bot y8r=-d-oo; y10-.5flare=-vround.9d; |
| 666 |
x8=1/3(4u); lft x9r=min(hround-.5u,lft x9r+x8-x9l-eps); |
| 667 |
%filldraw circ_stroke z2e--z1e; % left stem |
| 668 |
filldraw stroke z1e---z2e...{left}z8e; % stem and arc |
| 669 |
bulb(8,9,10); % bulb |
| 670 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 671 |
penlabels(0,a,1,2,3,4,5,6,7,8,9,10); endchar; |
| 672 |
|
| 673 |
cmchar "Lowercase Greek bar lambda"; |
| 674 |
beginchar(oct"001",10.5u#,asc_height#,0); |
| 675 |
adjust_fit(0,0); pickup fine.nib; |
| 676 |
pos1(vair,90); lft x1=hround .1u; top y1r=h; |
| 677 |
x2=x1+2u; y2=.7[x_height,h]; x3=w-2u; bot y4=-oo; y3=max(.07h,y4+eps); |
| 678 |
z4-(.25u,0)=whatever[z2,z3]; numeric theta; theta=angle(z2-z3)-90; |
| 679 |
pos2(stem,theta); pos3(stem,theta); pos4(stem,0); |
| 680 |
filldraw circ_stroke z1e{right}...z2e---z3e |
| 681 |
...{2(x4e-x3e),y4e-y3e}z4e; % long diagonal |
| 682 |
y5=.5[bar_height,x_height]; z5=whatever[z2,z3]; |
| 683 |
x6=1.5u; y6-.5stem=-oo; pos5(hair,theta-90); pos6(stem,angle(z5-z6)-90); |
| 684 |
filldraw circ_stroke z6e--z5e; % short diagonal |
| 685 |
pos7(bar,90+theta); pos8(bar,90+theta); |
| 686 |
z7r=whatever[z1l,z6l]; z9=.8[z3,z2];z9=.5[z7,z8]; |
| 687 |
(x9-x7)*(y2-y1)/(x2-x1)=y7-y9; |
| 688 |
showdependencies; |
| 689 |
%angle(z2-z3)+90=angle(z7-z8); |
| 690 |
filldraw stroke z7e--z8e; |
| 691 |
penlabels(1,2,3,4,5,6,7,8,9); endchar; |
| 692 |
|
| 693 |
|
| 694 |
cmchar "Lowercase Greek upsidedown iota"; |
| 695 |
beginchar(oct"000",5u#,x_height#,0); |
| 696 |
italcorr x_height#*slant+.5hair#-u#; |
| 697 |
adjust_fit(if monospace: u#,u# else: 0,0 fi); pickup fine.nib; |
| 698 |
pos1(stem,0); rt x1r=hround(w-1.5u+.5stem); y1-.5stem=-oo; |
| 699 |
x2=x1+.25u; x4=0; hook_in(4,3,2); % opening hook |
| 700 |
filldraw circ_stroke z1e{up}...{u,x_height}z2e; % stem |
| 701 |
math_fit(0,ic#); penlabels(1,2,3,4); endchar; |
| 702 |
|
| 703 |
|
| 704 |
cmchar "Italic ligature fj"; |
| 705 |
beginchar(oct"106",5.5u#+.5max(1.5u#,stem#)+.5max(3.5u#,2flare#) |
| 706 |
+2letter_fit#,asc_height#,desc_depth#); |
| 707 |
italcorr max(asc_height#*slant+.5stem#-2u#,1/3x_height#*slant+.5hair#+.5u#); |
| 708 |
adjust_fit(0,0); pickup fine.nib; |
| 709 |
.5[x88,x89]=.5(w-3u-2letter_fit); x89-x88=u; y88=h; y89=-d; |
| 710 |
numeric theta; theta=angle(z88-z89); |
| 711 |
pos0(flare,0); pos1(hair,0); pos2(vair,90); |
| 712 |
pos3(.5[hair,stem],180); pos4(stem,theta+90); |
| 713 |
pos5(stem,theta-90); pos6(.5[hair,stem],0); |
| 714 |
pos7(vair,-90); pos8(hair,-180); pos9(flare,-180); |
| 715 |
pos11(stem,0); pos12(stem,0); lft x12l=hround(w-1.5u-.5stem); |
| 716 |
pos13(vair,-90); pos14(hair,-180); pos15(flare,-180); |
| 717 |
top y11=x_height; |
| 718 |
x12=x11; bot y12=-1/3d; bot y13r=-d-oo; y15-.5flare=-vround.9d; |
| 719 |
x13=lft x12l-u; lft x14r = hround(.5w-.25u); |
| 720 |
x1r=x11r; lft x8r=hround-.35u; x2=.5[x1,x4]; x7=.6[x8,x5]; |
| 721 |
y9-.5flare=vround-.85d; bot y7r=-d-oo; |
| 722 |
y0+.5flare=vround(.85[x_height,h]); top y2r=h+oo; |
| 723 |
y4=.25[x_height,h]; y5=.5[-d,y4]; |
| 724 |
z4=whatever[z88,z89]; z5=whatever[z88,z89]; |
| 725 |
x3=.8[x2+x4-x88,x88]; x6=.8[x7+x5-x89,x89]; y3=.8[y4,y2]; y6=.8[y5,y7]; |
| 726 |
filldraw stroke z11e---z12e...{left}z13e; |
| 727 |
bulb(13,14,15); |
| 728 |
bulb(2,1,0); bulb(7,8,9); % bulbs |
| 729 |
filldraw stroke z2e{left}...z3e...{z89-z88}z4e; % upper arc |
| 730 |
filldraw z4r--z5l--z5r--z4l--cycle; % left stem |
| 731 |
filldraw stroke z5e{z89-z88}...z6e...{left}z7e; % lower arc |
| 732 |
pickup crisp.nib; pos20(bar,90); pos21(bar,90); |
| 733 |
top y20r=top y21r=x_height; |
| 734 |
lft x20=lft x4r-.5stem-u; x21=x11; |
| 735 |
filldraw stroke z20e--z21e; % crossbar |
| 736 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,20,21,88,89); endchar; |
| 737 |
|
| 738 |
cmchar "The letter hausa K"; |
| 739 |
beginchar("K",13.5u#,cap_height#,0); |
| 740 |
italcorr cap_height#*slant-.5u#; |
| 741 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 742 |
numeric right_jut,stem[],alpha[]; |
| 743 |
if serifs: right_jut=.6cap_jut; |
| 744 |
else: right_jut=.4tiny; fi |
| 745 |
pickup tiny.nib; pos1(fudged.cap_stem,0); pos2(fudged.cap_stem,0); |
| 746 |
lft x1l=lft x2l=hround max(2u,3u-.5fudged.cap_stem); top y1=h; bot y2=0; |
| 747 |
filldraw stroke z1e--z2e; % stem |
| 748 |
stem2=max(tiny.breadth,fudged.cap_stem-3stem_corr); |
| 749 |
stem1=max(tiny.breadth,fudged.hair if hefty:-3stem_corr fi); |
| 750 |
top y3=h; rt x3r=hround(r-letter_fit-u-right_jut); |
| 751 |
bot y6=0; rt x6r=hround(r-letter_fit-.75u-right_jut); |
| 752 |
x4=x1; y4=1/3h; |
| 753 |
alpha1=diag_ratio(1,.5(stem1-tiny),y3-y4,x3r-x4); |
| 754 |
penpos3(alpha1*(stem1-tiny),0); penpos4(whatever,-90); |
| 755 |
alpha2=diag_ratio(1,.5(stem2-tiny),y1-y6,x6r-x1); |
| 756 |
penpos6(alpha2*(stem2-tiny),0); |
| 757 |
forsuffixes $=l,r: y3'$=.9h; y6'$=0; z4$=z3'$+whatever*(z3-z4); |
| 758 |
z5$=z6'$+whatever*(z1-z6)=whatever[z3,z4]; endfor |
| 759 |
z5=.5[z5l,z5r]; |
| 760 |
z3'r=z3r+penoffset z3-z4 of currentpen+whatever*(z3-z4); |
| 761 |
% we have also |z3'l=z3l+penoffset z4-z3 of currentpen+whatever*(z3-z4)|;\] |
| 762 |
z6'r=z6r+penoffset z1-z6 of currentpen+whatever*(z1-z6); |
| 763 |
z6'l=z6l+penoffset z6-z1 of currentpen+whatever*(z1-z6); |
| 764 |
fill z4r--diag_end(4r,3'r,1,.5,3'l,4l)--z4l--cycle; % upper diagonal |
| 765 |
fill z5l--diag_end(5l,6'l,.5,1,6'r,5r)--z5r--cycle; % lower diagonal |
| 766 |
if serifs: numeric inner_jut; |
| 767 |
if rt x2r+cap_jut+.5u+1<=lft x6l-cap_jut: inner_jut=cap_jut; |
| 768 |
else: rt x2r+cap_jut+.5u+1=lft x6l-inner_jut; fi |
| 769 |
dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % upper stem serif |
| 770 |
dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower stem serif |
| 771 |
dish_serif(6,5,g,1/2,inner_jut,h,1/3,right_jut)(dark);fi % lower diagonal serif |
| 772 |
if serifs: z10r=z3'l; z10r-z10l=whatever*(z1-z6); z10l=whatever[z4r,z3'r]; |
| 773 |
pos7(vair,90); x7=hround(x3+.5u); top y7 = top y3; |
| 774 |
pos8(cap_hair,0); pos9(flare,0); |
| 775 |
y8= .3[y5r,y7]; rt x8r=hround(w); |
| 776 |
fill z10r{z3-z4}..top z7r{right}--bot z7l{left}...{z4-z3}z10l--cycle; |
| 777 |
% filldraw stroke z10e{z3-z4}...z7e{right}; |
| 778 |
bulb(7,8,9); fi % bulb |
| 779 |
math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9,10); endchar; |
| 780 |
|
| 781 |
cmchar "The letter hausa D"; |
| 782 |
beginchar("T",15.5u#,cap_height#,0); |
| 783 |
italcorr .7cap_height#*slant-.5u#; |
| 784 |
adjust_fit(cap_serif_fit#,0); |
| 785 |
pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); |
| 786 |
lft x1l=lft x2l=hround max(4u,5u-.5cap_stem'); top y1=h; bot y2=0; |
| 787 |
filldraw stroke z1e--z2e; % stem |
| 788 |
penpos3(cap_band,90); penpos4(cap_band,90); |
| 789 |
penpos5(cap_curve-stem_corr,0); |
| 790 |
penpos6(cap_band,-90); penpos7(cap_band,-90); |
| 791 |
z3r=top z1; y4=y3; y5=.51[y4,y6]; y6=y7; |
| 792 |
z7r=bot z2; x4=x6=.5(w+2u#)+.25u; x5r=hround(w-u); |
| 793 |
x4l:=x6l:=x4-.25cap_curve; |
| 794 |
fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe |
| 795 |
if serifs: nodish_serif(1,2,a,1/3,.5cap_jut,b,1/3,.5cap_jut); % upper serif |
| 796 |
nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif |
| 797 |
if serifs: pickup fine.nib; top y10r= y3r; |
| 798 |
pos8(flare,180); pos9(hair,180); |
| 799 |
pos10(cap_band,90); rt x8r=0; x10=lft x1l - .5cap_jut; |
| 800 |
y8=vround(.7h); |
| 801 |
bulb(10,9,8); fi % bulb |
| 802 |
math_fit(0,ic#-.5u#); penlabels(1,2,3,4,5,6,7,8,9,10); endchar; |
| 803 |
|
| 804 |
cmchar "The letter hausa B"; |
| 805 |
beginchar("B",14.5u#,cap_height#,0); |
| 806 |
italcorr .75cap_height#*slant-.5u#; |
| 807 |
adjust_fit(cap_serif_fit#,0); |
| 808 |
numeric left_stem,right_curve,middle_weight; |
| 809 |
left_stem=cap_stem-hround 2stem_corr; middle_weight=.6vair+.5; |
| 810 |
pickup tiny.nib; pos1(left_stem,0); pos2(left_stem,0); |
| 811 |
lft x1l=lft x2l=hround max(4u,5u-.5left_stem); top y1=h; bot y2=0; |
| 812 |
filldraw stroke z1e--z2e; % stem |
| 813 |
penpos3(cap_band,90); penpos4(cap_band,90); |
| 814 |
penpos6(middle_weight,-90); penpos7(middle_weight,-90); |
| 815 |
penpos8(middle_weight,90); penpos9(middle_weight,90); |
| 816 |
penpos5(right_curve-stem_corr,0); penpos10(right_curve,0); |
| 817 |
penpos11(cap_band,-90); penpos12(cap_band,-90); |
| 818 |
z3r=top z1; y4=y3; y5=.5[y4,y6]; y6=y7; y7l-y8l=vair; |
| 819 |
z12r=bot z2; y11=y12; y10=.5[y11,y9]; y8=y9; .5[y7l,y8l]=.52h; |
| 820 |
x4=x6; x9=x11=x4+.5u; x7=x8=x1; x9l:=x4+.25u; |
| 821 |
x5r=hround(w-1.5u); x10r=hround(w-u); |
| 822 |
if serifs: right_curve=cap_curve-stem_corr; x4=.5[x1,w-1.5u]; |
| 823 |
else: right_curve=cap_curve-3stem_corr; x4=.5[x1,w-2.5u]; |
| 824 |
x4l:=x4l-.5u; x9l:=x9l-.5u; fi |
| 825 |
x6l:=x6l-.5u; x11l:=x11l-.5u; |
| 826 |
fill stroke z3e..super_arc.e(4,5) & super_arc.e(5,6)..z7e; % upper lobe |
| 827 |
fill stroke z8e..super_arc.e(9,10) & super_arc.e(10,11)..z12e; % lower lobe |
| 828 |
if serifs: nodish_serif(1,2,a,1/3,.5cap_jut,b,1/3,.5cap_jut); % upper serif |
| 829 |
nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif |
| 830 |
if serifs: pickup fine.nib; top y15r= y3r; |
| 831 |
pos13(flare,180); pos14(hair,180); |
| 832 |
pos15(cap_band,90); rt x13r=0; x15=lft x1l - .5cap_jut; |
| 833 |
y13=vround(.7h); |
| 834 |
bulb(15,14,13); fi % bulb |
| 835 |
math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); endchar; |
| 836 |
|
| 837 |
cmchar "The letter reverse D"; |
| 838 |
beginchar(oct"002",13.5u#,cap_height#,0); |
| 839 |
italcorr .7cap_height#*slant-.5u#; |
| 840 |
adjust_fit(0,cap_serif_fit#); |
| 841 |
pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); |
| 842 |
rt x1r=rt x2r=hround max(w-2u,w-3u+.5cap_stem'); top y1=h; bot y2=0; |
| 843 |
filldraw stroke z1e--z2e; % stem |
| 844 |
penpos3(cap_band,-90); penpos4(cap_band,-90); |
| 845 |
penpos5(cap_curve-stem_corr,0); |
| 846 |
penpos6(cap_band,90); penpos7(cap_band,90); |
| 847 |
z3l=top z1; y4=y3; y5=.51[y4,y6]; y6=y7; |
| 848 |
z7l=bot z2; x4=x6=.5w-.25u; x5l=hround(u); |
| 849 |
x4r:=x6r:=x4+.25cap_curve; |
| 850 |
fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe |
| 851 |
if serifs: nodish_serif(1,2,a,1/3,.5cap_jut,b,1/3,cap_jut); % upper serif |
| 852 |
nodish_serif(2,1,c,1/3,.5cap_jut,d,1/3,cap_jut); fi % lower serif |
| 853 |
math_fit(0,ic#-.5u#); penlabels(1,2,3,4,5,6,7); endchar; |