| 1 |
% Please see the file LICENCE-wsuipa.txt for licensing information. |
| 2 |
|
| 3 |
% This is IROMANL.MF in text format, as of Apr. 29, 1989. |
| 4 |
% Computer Modern Roman lower case: |
| 5 |
% These letters were originally coded by D. E. Knuth in November, 1979, |
| 6 |
% inspired by the Monotype faces used in {\sl The Art of Computer Programming}. |
| 7 |
% Sans serif designs by Richard Southall were added in April, 1982. |
| 8 |
% The programs were revised for the new \MF\ conventions in 1985. |
| 9 |
|
| 10 |
% Character codes \0141 through \0172 are generated. |
| 11 |
|
| 12 |
cmchar "The letter inverted a"; |
| 13 |
beginchar(oct"000",9u#,x_height#,0); |
| 14 |
bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); |
| 15 |
italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; |
| 16 |
adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); |
| 17 |
pickup fine.nib; top y3r=h+vround 1.5oo; |
| 18 |
if serifs: pos1(flare,180); pos2(hair,180); |
| 19 |
pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; |
| 20 |
y1=min(bh+.5flare+2vair+2,.9[bh,h]-.5flare); |
| 21 |
bulb(3,2,1); % bulb |
| 22 |
else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; |
| 23 |
pos3(1/8[vair,thin_join],90); |
| 24 |
x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; |
| 25 |
filldraw stroke term.e(3,1,left,.9,4); fi % terminal |
| 26 |
pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,h]; |
| 27 |
pos5(stem,0); x5=x4; y5=max(.55bh,2vair); |
| 28 |
filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem |
| 29 |
pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; |
| 30 |
pos7(hround(curve-2stem_corr),180); |
| 31 |
lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; |
| 32 |
pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; |
| 33 |
pos9(thin_join,360); z9l=z5l; |
| 34 |
(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); |
| 35 |
{{interim superness:=more_super; |
| 36 |
filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl |
| 37 |
if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); |
| 38 |
if hair#+.5stem#>1.5u#: pickup tiny.nib; |
| 39 |
pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 40 |
pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; |
| 41 |
pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; |
| 42 |
pos12(shaved_stem,0); x11=x12; top y12=slab+eps; |
| 43 |
filldraw z5'l---z10l...z11l{right}--z11r |
| 44 |
--z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot |
| 45 |
else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 46 |
pos10(shaved_stem,0); x10=x5'; y10=1/3bh; |
| 47 |
pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; |
| 48 |
pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); |
| 49 |
pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); |
| 50 |
(x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); |
| 51 |
filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook |
| 52 |
else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); |
| 53 |
pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 54 |
pos10(shaved_stem,0); x10=x5'; bot y10=0; |
| 55 |
filldraw stroke z5'e--z10e; fi % base of stem |
| 56 |
picture rvchar; |
| 57 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180);% |
| 58 |
else: rvchar=currentpicture rotatedabout((.58w,.5h),180);fi |
| 59 |
currentpicture:= rvchar; |
| 60 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; |
| 61 |
|
| 62 |
cmchar "letter script a"; |
| 63 |
beginchar(oct"001",9u#,x_height#,0); |
| 64 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 65 |
adjust_fit(0,0); pickup fine.nib; |
| 66 |
pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); |
| 67 |
pos4(stem,0); x4=x0; y4=vround .98h; |
| 68 |
x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); |
| 69 |
rt x4r=hround(w-2.5u+.5stem); |
| 70 |
top y1r=h+oo; bot y3r=-oo; y0=y2=.5[y1,y3]; |
| 71 |
filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2) |
| 72 |
& pulled_arc.e(2,3) & super_arc.e(3,0); % bowl |
| 73 |
x5=x4; x7=w; |
| 74 |
pos5(stem,0); pos6(vair,90); |
| 75 |
pos7(hair,180); |
| 76 |
y5=.25x_height; bot y6l=-oo; y7=.2x_height; |
| 77 |
x6=x5+1.5u; |
| 78 |
filldraw stroke z5e{-u,-x_height}...z6e{right}...{up}z7e; |
| 79 |
%hook_out(5,6,7); % closing hook |
| 80 |
filldraw stroke z4e--z5e; % stem |
| 81 |
penlabels(0,1,2,3,4,5,6,7); endchar; |
| 82 |
|
| 83 |
cmchar "Inverted script letter a"; |
| 84 |
beginchar(oct"03",10u#+serif_fit#,x_height#,0); |
| 85 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 86 |
adjust_fit(0,0); pickup fine.nib; |
| 87 |
pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); |
| 88 |
pos4(stem,0); x4=x0; y4=vround .98h; |
| 89 |
x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); |
| 90 |
rt x4r=hround(w-2.5u+.5stem); |
| 91 |
top y1r=h+oo; bot y3r=-oo; y0=y2=.5[y1,y3]; |
| 92 |
filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2) |
| 93 |
& pulled_arc.e(2,3) & super_arc.e(3,0); % bowl |
| 94 |
x5=x4; x7=w; |
| 95 |
pos5(stem,0); pos6(vair,90); |
| 96 |
pos7(hair,180); |
| 97 |
y5=.25x_height; bot y6l=-oo; y7=.2x_height; |
| 98 |
x6=x5+1.5u; |
| 99 |
filldraw stroke z5e{-u,-x_height}...z6e{right}...{up}z7e; |
| 100 |
filldraw stroke z4e--z5e; % stem |
| 101 |
picture rvchar; |
| 102 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180);% |
| 103 |
else: rvchar=currentpicture rotatedabout((.58w,.5h),180);fi |
| 104 |
currentpicture:= rvchar; |
| 105 |
penlabels(0,1,2,3,4,5,6,7); endchar; |
| 106 |
|
| 107 |
cmchar "The letter crossed b"; |
| 108 |
beginchar(oct"005",10u#+serif_fit#,asc_height#,0); |
| 109 |
italcorr .5x_height#*slant+min(.5curve#-u#,-.25u#); |
| 110 |
adjust_fit(serif_fit#,0); |
| 111 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 112 |
pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; |
| 113 |
lft x1l=hround(2.5u-.5stem'); top y1=h; |
| 114 |
numeric edge; edge=rt x2r; |
| 115 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); |
| 116 |
pos4(vair,90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); |
| 117 |
rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l),1/3[rt x2,edge]); |
| 118 |
y3=1/8[bar_height,x_height]; |
| 119 |
x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; |
| 120 |
rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; |
| 121 |
x6l=x4l-.2u; bot y6r=-oo; |
| 122 |
x7=x3; y7=min(y3,y6+y4-y3+.6vair); |
| 123 |
(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x4,x5r]); |
| 124 |
(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x6,x5r]); |
| 125 |
filldraw stroke z3e{up}...pulled_arc.e(4,5)&pulled_arc.e(5,6)...{up}z7e; % bowl |
| 126 |
y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); |
| 127 |
y2=ypart(((edge,h)--(edge,0))intersectionpoint(z6l{left}...{up}z7l)); |
| 128 |
pickup tiny.nib; filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 129 |
pickup crisp.nib; pos8(hair,0); pos7'(stem,0); |
| 130 |
z7'=z2; x8l=x7'l; bot y8=0; |
| 131 |
filldraw stroke z7'e--z8e; % point |
| 132 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif |
| 133 |
pickup crisp.nib; pos15(bar,90); pos16(bar,90); |
| 134 |
top y15r=.8[y2,y1]=top y16r; |
| 135 |
lft x15=.25u; rt x16=.2[x5,x1]; |
| 136 |
filldraw stroke z15e--z16e; % bar |
| 137 |
penlabels(0,1,2,3,4,5,6,7,8,15,16); endchar; |
| 138 |
|
| 139 |
cmchar "The letter barred b"; |
| 140 |
beginchar(oct"06",10.5u#+serif_fit#,asc_height#,0); |
| 141 |
italcorr .5x_height#*slant+min(.5curve#-u#,-.25u#); |
| 142 |
adjust_fit(serif_fit#,0); |
| 143 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 144 |
pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; |
| 145 |
lft x1l=hround(3u-.5stem'); top y1=h; |
| 146 |
numeric edge; edge=rt x2r; |
| 147 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); |
| 148 |
pos4(vair,90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); |
| 149 |
rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l),1/3[rt x2,edge]); |
| 150 |
y3=1/8[bar_height,x_height]; |
| 151 |
x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; |
| 152 |
rt x5r=hround min(w-1.85u+.5curve,w-1.1u); y5=.5x_height; |
| 153 |
x6l=x4l-.2u; bot y6r=-oo; |
| 154 |
x7=x3; y7=min(y3,y6+y4-y3+.6vair); |
| 155 |
(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x4,x5r]); |
| 156 |
(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x6,x5r]); |
| 157 |
filldraw stroke z3e{up}...pulled_arc.e(4,5)&pulled_arc.e(5,6)...{up}z7e; % bowl |
| 158 |
y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); |
| 159 |
y2=ypart(((edge,h)--(edge,0))intersectionpoint(z6l{left}...{up}z7l)); |
| 160 |
pickup tiny.nib; filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 161 |
pickup crisp.nib; pos8(hair,0); pos7'(stem,0); |
| 162 |
z7'=z2; x8l=x7'l; bot y8=0; |
| 163 |
filldraw stroke z7'e--z8e; % point |
| 164 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif |
| 165 |
% bar |
| 166 |
pos10(bar,90); pos11(bar,90); |
| 167 |
x10=hround .1u; x11=w-x10; |
| 168 |
y10=y11=y5; |
| 169 |
filldraw stroke z10e--z11e; |
| 170 |
penlabels(0,1,2,3,4,5,6,7,8,10,11); endchar; |
| 171 |
|
| 172 |
cmchar "The letter slashed b"; |
| 173 |
beginchar(oct"07",10u#+serif_fit#,body_height#,paren_depth#); |
| 174 |
italcorr .5x_height#*slant+min(.5curve#-u#,-.25u#); |
| 175 |
adjust_fit(serif_fit#,0); |
| 176 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 177 |
pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; |
| 178 |
lft x1l=hround(2.5u-.5stem'); top y1=asc_height; |
| 179 |
numeric edge; edge=rt x2r; |
| 180 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); |
| 181 |
pos4(vair,90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); |
| 182 |
rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l),1/3[rt x2,edge]); |
| 183 |
y3=1/8[bar_height,x_height]; |
| 184 |
x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; |
| 185 |
rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; |
| 186 |
x6l=x4l-.2u; bot y6r=-oo; |
| 187 |
x7=x3; y7=min(y3,y6+y4-y3+.6vair); |
| 188 |
(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x4,x5r]); |
| 189 |
(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x6,x5r]); |
| 190 |
filldraw stroke z3e{up}...pulled_arc.e(4,5)&pulled_arc.e(5,6)...{up}z7e; % bowl |
| 191 |
y0=ypart(((edge,asc_height)--(edge,0))intersectionpoint(z3l{up}... |
| 192 |
{right}z4l)); |
| 193 |
y2=ypart(((edge,asc_height)--(edge,0))intersectionpoint(z6l{left}... |
| 194 |
{up}z7l)); |
| 195 |
pickup tiny.nib; filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 196 |
pickup crisp.nib; pos8(hair,0); pos7'(stem,0); |
| 197 |
z7'=z2; x8l=x7'l; bot y8=0; |
| 198 |
filldraw stroke z7'e--z8e; % point |
| 199 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif |
| 200 |
% slash |
| 201 |
adjust_fit(0,0); pickup rule.nib; |
| 202 |
rt x11=hround(w-.1u)+eps; top y11=h+eps; |
| 203 |
lft x12=hround u-eps; bot y12=-d-eps; |
| 204 |
draw z11--z12; % diagonal |
| 205 |
penlabels(0,1,2,3,4,5,6,7,8,11,12); endchar; |
| 206 |
|
| 207 |
cmchar "The letter hooktop b"; |
| 208 |
beginchar(oct"010",10u#+serif_fit#,asc_height#,0); |
| 209 |
italcorr .5x_height#*slant+min(.5curve#-u#,-.25u#); |
| 210 |
adjust_fit(serif_fit#,0); |
| 211 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 212 |
pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; |
| 213 |
lft x1l=hround(2.5u-.5stem'); top y1=.7h; |
| 214 |
numeric edge; edge=rt x2r; |
| 215 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); |
| 216 |
pos4(vair,90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); |
| 217 |
rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l),1/3[rt x2,edge]); |
| 218 |
y3=1/8[bar_height,x_height]; |
| 219 |
x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; |
| 220 |
rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; |
| 221 |
x6l=x4l-.2u; bot y6r=-oo; |
| 222 |
x7=x3; y7=min(y3,y6+y4-y3+.6vair); |
| 223 |
(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x4,x5r]); |
| 224 |
(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x6,x5r]); |
| 225 |
filldraw stroke z3e{up}...pulled_arc.e(4,5)&pulled_arc.e(5,6)...{up}z7e; % bowl |
| 226 |
y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); |
| 227 |
y2=ypart(((edge,h)--(edge,0))intersectionpoint(z6l{left}...{up}z7l)); |
| 228 |
pickup tiny.nib; filldraw stroke z0e--z2e; % stem |
| 229 |
pickup crisp.nib; pos8(hair,0); pos7'(stem,0); |
| 230 |
z7'=z2; x8l=x7'l; bot y8=0; |
| 231 |
filldraw stroke z7'e--z8e; % point |
| 232 |
%if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif |
| 233 |
% hooktop |
| 234 |
pickup tiny.nib; |
| 235 |
pos10(vair,-90); x10=.35[x1,x5]; top y10l=h+o+1; |
| 236 |
pos11(hair,0); rt x11r=hround(w-2.25u); y11=.85h; |
| 237 |
pos12(flare,0); |
| 238 |
pos10'(vair,90); z10'=z10; |
| 239 |
bulb(10',11,12); % bulb |
| 240 |
filldraw stroke z0e{up}...pulled_super_arc.e(1,10)(.4superpull); |
| 241 |
% arc and stem |
| 242 |
penlabels(0,1,2,3,4,5,6,7,8,10,11,12); endchar; |
| 243 |
|
| 244 |
cmchar "The letter open o (turned c)"; |
| 245 |
beginchar(oct"075",8u#,x_height#,0); |
| 246 |
italcorr x_height#*slant-.2u#; |
| 247 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 248 |
pickup fine.nib; pos2(vair',90); pos4(vair',270); |
| 249 |
x2=.45(w+u); x4=.5(w+u); |
| 250 |
top y2r=vround(h+1.5oo); bot y4r=-oo; |
| 251 |
pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5h; |
| 252 |
if serifs: pos1(hair,0); pos0(flare,0); |
| 253 |
y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare); |
| 254 |
rt x1r=hround(w-.9u); bulb(2,1,0); % bulb |
| 255 |
pos5(hair,0); rt x5r=hround(w-.5u); |
| 256 |
y5=max(good.y(.5bar_height-.9),y4l+vair'); |
| 257 |
(x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); |
| 258 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 259 |
& pulled_super_arc.e(3,4)(.5superpull) |
| 260 |
..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal |
| 261 |
else: pos1(4/7[vair',flare],80); |
| 262 |
rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; |
| 263 |
filldraw stroke term.e(2,1,right,.8,4); % upper terminal |
| 264 |
pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); |
| 265 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 266 |
forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; |
| 267 |
if angle direction 1 of p.e>75: |
| 268 |
p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor |
| 269 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 270 |
& pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal |
| 271 |
picture rvchar; |
| 272 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180);% |
| 273 |
else: rvchar=currentpicture rotatedabout((.58w,.5h),180);fi |
| 274 |
currentpicture:= rvchar; |
| 275 |
penlabels(0,1,2,3,4,5); endchar; |
| 276 |
|
| 277 |
|
| 278 |
cmchar "The letter curly-tail c"; |
| 279 |
beginchar(oct"013",8u#,x_height#,desc_depth#); |
| 280 |
italcorr x_height#*slant-.2u#; |
| 281 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 282 |
pickup fine.nib; pos2(vair',90); pos4(vair',270); |
| 283 |
x2=x4=.5(w+u); top y2r=vround(h+1.5oo); bot y4r=-oo; |
| 284 |
pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5h; |
| 285 |
if serifs: pos1(hair,0); pos0(flare,0); |
| 286 |
y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare); |
| 287 |
rt x1r=hround(w-.7u); bulb(2,1,0); % bulb |
| 288 |
pos5(hair,0); rt x5r=hround(w+.2u); |
| 289 |
y5=max(good.y(.4bar_height-.9),y4l+vair'); |
| 290 |
(x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); |
| 291 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 292 |
& pulled_super_arc.e(3,4)(.5superpull) |
| 293 |
..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal |
| 294 |
else: pos1(4/7[vair',flare],80); |
| 295 |
rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; |
| 296 |
filldraw stroke term.e(2,1,right,.8,4); % upper terminal |
| 297 |
pos5(.6[vair',flare],275); rt x5r=hround(w+.2u); |
| 298 |
y5r=good.y(y5r+1/4bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 299 |
forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; |
| 300 |
if angle direction 1 of p.e>75: |
| 301 |
p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor |
| 302 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 303 |
& pulled_super_arc.e(3,4)(.5superpull) & p.e; fi%arc and lower terminal |
| 304 |
numeric edge; edge=lft x3l;path edge_path; |
| 305 |
edge_path=(edge,h)--(edge,0); |
| 306 |
pos6(hair,70); x6l=.4[x4,x5]; y6=.35h; |
| 307 |
pos8(hair,180); x8l= lft x3r; bot y8=-.75d; |
| 308 |
pos7(hair,180); x7=.54[x3r,x4r]; |
| 309 |
y7=ypart(edge_path intersectionpoint(z3r{down}...{right}z4r)); |
| 310 |
filldraw stroke pulled_super_arc.e(5,6)(.9superpull){left} |
| 311 |
...z7e--z8e; |
| 312 |
penlabels(0,1,2,3,4,5,6,7,8); endchar; |
| 313 |
|
| 314 |
cmchar "The letter stretched c"; |
| 315 |
beginchar(oct"14",9u#,asc_height#,desc_depth#); |
| 316 |
italcorr x_height#*slant-.2u#; |
| 317 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 318 |
pickup fine.nib; pos2(.7cap_curve,90); pos4(.7cap_curve,270); |
| 319 |
x2=x4=.5(w+u); top y2r=vround(h+1.5oo); bot y4r=-d-oo; |
| 320 |
pos3(.9cap_curve,180); lft x3r=hround max(.6u,1.35u-.5cap_curve); y3=.5h; |
| 321 |
pos3'(.9cap_curve,180); lft x3'r=hround max(.6u,1.35u-.5cap_curve); |
| 322 |
y3'=.25h; |
| 323 |
pos1(.8cap_curve,80); |
| 324 |
rt x1r=hround(w-.6u); top y1r=vround .82(asc_height); |
| 325 |
filldraw stroke term.e(2,1,right,.8,4); % upper terminal |
| 326 |
pos5(.8cap_curve,275); rt x5r=hround(w-.5u); |
| 327 |
top y5l=vround -.01d; y5r:=good.y y5r; |
| 328 |
x5l:=good.x x5l; |
| 329 |
forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; |
| 330 |
if angle direction 1 of p.e>75: |
| 331 |
p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor |
| 332 |
filldraw stroke pulled_super_arc.e(2,3)(.9superpull)..z3'e |
| 333 |
...pulled_super_arc.e(3',4)(.9superpull) & p.e; % arc and lower terminal |
| 334 |
penlabels(0,1,2,3,4,5); endchar; |
| 335 |
|
| 336 |
cmchar "The letter slashed c"; |
| 337 |
beginchar(oct"12",8u#,.75asc_height#,.5desc_depth#); |
| 338 |
italcorr x_height#*slant-.2u#; |
| 339 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 340 |
pickup fine.nib; pos2(vair',90); pos4(vair',270); |
| 341 |
x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo; |
| 342 |
pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height; |
| 343 |
if serifs: pos1(hair,0); pos0(flare,0); |
| 344 |
y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,x_height]-.5flare); |
| 345 |
rt x1r=hround(w-.7u); bulb(2,1,0); % bulb |
| 346 |
pos5(hair,0); rt x5r=hround(w-.5u); |
| 347 |
y5=max(good.y(.5bar_height-.9),y4l+vair'); |
| 348 |
(x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); |
| 349 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 350 |
& pulled_super_arc.e(3,4)(.5superpull) |
| 351 |
..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal |
| 352 |
else: pos1(4/7[vair',flare],80); |
| 353 |
rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; |
| 354 |
filldraw stroke term.e(2,1,right,.8,4); % upper terminal |
| 355 |
pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); |
| 356 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 357 |
forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; |
| 358 |
if angle direction 1 of p.e>75: |
| 359 |
p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor |
| 360 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 361 |
& pulled_super_arc.e(3,4)(.5superpull) & p.e; fi %arc and lower terminal |
| 362 |
% slash |
| 363 |
adjust_fit(0,0); pickup rule.nib; |
| 364 |
rt x11=hround(w-.1u)+eps; top y11=h+eps; |
| 365 |
lft x12=hround u-eps; bot y12=-d-eps; |
| 366 |
draw z11--z12; % diagonal |
| 367 |
penlabels(0,1,2,3,4,5,11,12); endchar; |
| 368 |
|
| 369 |
cmchar "The letter barred d"; |
| 370 |
beginchar(oct"16",10.5u#+serif_fit#,asc_height#,0); |
| 371 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 372 |
adjust_fit(0,serif_fit#); |
| 373 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 374 |
pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; |
| 375 |
rt x1r=hround(w-3u+.5stem'); top y1=h; |
| 376 |
numeric edge; edge=lft x2l; |
| 377 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); |
| 378 |
pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); |
| 379 |
lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); |
| 380 |
y3=1/8[bar_height,x_height]; |
| 381 |
x4l=.5(w-serif_fit)-.8u; top y4r=x_height+oo; |
| 382 |
lft x5r=hround max(1.85u-.5curve,1.1u); y5=.5x_height; |
| 383 |
x6l=x4l-.2u; bot y6r=-oo; |
| 384 |
x7=x3; y7=min(y3,y6+y4-y3+.6vair); |
| 385 |
(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); |
| 386 |
(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); |
| 387 |
filldraw stroke z3e{up}...pulled_arc.e(4,5) |
| 388 |
& pulled_arc.e(5,6)...{up}z7e; % bowl |
| 389 |
y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); |
| 390 |
pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; |
| 391 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 392 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif |
| 393 |
sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif |
| 394 |
% bar |
| 395 |
pos10(bar,90); pos11(bar,90); |
| 396 |
x10=hround .1u; x11=w-x10; |
| 397 |
y10=y11=y5; |
| 398 |
filldraw stroke z10e--z11e; |
| 399 |
penlabels(0,1,2,3,4,5,6,7,10,11); endchar; |
| 400 |
|
| 401 |
cmchar "The letter slashed d"; |
| 402 |
beginchar(oct"17",10u#+serif_fit#,body_height#,paren_depth#); |
| 403 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 404 |
adjust_fit(0,serif_fit#); |
| 405 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 406 |
pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; |
| 407 |
rt x1r=hround(w-2.5u+.5stem'); top y1=asc_height; |
| 408 |
numeric edge; edge=lft x2l; |
| 409 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); |
| 410 |
pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); |
| 411 |
lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); |
| 412 |
y3=1/8[bar_height,x_height]; |
| 413 |
x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; |
| 414 |
lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; |
| 415 |
x6l=x4l-.2u; bot y6r=-oo; |
| 416 |
x7=x3; y7=min(y3,y6+y4-y3+.6vair); |
| 417 |
(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); |
| 418 |
(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); |
| 419 |
filldraw stroke z3e{up}...pulled_arc.e(4,5) |
| 420 |
& pulled_arc.e(5,6)...{up}z7e; % bowl |
| 421 |
y0=ypart(((edge,asc_height)--(edge,0))intersectionpoint(z3l{up}... |
| 422 |
{left}z4l)); |
| 423 |
pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; |
| 424 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 425 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif |
| 426 |
sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif |
| 427 |
% slash |
| 428 |
adjust_fit(0,0); pickup rule.nib; |
| 429 |
rt x11=hround(w-.1u)+eps; top y11=h+eps; |
| 430 |
lft x12=hround u-eps; bot y12=-d-eps; |
| 431 |
draw z11--z12; % diagonal |
| 432 |
penlabels(0,1,2,3,4,5,6,7,11,12);endchar; |
| 433 |
|
| 434 |
cmchar "The letter hooktop d"; |
| 435 |
beginchar(oct"20",12u#+serif_fit#,asc_height#,0); |
| 436 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 437 |
adjust_fit(0,serif_fit#); |
| 438 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 439 |
pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; |
| 440 |
rt x1r=hround(.76w-2.5u+.5stem'); top y1=.7h; |
| 441 |
numeric edge; edge=lft x2l; |
| 442 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); |
| 443 |
pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); |
| 444 |
lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); |
| 445 |
y3=1/8[bar_height,x_height]; |
| 446 |
x4l=.5(.76w-serif_fit)-.3u; top y4r=x_height+oo; |
| 447 |
lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; |
| 448 |
x6l=x4l-.2u; bot y6r=-oo; |
| 449 |
x7=x3; y7=min(y3,y6+y4-y3+.6vair); |
| 450 |
(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); |
| 451 |
(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); |
| 452 |
filldraw stroke z3e{up}...pulled_arc.e(4,5) |
| 453 |
& pulled_arc.e(5,6)...{up}z7e; % bowl |
| 454 |
y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); |
| 455 |
pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; |
| 456 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 457 |
sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); % lower serif |
| 458 |
% hooktop |
| 459 |
pickup tiny.nib; |
| 460 |
pos10(vair,-90); x10=.5[x1,x11]; top y10l=h+o+1; |
| 461 |
pos11(hair,0); rt x11r=hround(w-.5u); y11=.85h; |
| 462 |
pos12(flare,0); |
| 463 |
pos10'(vair,90); z10'=z10; |
| 464 |
bulb(10',11,12); % bulb |
| 465 |
filldraw stroke z0e{up}...pulled_super_arc.e(1,10)(.4superpull); |
| 466 |
% arc and stem |
| 467 |
penlabels(0,1,2,3,4,5,6,7,10,11,12); endchar; |
| 468 |
|
| 469 |
cmchar "The letter right-tailed d"; |
| 470 |
beginchar(oct"021",12.5u#+serif_fit#,asc_height#,desc_depth#); |
| 471 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 472 |
adjust_fit(0,serif_fit#); |
| 473 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 474 |
pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; |
| 475 |
rt x1r=hround(.8w-2.5u+.5stem'); top y1=h; |
| 476 |
numeric edge; edge=lft x2l; |
| 477 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); |
| 478 |
pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); |
| 479 |
lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); |
| 480 |
y3=1/8[bar_height,x_height]; |
| 481 |
x4l=.5(.8w-serif_fit)-.3u; top y4r=x_height+oo; |
| 482 |
lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; |
| 483 |
x6l=x4l-.2u; bot y6r=-oo; |
| 484 |
x7=x3; y7=min(y3,y6+y4-y3+.6vair); |
| 485 |
(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); |
| 486 |
(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); |
| 487 |
filldraw stroke z3e{up}...pulled_arc.e(4,5) |
| 488 |
& pulled_arc.e(5,6)...{up}z7e; % bowl |
| 489 |
y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); |
| 490 |
pickup tiny.nib; bot y2=-1/2d; |
| 491 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 492 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop);fi% upper serif |
| 493 |
%tail |
| 494 |
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); |
| 495 |
define_whole_blacker_pixels(dot_diam); |
| 496 |
pickup tiny.nib; pos20(stem,180); z2=z20; |
| 497 |
pos15(vair,-90); pos16(hair,0); pos17(flare,0); |
| 498 |
x15=.5[x16,x20]; bot y15l=-d+oo; y16=y20+.15dot_size; |
| 499 |
rt x16r=hround(w-.1u); |
| 500 |
bulb(15,16,17); % arc and bulb |
| 501 |
filldraw stroke z20e{down}..{right}z15e{up}; |
| 502 |
penlabels(0,1,2,3,4,5,6,7,15,16,17,20); endchar; |
| 503 |
|
| 504 |
cmchar "The letter crossed d"; |
| 505 |
beginchar(oct"015",10u#+serif_fit#,asc_height#,0); |
| 506 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 507 |
adjust_fit(0,serif_fit#); |
| 508 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 509 |
pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; |
| 510 |
rt x1r=hround(w-2.5u+.5stem'); top y1=h; |
| 511 |
numeric edge; edge=lft x2l; |
| 512 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); |
| 513 |
pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); |
| 514 |
lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); |
| 515 |
y3=1/8[bar_height,x_height]; |
| 516 |
x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; |
| 517 |
lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; |
| 518 |
x6l=x4l-.2u; bot y6r=-oo; |
| 519 |
x7=x3; y7=min(y3,y6+y4-y3+.6vair); |
| 520 |
(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); |
| 521 |
(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); |
| 522 |
filldraw stroke z3e{up}...pulled_arc.e(4,5) |
| 523 |
& pulled_arc.e(5,6)...{up}z7e; % bowl |
| 524 |
y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); |
| 525 |
pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; |
| 526 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 527 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif |
| 528 |
sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif |
| 529 |
pickup crisp.nib; pos15(bar,90); pos16(bar,90); |
| 530 |
top y15r=.8[y2,y1]=top y16r; |
| 531 |
lft x15=hround(w-.25u); lft x16=.23[x5r,x1]; |
| 532 |
filldraw stroke z15e--z16e; % bar |
| 533 |
penlabels(0,1,2,3,4,5,6,7,15,16); endchar; |
| 534 |
|
| 535 |
cmchar "The letter (schwa) turned e"; |
| 536 |
beginchar(oct"025",7.25u#+max(.75u#,.5curve#),x_height#,0); |
| 537 |
italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); |
| 538 |
adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); |
| 539 |
numeric left_curve,right_curve; |
| 540 |
left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; |
| 541 |
if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi |
| 542 |
if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi |
| 543 |
pickup tiny.nib; pos1(right_curve,0); |
| 544 |
pos2(vair,90); pos3(left_curve,180); |
| 545 |
y1=good.y bar_height; top y2r=h+vround 1.5oo; y0l=bot y1; |
| 546 |
rt x1r=hround min(w-.5u,w-u+.5right_curve); |
| 547 |
lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; |
| 548 |
{{interim superness:=more_super; |
| 549 |
filldraw stroke super_arc.e(1,2)}}; % right bowl |
| 550 |
y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; |
| 551 |
if serifs: pos4(vair',270); pos5(hair,360); |
| 552 |
y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; |
| 553 |
(x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); |
| 554 |
filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) |
| 555 |
...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal |
| 556 |
else: pos4(vair,270); |
| 557 |
filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc |
| 558 |
pickup fine.nib; pos4'(vair,270); z4=z4'; |
| 559 |
pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); |
| 560 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 561 |
filldraw stroke term.e(4',5,right,1,4); fi % terminal |
| 562 |
path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); |
| 563 |
y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; |
| 564 |
forsuffixes $=l,r: |
| 565 |
x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor |
| 566 |
fill stroke z0e--z1'e; % crossbar |
| 567 |
picture rvchar; |
| 568 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180);% |
| 569 |
else: rvchar=currentpicture rotatedabout((.58w,.5h),180);fi |
| 570 |
currentpicture:= rvchar; |
| 571 |
penlabels(0,1,2,3,4,5); endchar; |
| 572 |
|
| 573 |
cmchar "The letter right-hook schwa (turned e)"; |
| 574 |
beginchar(oct"026",10.4u#+max(.85u#,.6curve#),x_height#,0); |
| 575 |
italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); |
| 576 |
adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); |
| 577 |
numeric left_curve,right_curve; |
| 578 |
left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; |
| 579 |
if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi |
| 580 |
if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi |
| 581 |
pickup tiny.nib; pos1(.8right_curve,0); |
| 582 |
pos2(vair,90); pos3(left_curve,180); |
| 583 |
y1=.7h; top y2r=h+vround 1.5oo; |
| 584 |
rt x1r=hround min(w-.5u,w-u+.5right_curve); |
| 585 |
lft x3r=hround max(3.2u,3.7u-.25left_curve); x2=.61w+.26u; |
| 586 |
{{interim superness:=more_super; |
| 587 |
filldraw stroke super_arc.e(1,2)}}; % right bowl |
| 588 |
y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; |
| 589 |
if serifs: pos4(vair,270); pos5(hair,360); |
| 590 |
y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; |
| 591 |
(x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); |
| 592 |
filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) |
| 593 |
...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal |
| 594 |
else: pos4(vair,270); |
| 595 |
filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc |
| 596 |
pickup fine.nib; pos4'(vair,270); z4=z4'; |
| 597 |
pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); |
| 598 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 599 |
filldraw stroke term.e(4',5,right,1,4); fi % terminal |
| 600 |
pos0(hair,0); pos1'(hair,0); |
| 601 |
z1'=z1; bot y0=0-oo; x0l=hround(x3r-1.65u)=x12l; |
| 602 |
filldraw stroke z1'e--z0e; % crossbar |
| 603 |
% hook |
| 604 |
pos12(hair,0); pos13(vair',90); pos14(vair,180); |
| 605 |
y14=.5[y0,y13]; x13=.5[x0,x14]; |
| 606 |
y12=.7[y0,y13]; |
| 607 |
bot y13l=.45h; x14=0; |
| 608 |
filldraw stroke z14e{up}..z13e{right}...{down}z12e---z0e; |
| 609 |
picture rvchar; |
| 610 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180);% |
| 611 |
else: rvchar=currentpicture rotatedabout((.58w,.5h),180);fi |
| 612 |
currentpicture:= rvchar; |
| 613 |
penlabels(0,1,2,3,4,5,12,13,14); endchar; |
| 614 |
|
| 615 |
|
| 616 |
cmchar "The letter reversed e"; |
| 617 |
beginchar(oct"027",7.15u#+max(.75u#,.5curve#),x_height#,0); |
| 618 |
italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); |
| 619 |
adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); |
| 620 |
numeric left_curve,right_curve; |
| 621 |
left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; |
| 622 |
if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi |
| 623 |
if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi |
| 624 |
pickup tiny.nib; pos1(right_curve,180); |
| 625 |
pos2(vair,90); pos3(left_curve,0); |
| 626 |
y1=good.y bar_height; top y2r=h+vround 1.5oo; y0l=bot y1; |
| 627 |
rt x1r=hround min(.5u,u+.5right_curve); |
| 628 |
lft x3r=hround max(w-.75u,w-1.25u-.5left_curve); x2=.5w-.25u; |
| 629 |
{{interim superness:=more_super; |
| 630 |
filldraw stroke super_arc.e(1,2)}}; % right bowl |
| 631 |
y3=.5[y2,y4]; bot y4l=-oo; x4=x2-.25u; |
| 632 |
if serifs: pos4(vair',-90); pos5(hair,180); |
| 633 |
y5=max(good.y(.5bar_height-.9),y4r+vair); x5r=x1r; |
| 634 |
(x,y4r)=whatever[z4r,z5]; x4l:=min(x,x4l-.5u); |
| 635 |
filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) |
| 636 |
...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal |
| 637 |
else: pos4(vair,270); |
| 638 |
filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc |
| 639 |
pickup fine.nib; pos4'(vair,270); z4=z4'; |
| 640 |
pos5(.5[vair,flare],275); rt x5l=hround(w-.6u); |
| 641 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 642 |
filldraw stroke term.e(4',5,right,1,4); fi % terminal |
| 643 |
path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); |
| 644 |
y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; |
| 645 |
forsuffixes $=l,r: |
| 646 |
x0$=xpart(((w,y0$)--(x1,y0$)) intersectionpoint testpath); endfor |
| 647 |
fill stroke z0e--z1'e; % crossbar |
| 648 |
penlabels(0,1,2,3,4,5); endchar; |
| 649 |
|
| 650 |
cmchar "The letter eth (crossed o)"; |
| 651 |
beginchar(oct"023",9u#,asc_height#,0); |
| 652 |
italcorr .7x_height#*slant; |
| 653 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 654 |
penpos1(vair,90); penpos3(vair',-90); |
| 655 |
penpos2(curve,180); penpos4(curve,0); |
| 656 |
x2r=hround max(.5u,1.25u-.5curve); |
| 657 |
x4r=w-x2r; x1=x3=.5w; y1r=.62h+vround 1.5oo; y3r=-oo; |
| 658 |
y2=y4=.31h-vair_corr; y2l:=y4l:=.32h; |
| 659 |
penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 660 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl |
| 661 |
penpos5(stem,0); penpos6(stem,0); |
| 662 |
x5l = x4l; y5 =vround(y4+.2h); |
| 663 |
x6l=x2; top y6=h; |
| 664 |
penstroke z4e..z5e..z6e; |
| 665 |
%penstroke pulled_arc.e(4,5)&z5e--z6e; |
| 666 |
pickup fine.nib; |
| 667 |
pos7(bar,125); pos8(bar,125); |
| 668 |
x7r=x2l; y7 = .75h; top y8=h; |
| 669 |
x8=x4; |
| 670 |
filldraw stroke z7e--z8e; |
| 671 |
penlabels(1,2,3,4,5,6,7,8); endchar; |
| 672 |
|
| 673 |
cmchar "Variant letter g"; |
| 674 |
beginchar(oct"034",10u#+serif_fit#,x_height#,desc_depth#); |
| 675 |
italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi; |
| 676 |
adjust_fit(0,serif_fit# if serifs: -.5u# fi); |
| 677 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 678 |
pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; |
| 679 |
rt x1r=hround(w-2.5u+.5stem'); |
| 680 |
numeric edge; edge=lft x2l; |
| 681 |
path edge_path; edge_path=(edge,h)--(edge,0); |
| 682 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); |
| 683 |
pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); |
| 684 |
lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),2/3[lft x2,edge]); y3=bar_height; |
| 685 |
x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; |
| 686 |
lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; |
| 687 |
x6l=x4l-.2u; bot y6r=vround 1/3vair; |
| 688 |
lft x7l=edge; y7=min(y3,y6+y4-y3+.6vair); |
| 689 |
(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); |
| 690 |
(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); |
| 691 |
filldraw stroke z3e{up}...{left}z4e&super_arc.e(4,5) |
| 692 |
&super_arc.e(5,6)&z6e{right}...{up}z7e; % bowl |
| 693 |
y1=ypart(edge_path intersectionpoint(z3l{up}...{left}z4l)); |
| 694 |
y0=ypart(edge_path intersectionpoint(z7l{down}...{left}z6l)); |
| 695 |
pickup tiny.nib; bot y2=if serifs: -.25d else: 0 fi; |
| 696 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 697 |
pickup crisp.nib; |
| 698 |
pos8(hround(hair-stem_corr),0); pos7'(stem',0); |
| 699 |
z7'=z1; x8r=x7'r; top y8=h+oo; |
| 700 |
filldraw stroke z7'e--z8e; % point |
| 701 |
if serifs: pickup tiny.nib; |
| 702 |
pos9(vair,-90); x9=.5[x2,x10]; bot y9r=-d-o-1; |
| 703 |
pos10(hair,-180); lft x10r=hround u; y10=-.75d+.5flare; |
| 704 |
pos11(flare,-180); z11r=z10r; |
| 705 |
bulb(9,10,11); filldraw stroke super_arc.e(2,9); % tail |
| 706 |
else: pickup fine.nib; pos2'(stem,0); z2'=z2; |
| 707 |
z2''r=z2'r; z2''=z2'; z2''l=(x2'l,0); |
| 708 |
pos9(vair,-90); x9=4.5u; bot y9r=-d-o-1; |
| 709 |
pos10(.5[vair,flare],-90); lft x10=hround 1.25u; |
| 710 |
y10r=good.y -5/6d; y10l:=good.y y10l; |
| 711 |
filldraw stroke z2'e..z2''e&super_arc.e(2'',9) |
| 712 |
& term.e(9,10,left,.9,4);fi % tail |
| 713 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; |
| 714 |
cmchar "Variant letter hooktop g"; |
| 715 |
beginchar(oct"35",12u#+serif_fit#,asc_height#,1.1desc_depth#); |
| 716 |
italcorr x_height#*slant-serif_fit#+.5stem#-2u# if serifs:+.5u# fi; |
| 717 |
adjust_fit(0,serif_fit# if serifs: -.5u# fi); |
| 718 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 719 |
pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; |
| 720 |
rt x1r=hround(.8w-2.5u+.5stem'); |
| 721 |
numeric edge; edge=lft x2l; |
| 722 |
path edge_path; edge_path=(edge,x_height)--(edge,0); |
| 723 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); |
| 724 |
pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); |
| 725 |
lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),2/3[lft x2,edge]); y3=bar_height; |
| 726 |
x4l=.5(.8w-serif_fit)-.3u; top y4r=x_height+oo; |
| 727 |
lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; |
| 728 |
x6l=x4l-.2u; bot y6r=vround 1/3vair; |
| 729 |
lft x7l=edge; y7=min(y3,y6+y4-y3+.6vair); |
| 730 |
(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); |
| 731 |
(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); |
| 732 |
filldraw stroke z3e{up}...{left}z4e&super_arc.e(4,5) |
| 733 |
&super_arc.e(5,6)&z6e{right}...{up}z7e; % bowl |
| 734 |
%y1=ypart(edge_path intersectionpoint(z3l{up}...{left}z4l)); |
| 735 |
top y1=.8h; |
| 736 |
y0=ypart(edge_path intersectionpoint(z7l{down}...{left}z6l)); |
| 737 |
pickup tiny.nib; bot y2=if serifs: -.25d else: 0 fi; |
| 738 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 739 |
if serifs: pickup tiny.nib; |
| 740 |
pos9(vair,-90); x9=.5[x2,x10]; bot y9r=-d-o-1; |
| 741 |
pos10(hair,-180); lft x10r=hround u; y10=-.75d+.5flare; |
| 742 |
pos11(flare,-180); z11r=z10r; |
| 743 |
bulb(9,10,11); filldraw stroke super_arc.e(2,9); % tail |
| 744 |
else: pickup fine.nib; pos2'(stem,0); z2'=z2; |
| 745 |
z2''r=z2'r; z2''=z2'; z2''l=(x2'l,0); |
| 746 |
pos9(vair,-90); x9=4.5u; bot y9r=-d-o-1; |
| 747 |
pos10(.5[vair,flare],-90); lft x10=hround 1.25u; |
| 748 |
y10r=good.y -5/6d; y10l:=good.y y10l; |
| 749 |
filldraw stroke z2'e..z2''e&super_arc.e(2'',9) |
| 750 |
& term.e(9,10,left,.9,4);fi % tail |
| 751 |
% hooktop |
| 752 |
pickup tiny.nib; |
| 753 |
pos13(vair,-90); x13=.5[x1,x14]; top y13l=.9h-o; |
| 754 |
pos14(hair,0); rt x14r=hround(w-.4u); y14=.78h; |
| 755 |
pos15(flare,0); |
| 756 |
pos13'(vair,90); z13'=z13; |
| 757 |
bulb(13',14,15); % bulb |
| 758 |
filldraw stroke pulled_arc.e(1,13); % arc and stem |
| 759 |
penlabels(0,1,2,3,4,5,6,7,9,10,11,12,13,14); endchar; |
| 760 |
|
| 761 |
cmchar "The ligature h-v"; |
| 762 |
beginchar(oct"42",14u#,asc_height#,0); |
| 763 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 764 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 765 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 766 |
pos1'(stem',0); pos2'(stem',0); pos3(stem,0); |
| 767 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=.72w-x1; |
| 768 |
top y1=h; bot y2=0; y1=y1'; y2=y2'; |
| 769 |
filldraw stroke z1'e--z2'e; % left stem |
| 770 |
% redefinition of h_stroke |
| 771 |
penpos4(x3r-x3l,0); x4=x3; bot y4=0; |
| 772 |
y3=1/3[bar_height,x_height]; |
| 773 |
penpos2''(x2r-x2l,0); x2''=x2; y2''=1/8[bar_height,x_height]; |
| 774 |
filldraw stroke z2''e--z2e; |
| 775 |
penpos55(min(rt x2r-lft x2l, thin_join)-fine,180); |
| 776 |
pickup fine.nib; |
| 777 |
rt x55l=tiny.rt x2r; y55=y2''; |
| 778 |
pos51(vair,90); pos3'(x3r-x3l+tiny,0); z3'=z3; |
| 779 |
x51=.5[rt x55l, rt x3'r]; top y51r=x_height+oo; |
| 780 |
(x50,y51l)=whatever[z51r,z55l]; x51l := x50; |
| 781 |
filldraw stroke z55e{up}...{right}z51e & {{interim |
| 782 |
superness := hein_super; super_arc.e(51,3')}}; |
| 783 |
if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif |
| 784 |
numeric inner_jut; pickup tiny.nib; |
| 785 |
if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; |
| 786 |
else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi |
| 787 |
dish_serif(2,1,c,1/3,jut,d,1/3,jut);fi % lower left serif |
| 788 |
% |
| 789 |
%"lowercase Greek upsilon"; |
| 790 |
% |
| 791 |
pickup fine.nib; interim superness:=more_super; |
| 792 |
pos13(stem,-180); x13r=x3l; bot y13=.5x_height; |
| 793 |
pos12(2.2vair,-180); |
| 794 |
y12r=y3l; x12=x3; |
| 795 |
pos12'(2.2vair,-180); z12'=z12; |
| 796 |
pos14(1.5vair,-90); pos15(hair,0); |
| 797 |
x14=.67w+u; |
| 798 |
rt x15=hround(w-.5u); bot y14r=-oo; |
| 799 |
y15=.67x_height; |
| 800 |
filldraw stroke z12e{-u,-x_height}...super_arc.e(13,14) |
| 801 |
..tension atleast 1.05..{up}z15e; % left stem and arc |
| 802 |
v_bulb(15,16); % closing bulb |
| 803 |
penlabels(1,2,3,4,10,11,12,13,14,15,16); endchar; |
| 804 |
|
| 805 |
cmchar "The letter turned h"; |
| 806 |
beginchar(oct"046",10u#,x_height#,desc_depth#); |
| 807 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 808 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 809 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 810 |
pos1'(stem',0); pos2'(stem',0); pos3(stem,0); |
| 811 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; |
| 812 |
top y1=asc_height; bot y2=0; y1=y1'; y2=y2'; |
| 813 |
filldraw stroke z1'e--z2'e; % left stem |
| 814 |
h_stroke(2,a,3,4); % arch and right stem |
| 815 |
if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif |
| 816 |
numeric inner_jut; pickup tiny.nib; |
| 817 |
if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; |
| 818 |
else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi |
| 819 |
dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif |
| 820 |
dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif |
| 821 |
picture rvchar; |
| 822 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.3asc_height),180);% |
| 823 |
else: rvchar=currentpicture rotatedabout((.58w,.3asc_height),180);fi |
| 824 |
currentpicture:= rvchar; |
| 825 |
penlabels(1,2,3,4); endchar; |
| 826 |
|
| 827 |
cmchar "The letter crossed h"; |
| 828 |
beginchar(oct"043",10u#,asc_height#,0); |
| 829 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 830 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 831 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 832 |
pos1'(stem',0); pos2'(stem',0); pos3(stem,0); |
| 833 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; |
| 834 |
top y1=h; bot y2=0; y1=y1'; y2=y2'; |
| 835 |
filldraw stroke z1'e--z2'e; % left stem |
| 836 |
h_stroke(2,a,3,4); % arch and right stem |
| 837 |
if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif |
| 838 |
numeric inner_jut; pickup tiny.nib; |
| 839 |
if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; |
| 840 |
else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi |
| 841 |
dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif |
| 842 |
dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif |
| 843 |
pickup crisp.nib; pos5(bar,90); pos6(bar,90); |
| 844 |
top y5r=.8[y2,y1]=top y6r; |
| 845 |
lft x5=.25u; rt x6=.2[x3,x1]; |
| 846 |
filldraw stroke z5e--z6e; % bar |
| 847 |
penlabels(1,2,3,4,5,6); endchar; |
| 848 |
|
| 849 |
cmchar "The letter hooktop h"; |
| 850 |
beginchar(oct"044",10u#,asc_height#,0); |
| 851 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 852 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 853 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 854 |
pos1'(stem',0); pos2'(stem',0); pos3(stem,0); |
| 855 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; |
| 856 |
top y1=.7h; bot y2=0; y1=y1'; y2=y2'; |
| 857 |
filldraw stroke z1'e--z2'e; % left stem |
| 858 |
h_stroke(2,a,3,4); % arch and right stem |
| 859 |
numeric inner_jut; pickup tiny.nib; |
| 860 |
if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; |
| 861 |
else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi |
| 862 |
dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif |
| 863 |
dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); % lower right serif |
| 864 |
% hooktop |
| 865 |
pickup tiny.nib; |
| 866 |
pos10(vair,-90); x10=.4[x1,x3]; top y10l=h+o+1; |
| 867 |
pos11(hair,0); rt x11r=hround(w-2u); y11=.84h; |
| 868 |
pos12(flare,0); |
| 869 |
pos10'(vair,90); z10'=z10; |
| 870 |
bulb(10',11,12); % bulb |
| 871 |
filldraw stroke pulled_super_arc.e(1,10)(.4superpull); |
| 872 |
% arc and stem |
| 873 |
penlabels(1,2,3,4,10,11,12); endchar; |
| 874 |
|
| 875 |
cmchar "The letter hooktop heng"; |
| 876 |
beginchar(oct"45",10u#,asc_height#,1.1desc_depth#); |
| 877 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 878 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 879 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 880 |
pos1'(stem',0); pos2'(stem',0); pos3(stem,0); |
| 881 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; |
| 882 |
top y1=.7h; bot y2=0; y1=y1'; y2=y2'; |
| 883 |
filldraw stroke z1'e--z2'e; % left stem |
| 884 |
h_stroke(2,a,3,4); % arch and right stem |
| 885 |
numeric inner_jut; pickup tiny.nib; |
| 886 |
if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; |
| 887 |
else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi |
| 888 |
dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif |
| 889 |
% hooktop |
| 890 |
pickup tiny.nib; |
| 891 |
pos10(vair,-90); x10=.4[x1,x3]; top y10l=h+o+1; |
| 892 |
pos11(hair,0); rt x11r=hround(w-2u); y11=.84h; |
| 893 |
pos12(flare,0); |
| 894 |
pos10'(vair,90); z10'=z10; |
| 895 |
bulb(10',11,12); % bulb |
| 896 |
filldraw stroke pulled_super_arc.e(1,10)(.4superpull); |
| 897 |
% arc and stem |
| 898 |
%tail |
| 899 |
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); |
| 900 |
define_whole_blacker_pixels(dot_diam); |
| 901 |
pickup tiny.nib; pos15(vair,-90); pos16(hair,-180); pos17(flare,-180); |
| 902 |
x15=.5[x4,x16r]; bot y15r=-d+oo; y16-.5flare=-.85d; |
| 903 |
z16r=z17r; rt x17r=x2r; |
| 904 |
(x,y15r)=whatever[z15l,z4l]; x15r:=max(x,.5[x16r,x15]); |
| 905 |
filldraw stroke z4e{down}...pulled_super_arc.e(4,15)(.4superpull); |
| 906 |
bulb(15,16,17); % arc and bulb |
| 907 |
penlabels(1,2,3,4,10,11,12,15,16,17); endchar; |
| 908 |
|
| 909 |
cmchar "The letter barred i"; |
| 910 |
numeric thickness; thickness=if hefty:bar else:.7[hair,stem] fi; |
| 911 |
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); |
| 912 |
beginchar(oct"47",5u#,min(asc_height#,10/7x_height#+.5dot_diam#),0); |
| 913 |
define_whole_blacker_pixels(dot_diam); |
| 914 |
italcorr h#*slant-serif_fit# + .5dot_diam# -2u#; |
| 915 |
adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi,serif_fit#-stem_shift#); |
| 916 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 917 |
if odd(w-stem'): change_width; fi |
| 918 |
lft x1l=hround(.5w-.5stem'); x1=x2; |
| 919 |
top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; |
| 920 |
filldraw stroke z1e--z2e; % stem |
| 921 |
pos3(dot_diam,0); pos4(dot_diam,90); |
| 922 |
if serifs: x3r=max(x1r,x1+.5(dot_diam-tiny)-.2jut) else: x3=x1-.5 fi; |
| 923 |
top y4r=h+1; |
| 924 |
if bot y4l-top y1<slab: y4l:=min(y4r-eps,y1+tiny+slab); fi |
| 925 |
x3=x4; y3=.5[y4l,y4r]; dot(3,4); % dot |
| 926 |
if serifs: sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif |
| 927 |
dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif |
| 928 |
pickup crisp.nib; pos5(.9thickness,90); pos6(.9thickness,90); |
| 929 |
top y5r=top y6r=vround(.35h+.5thickness); rt x6=hround(w-.5u)+eps; |
| 930 |
if monospace: x6=w-x1 else: lft x5=hround .2u-eps fi; |
| 931 |
filldraw stroke z5e--z6e; % bar |
| 932 |
penlabels(1,2,3,4,5,6); endchar; |
| 933 |
|
| 934 |
cmchar "The letter barred dotless i"; |
| 935 |
numeric thickness; thickness=if hefty:bar else:.7[hair,stem] fi; |
| 936 |
beginchar(oct"50",5u#,min(asc_height#,10/7x_height#+.5dot_diam#),0); |
| 937 |
define_whole_blacker_pixels(dot_diam); |
| 938 |
italcorr h#*slant-serif_fit# + .5dot_diam# -2u#; |
| 939 |
adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi,serif_fit#-stem_shift#); |
| 940 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 941 |
if odd(w-stem'): change_width; fi |
| 942 |
lft x1l=hround(.5w-.5stem'); x1=x2; |
| 943 |
top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; |
| 944 |
filldraw stroke z1e--z2e; % stem |
| 945 |
if serifs: sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif |
| 946 |
dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif |
| 947 |
pickup crisp.nib; pos5(.9thickness,90); pos6(.9thickness,90); |
| 948 |
top y5r=top y6r=vround(.35h+.5thickness); rt x6=hround(w-.1u)+eps; |
| 949 |
if monospace: x6=w-x1 else: lft x5=hround .2u-eps fi; |
| 950 |
filldraw stroke z5e--z6e; % bar |
| 951 |
penlabels(1,2,5,6); endchar; |
| 952 |
|
| 953 |
cmchar "The letter dotless barred j"; |
| 954 |
beginchar(oct"054",5.5u#,x_height#,desc_depth#); |
| 955 |
italcorr h#*slant-serif_fit#+.5stem#-2u#; |
| 956 |
adjust_fit(serif_fit#+2stem_shift# if monospace:+\\.5u# fi, |
| 957 |
serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 958 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 959 |
rt x1r=hround(.5w+.25u+.5stem'); x1=x2; |
| 960 |
top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=-1/3d; |
| 961 |
filldraw stroke z1e--z2e; % stem |
| 962 |
if serifs: |
| 963 |
dish_serif(1,2,c,1/3,jut,d,1/3,jut); |
| 964 |
%sloped_serif.l(1,2,a,1/3,1.1jut,serif_drop); % upper serif |
| 965 |
pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); |
| 966 |
x5=.5[x2,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; |
| 967 |
if monospace: lft x6r=0 else: z6r=z7r; rt x7l=floor .75u fi; |
| 968 |
(x,y5r)=whatever[z5l,z2l]; x5r:=max(x,.5[x6r,x5]); |
| 969 |
filldraw stroke z2e{down}...z5e{left}; bulb(5,6,7); % arc and bulb |
| 970 |
else: pickup fine.nib; pos2'(stem',0); z2'=z2; |
| 971 |
pos6(.2[vair,stem'],-90); pos7(vair,-90); |
| 972 |
lft x7r=hround -.75u; bot y7r=vround 5/6(-d-oo); |
| 973 |
(x,y7l)=whatever[z7r,z3]; x7l:=x; |
| 974 |
z5r=z2'r; (x2'l,y5l)=whatever[z7l,z5r]; x5l=x2'l; y5=y5r; |
| 975 |
x6r=.5[x7r,x5r]; x6l:=.5[x7l,x5l]; bot y6r=-d-oo; |
| 976 |
filldraw stroke z2'e..{down}z5e & super_arc.e(5,6) |
| 977 |
& z6e{left}..z7e; fi % arc and terminal |
| 978 |
pickup crisp.nib; |
| 979 |
pos3(bar,90); pos4(bar,90); |
| 980 |
rt x4=hround(w-if monospace:.75u+1 else: 1/3u fi); |
| 981 |
top y3r=top y4r=vround(0+bar); lft x3=hround(.5u-1); |
| 982 |
filldraw stroke z3e--z4e; % bar |
| 983 |
penlabels(1,2,3,4,5,6,7); endchar; |
| 984 |
|
| 985 |
cmchar "The letter tilde l"; |
| 986 |
beginchar(oct"55",12u#,asc_height#,0); l_width#:=5u#+2serif_fit#; |
| 987 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 988 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 989 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 990 |
if odd(w-stem'): change_width; fi |
| 991 |
lft x1l=hround(.5w-.5stem'); x1=x2; top y1=h; bot y2=0; |
| 992 |
filldraw stroke z1e--z2e; % stem |
| 993 |
if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif |
| 994 |
dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif |
| 995 |
% |
| 996 |
% "Mid-Tilde (squiggle) accent"; |
| 997 |
if serifs: numeric theta; |
| 998 |
theta=angle(1/6(8u-vair),1/4(x_height+.5dot_size-.62x_height)); |
| 999 |
pickup crisp.nib; numeric mid_width; mid_width=.4[vair,stem]; |
| 1000 |
pos11(vair,theta+90); pos12(vair,theta+90); |
| 1001 |
pos13(vair,theta+90); pos14(vair,theta+90); |
| 1002 |
z12-z11=z14-z13=(mid_width-crisp)*dir theta; |
| 1003 |
lft x11r=w-rt x14l=hround 1.5u; top y14r=x_height+.5dot_size; |
| 1004 |
bot y11l=vround(bot y11l+min(.6[.62x_height,x_height+.5dot_size], |
| 1005 |
y13l-.2vair)-top y11r); |
| 1006 |
pair delta; ypart delta=3(y13l-y11l); delta=whatever*dir theta; |
| 1007 |
filldraw z11l..controls(z11l+delta)and(z13l-delta)..z13l..z14l |
| 1008 |
--z14r..controls(z14r-delta)and(z12r+delta)..z12r..z11r--cycle; %stroke |
| 1009 |
else: pickup fine.nib; pos11(vair,180); pos12(vair,90); |
| 1010 |
pos13(.5[vair,slab],90); pos14(vair,90); pos15(vair,180); |
| 1011 |
lft x11r=w-rt x15l=hround 1.5u; x12-x11=x13-x12=x14-x13=x15-x14; |
| 1012 |
bot y11=bot y14l=vround(.75[.62x_height,.6h]-vair); |
| 1013 |
top y12r=top y15=.5h; y13=.5[y12,y14]; |
| 1014 |
filldraw stroke z11e{up}...z12e{right}..z13e..{right}z14e...{up}z15e; fi % stro |
| 1015 |
penlabels(1,2,11,12,13,14,15); endchar; |
| 1016 |
|
| 1017 |
cmchar "The letter barred l"; |
| 1018 |
beginchar(oct"56",5.5u#,asc_height#,0); l_width#:=5u#+2serif_fit#; |
| 1019 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 1020 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 1021 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 1022 |
if odd(w-stem'): change_width; fi |
| 1023 |
lft x1l=hround(.5w-.5stem'); x1=x2; top y1=h; bot y2=0; |
| 1024 |
filldraw stroke z1e--z2e; % stem |
| 1025 |
if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif |
| 1026 |
dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif |
| 1027 |
% bar |
| 1028 |
pos10(bar,90); pos11(bar,90); |
| 1029 |
x10=hround .1u; x11=w-x10; |
| 1030 |
y10=y11=.5[y1,y2]; |
| 1031 |
filldraw stroke z10e--z11e; |
| 1032 |
penlabels(1,2,10,11); endchar; |
| 1033 |
|
| 1034 |
cmchar "The letter hooked l"; |
| 1035 |
beginchar(oct"057",8u#,asc_height#,0); |
| 1036 |
l_width#:=5u#+2serif_fit#; |
| 1037 |
numeric hook_depth#; hook_depth#:=1.1desc_depth#; |
| 1038 |
define_whole_vertical_pixels(hook_depth); |
| 1039 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 1040 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 1041 |
%"Polish hook" |
| 1042 |
x11=.5w+.25u; |
| 1043 |
if serifs: pickup crisp.nib; pos11(stem,180); pos12(stem,-90); |
| 1044 |
pos13(vair,90); pos14(.8stem,180); pos15(vair,-90); |
| 1045 |
x11=x12; z13r=z12r; x14=x12-4u; x15=x13+3u; |
| 1046 |
bot y11=.75h-o; bot y12=.75h-vround 2/7hook_depth-o; y14=.5[y13,y15]; |
| 1047 |
bot y15=.75h-hook_depth-o; |
| 1048 |
filldraw stroke z13e{left}...z14e{down}...{right}z15e; % hook |
| 1049 |
else: pickup fine.nib; pos11(vair,0); top y11=-o-2; |
| 1050 |
pos12(.5[vair,stem],0); bot y12=-d-o; x12=x11-1.5u; |
| 1051 |
filldraw stroke z11e--z12e; fi % diagonal |
| 1052 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 1053 |
if odd(w-stem'): change_width; fi |
| 1054 |
lft x1l=hround(.5w-.5stem'); x1=x2; top y1=h; bot y2=0; |
| 1055 |
filldraw stroke z1e--z2e; % stem |
| 1056 |
if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif |
| 1057 |
dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif |
| 1058 |
penlabels(1,2,11,12,13,14,15); endchar; |
| 1059 |
|
| 1060 |
cmchar "The letter right-tailed l"; |
| 1061 |
beginchar(oct"060",6.5u#,asc_height#,desc_depth#); |
| 1062 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 1063 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 1064 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 1065 |
if odd(w-stem'): change_width; fi |
| 1066 |
lft x1l=hround(.357w-.5stem'); x1=x2; top y1=h; bot y2=-.2d; |
| 1067 |
filldraw stroke z1e--z2e; % stem |
| 1068 |
if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop);fi% upper serif |
| 1069 |
%tail |
| 1070 |
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); |
| 1071 |
define_whole_blacker_pixels(dot_diam); |
| 1072 |
pickup tiny.nib; pos12(stem',180); z2=z12; |
| 1073 |
pos15(vair,-90); pos16(hair,0); pos17(flare,0); |
| 1074 |
x15=.5[x12,x16r]; bot y15r=-d+oo; y16-.5flare=-.85d; |
| 1075 |
z16r=z17r; rt x17r=w; |
| 1076 |
filldraw stroke z12e{down}...{right}z15e{up}; |
| 1077 |
bulb(15,16,17); % arc and bulb |
| 1078 |
penlabels(1,2,15,16,17); endchar; |
| 1079 |
|
| 1080 |
cmchar "The letter turned m with long right leg"; |
| 1081 |
beginchar(oct"66",15u#,x_height#,desc_depth#); |
| 1082 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 1083 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 1084 |
numeric shaved_stem; shaved_stem=hround(mfudged.stem-2stem_corr); |
| 1085 |
pickup tiny.nib; pos1(mfudged.stem,0); pos2(mfudged.stem,0); |
| 1086 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); |
| 1087 |
pos3(mfudged.stem,0); pos5(mfudged.stem,0); |
| 1088 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; |
| 1089 |
lft x3l=hround(.5w-.5stem); x5-x3=x3-x1; |
| 1090 |
if not monospace: r:=hround(x5+x1)-l; fi % change width for better fit |
| 1091 |
top y1=asc_height+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; |
| 1092 |
filldraw stroke z1'e--z2'e; % left stem |
| 1093 |
h_stroke(2,a,3,4); % left arch and middle stem |
| 1094 |
h_stroke(4,b,5,6); % right arch and right stem |
| 1095 |
sloped_serif.l(1',2',c,1/3,jut,serif_drop); % upper left serif |
| 1096 |
numeric inner_jut; pickup tiny.nib; |
| 1097 |
if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; |
| 1098 |
else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi |
| 1099 |
dish_serif(2,1,d,1/3,jut,e,1/3,jut); % lower left serif |
| 1100 |
dish_serif(4,3,f,1/3,inner_jut,g,1/3,jut); % lower middle serif |
| 1101 |
dish_serif(6,5,h,1/3,inner_jut,i,1/3,jut); % lower right serif |
| 1102 |
picture rvchar; |
| 1103 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180);% |
| 1104 |
else: rvchar=currentpicture rotatedabout((.58w,.5h),180);fi |
| 1105 |
currentpicture:= rvchar; |
| 1106 |
penlabels(1,2,3,4,5,6); endchar; |
| 1107 |
|
| 1108 |
cmchar "The letter m with leftward tail at right"; |
| 1109 |
beginchar(oct"064",15u#,x_height#,1.1desc_depth#); |
| 1110 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 1111 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 1112 |
numeric shaved_stem; shaved_stem=hround(mfudged.stem-2stem_corr); |
| 1113 |
pickup tiny.nib; pos1(mfudged.stem,0); pos2(mfudged.stem,0); |
| 1114 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); |
| 1115 |
pos3(mfudged.stem,0); pos5(mfudged.stem,0); |
| 1116 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; |
| 1117 |
lft x3l=hround(.5w-.5stem); x5-x3=x3-x1; |
| 1118 |
if not monospace: r:=hround(x5+x1)-l; fi % change width for better fit |
| 1119 |
top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; |
| 1120 |
filldraw stroke z1'e--z2'e; % left stem |
| 1121 |
h_stroke(2,a,3,4); % left arch and middle stem |
| 1122 |
h_stroke(4,b,5,6); % right arch and right stem |
| 1123 |
if serifs: sloped_serif.l(1',2',c,1/3,jut,serif_drop); % upper left serif |
| 1124 |
numeric inner_jut; pickup tiny.nib; |
| 1125 |
if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; |
| 1126 |
else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi |
| 1127 |
dish_serif(2,1,d,1/3,jut,e,1/3,jut); % lower left serif |
| 1128 |
dish_serif(4,3,f,1/3,inner_jut,g,1/3,jut); fi % lower middle serif |
| 1129 |
%tail |
| 1130 |
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); |
| 1131 |
define_whole_blacker_pixels(dot_diam); |
| 1132 |
pickup tiny.nib; pos15(vair,-90); pos16(hair,-180); pos17(flare,-180); |
| 1133 |
x15=.5[x6,x16r]; bot y15r=-d+oo; y16-.5flare=-.85d; |
| 1134 |
z16r=z17r; rt x17r=x4r; |
| 1135 |
(x,y15r)=whatever[z15l,z6l]; x15r:=max(x,.5[x16r,x15]); |
| 1136 |
filldraw stroke z6e{down}...pulled_super_arc.e(6,15)(.4superpull); |
| 1137 |
bulb(15,16,17); % arc and bulb |
| 1138 |
penlabels(1,2,3,4,5,6,15,16,17); endchar; |
| 1139 |
|
| 1140 |
cmchar "The letter turned m"; |
| 1141 |
beginchar(oct"065",15u#,x_height#,0); |
| 1142 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 1143 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 1144 |
numeric shaved_stem; shaved_stem=hround(mfudged.stem-2stem_corr); |
| 1145 |
pickup tiny.nib; pos1(mfudged.stem,0); pos2(mfudged.stem,0); |
| 1146 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); |
| 1147 |
pos3(mfudged.stem,0); pos5(mfudged.stem,0); |
| 1148 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; |
| 1149 |
lft x3l=hround(.5w-.5stem); x5-x3=x3-x1; |
| 1150 |
if not monospace: r:=hround(x5+x1)-l; fi % change width for better fit |
| 1151 |
top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; |
| 1152 |
filldraw stroke z1'e--z2'e; % left stem |
| 1153 |
h_stroke(2,a,3,4); % left arch and middle stem |
| 1154 |
h_stroke(4,b,5,6); % right arch and right stem |
| 1155 |
if serifs: sloped_serif.l(1',2',c,1/3,jut,serif_drop); % upper left serif |
| 1156 |
numeric inner_jut; pickup tiny.nib; |
| 1157 |
if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; |
| 1158 |
else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi |
| 1159 |
dish_serif(2,1,d,1/3,jut,e,1/3,jut); % lower left serif |
| 1160 |
dish_serif(4,3,f,1/3,inner_jut,g,1/3,jut); % lower middle serif |
| 1161 |
dish_serif(6,5,h,1/3,inner_jut,i,1/3,jut); fi % lower right serif |
| 1162 |
picture rvchar; |
| 1163 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180);% |
| 1164 |
else: rvchar=currentpicture rotatedabout((.58w,.5h),180);fi |
| 1165 |
currentpicture:= rvchar; |
| 1166 |
penlabels(1,2,3,4,5,6); endchar; |
| 1167 |
|
| 1168 |
cmchar "The letter right-tailed n"; |
| 1169 |
beginchar(oct"071",12.5u#,x_height#,desc_depth#); |
| 1170 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 1171 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 1172 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 1173 |
numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); |
| 1174 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); |
| 1175 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=.8w-x1; |
| 1176 |
top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; |
| 1177 |
filldraw stroke z1'e--z2'e; % left stem |
| 1178 |
h_stroke(2,a,3,4); % arch and right stem |
| 1179 |
if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif |
| 1180 |
numeric inner_jut; pickup tiny.nib; |
| 1181 |
if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; |
| 1182 |
else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi |
| 1183 |
dish_serif(2,1,c,1/3,jut,d,1/3,jut); fi% lower left serif |
| 1184 |
%tail |
| 1185 |
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); |
| 1186 |
define_whole_blacker_pixels(dot_diam); |
| 1187 |
pickup tiny.nib; pos14(stem,180); z4=z14; |
| 1188 |
pos15(vair,-90); pos16(hair,0); pos17(flare,0); |
| 1189 |
x15=.5[x14,x16r]; bot y15r=-d+oo; y16-.5flare=-.85d; |
| 1190 |
z16r=z17r; rt x17r=w-.2u; |
| 1191 |
filldraw stroke z14e{down}...{right}z15e{up}; |
| 1192 |
bulb(15,16,17); % arc and bulb |
| 1193 |
penlabels(1,2,3,4,15,16,17); endchar; |
| 1194 |
|
| 1195 |
cmchar "The letter left-tailed n"; |
| 1196 |
beginchar(oct"067",12.5u#,x_height#,desc_depth#); |
| 1197 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 1198 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 1199 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 1200 |
numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); |
| 1201 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); |
| 1202 |
lft x1l=hround(3.4u-.35stem); x1l=x1'l=x2l=x2'l; x3=w-x1; |
| 1203 |
top y1=h+min(oo,serif_drop); bot y2=-.2d; y1=y1'; y2=y2'; |
| 1204 |
filldraw stroke z1'e--z2'e; % left stem |
| 1205 |
h_stroke(2,a,3,4); % arch and right stem |
| 1206 |
if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif |
| 1207 |
numeric inner_jut; pickup tiny.nib; |
| 1208 |
if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; |
| 1209 |
else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi |
| 1210 |
dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif |
| 1211 |
%tail |
| 1212 |
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); |
| 1213 |
define_whole_blacker_pixels(dot_diam); |
| 1214 |
pickup tiny.nib; pos15(vair,-90); pos16(hair,-180); |
| 1215 |
pos17(flare,-180); |
| 1216 |
rt x17=u; |
| 1217 |
x15=.5[x2,x16r]; bot y15r=-d+oo; y16-.5flare=-.85d; |
| 1218 |
z16r=z17r; |
| 1219 |
(x,y15r)=whatever[z15l,z2l]; x15r:=max(x,.5[x16r,x15]); |
| 1220 |
filldraw stroke z2e{down}...pulled_super_arc.e(2,15)(.4superpull); |
| 1221 |
bulb(15,16,17); % arc and bulb |
| 1222 |
penlabels(1,2,3,4,15,16,17); endchar; |
| 1223 |
|
| 1224 |
cmchar "The letter eng"; |
| 1225 |
beginchar(oct"070",10.2u#,x_height#,1.1desc_depth#); |
| 1226 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 1227 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 1228 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 1229 |
numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); |
| 1230 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); |
| 1231 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; |
| 1232 |
top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; |
| 1233 |
filldraw stroke z1'e--z2'e; % left stem |
| 1234 |
h_stroke(2,a,3,4); % arch and right stem |
| 1235 |
if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif |
| 1236 |
numeric inner_jut; pickup tiny.nib; |
| 1237 |
if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; |
| 1238 |
else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi |
| 1239 |
dish_serif(2,1,c,1/3,jut,d,1/3,jut);fi % lower left serif |
| 1240 |
%tail |
| 1241 |
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); |
| 1242 |
define_whole_blacker_pixels(dot_diam); |
| 1243 |
pickup tiny.nib; pos15(vair,-90); pos16(hair,-180); pos17(flare,-180); |
| 1244 |
x15=.5[x4,x16r]; bot y15r=-d+oo; y16-.5flare=-.85d; |
| 1245 |
z16r=z17r; rt x17r=x2r; |
| 1246 |
(x,y15r)=whatever[z15l,z4l]; x15r:=max(x,.5[x16r,x15]); |
| 1247 |
filldraw stroke z4e{down}...pulled_super_arc.e(4,15)(.4superpull); |
| 1248 |
bulb(15,16,17); % arc and bulb |
| 1249 |
penlabels(1,2,3,4,15,16,17); endchar; |
| 1250 |
|
| 1251 |
cmchar "The letter barred o"; |
| 1252 |
beginchar(oct"074",9u#,x_height#,0); |
| 1253 |
italcorr .7x_height#*slant; |
| 1254 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 1255 |
penpos1(vair,90); penpos3(vair',-90); |
| 1256 |
penpos2(.8curve,180); penpos4(.8curve,0); |
| 1257 |
x2r=hround max(.5u,1.25u-.5curve); |
| 1258 |
x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; |
| 1259 |
y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; |
| 1260 |
pos2'(.8stem,90); pos4'(.8stem,90); |
| 1261 |
x2'=x2; y4'=y2'=y2; x4'=x4; |
| 1262 |
penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 1263 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl |
| 1264 |
penstroke z2'e--z4'e; % bar |
| 1265 |
penlabels(1,2,3,4); endchar; |
| 1266 |
|
| 1267 |
cmchar "The letter barred p"; |
| 1268 |
beginchar(oct"101",10.5u#+serif_fit#,x_height#,desc_depth#); |
| 1269 |
italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); |
| 1270 |
adjust_fit(serif_fit#,0); |
| 1271 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 1272 |
pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; |
| 1273 |
lft x1l=hround(3u-.5stem'); top y1=h if serifs: +min(oo,serif_drop) fi; |
| 1274 |
numeric edge; edge=rt x2r; |
| 1275 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); |
| 1276 |
pos4(vair',90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); |
| 1277 |
rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l), 1/3[rt x2,edge]); |
| 1278 |
y3=1/8[bar_height,x_height]; |
| 1279 |
x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; |
| 1280 |
rt x5r=hround min(w-1.85u+.5curve,w-1.1u); y5=.5x_height; |
| 1281 |
x6l=x4l-.2u; bot y6r=-oo; |
| 1282 |
x7=x3; y7=min(y3,y6+y4-y3+.6vair); |
| 1283 |
(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); |
| 1284 |
(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x5r,x6]); |
| 1285 |
filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5) |
| 1286 |
&super_arc.e(5,6)&z6e{left}...{up}z7e; % bowl |
| 1287 |
y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); |
| 1288 |
pickup tiny.nib; bot y2=-d; |
| 1289 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 1290 |
pickup crisp.nib; pos8(hair,0); pos7'(stem,0); |
| 1291 |
z7'=z2; x8l=x7'l; bot y8=0; |
| 1292 |
filldraw stroke z7'e--z8e; % point |
| 1293 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif |
| 1294 |
dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif |
| 1295 |
% bar |
| 1296 |
pos10(bar,90); pos11(bar,90); |
| 1297 |
x10=hround .1u; x11=w-x10; |
| 1298 |
y10=y11=y5; |
| 1299 |
filldraw stroke z10e--z11e; |
| 1300 |
penlabels(0,1,2,3,4,5,6,7,8,10,11); endchar; |
| 1301 |
|
| 1302 |
cmchar "The letter fish-hook r"; |
| 1303 |
beginchar(oct"104",6.5u#,x_height#,0); |
| 1304 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 1305 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 1306 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 1307 |
pos1'(stem',0); pos2'(stem',0); |
| 1308 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; |
| 1309 |
top y1=.7h; bot y2=0; y1=y1'; y2=y2'; |
| 1310 |
filldraw stroke z1'e--z2'e; % left stem |
| 1311 |
dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif |
| 1312 |
% hooktop |
| 1313 |
pickup tiny.nib; |
| 1314 |
pos10(vair,-90); x10=.4[x1,x11]; top y10l=h+o+1; |
| 1315 |
pos11(hair,0); rt x11r=hround(w+.1u); y11=.8h; |
| 1316 |
pos12(flare,0); |
| 1317 |
pos10'(vair,90); z10'=z10; |
| 1318 |
bulb(10',11,12); % bulb |
| 1319 |
filldraw stroke pulled_super_arc.e(1,10)(.2superpull); |
| 1320 |
% arc and stem |
| 1321 |
penlabels(1,2,3,4,10,11,12); endchar; |
| 1322 |
|
| 1323 |
cmchar "The letter turned r"; |
| 1324 |
numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#]; |
| 1325 |
define_whole_blacker_pixels(r_flare); |
| 1326 |
beginchar(oct"107",if serifs:max(7u#,5.5u#+r_flare#) else:6.5u# fi,x_height#,0); |
| 1327 |
italcorr x_height#*slant if not serifs: +.25u# fi; |
| 1328 |
adjust_fit(serif_fit#,0); |
| 1329 |
pickup fine.nib; top y4r=h+oo; |
| 1330 |
if serifs: pos4(vair,90); pos5(hair,0); |
| 1331 |
x4=w-max(1.75u,.25u+r_flare); |
| 1332 |
rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,h]+oo; |
| 1333 |
pos6(r_flare,0); bulb(4,5,6); % bulb |
| 1334 |
else: pos4(r_flare,90); rt x4=hround(w-.25u); fi |
| 1335 |
pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height; |
| 1336 |
filldraw stroke z3e{up}...{right}z4e; % arc |
| 1337 |
pickup tiny.nib; pos0(stem',0); pos2(stem',0); |
| 1338 |
pos1(hround(stem-3stem_corr),0); top y1=h+min(oo,serif_drop); |
| 1339 |
pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l; |
| 1340 |
lft x1l=hround(2.5u-.5stem'); bot y2=0; |
| 1341 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 1342 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif |
| 1343 |
dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi % lower serif |
| 1344 |
picture rvchar; |
| 1345 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180);% |
| 1346 |
else: rvchar=currentpicture rotatedabout((.58w,.5h),180);fi |
| 1347 |
currentpicture:= rvchar; |
| 1348 |
penlabels(1,2,3,4,5,6); endchar; |
| 1349 |
|
| 1350 |
|
| 1351 |
cmchar "The letter right-tailed r"; |
| 1352 |
numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#]; |
| 1353 |
define_whole_blacker_pixels(r_flare); |
| 1354 |
beginchar(oct"106",max(7u#,5.5u#+r_flare#),x_height#,desc_depth#); |
| 1355 |
italcorr x_height#*slant if not serifs: +.25u# fi; |
| 1356 |
adjust_fit(serif_fit#,0); |
| 1357 |
pickup fine.nib; top y4r=h+oo; |
| 1358 |
if serifs: pos4(vair,90); pos5(hair,0); |
| 1359 |
x4=w-max(1.75u,.25u+r_flare); |
| 1360 |
rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,h]+oo; |
| 1361 |
pos6(r_flare,0); bulb(4,5,6); % bulb |
| 1362 |
else: pos4(r_flare,90); rt x4=hround(w-.25u); fi |
| 1363 |
pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height; |
| 1364 |
filldraw stroke z3e{up}...{right}z4e; % arc |
| 1365 |
pickup tiny.nib; pos0(stem',0); pos2(stem',0); |
| 1366 |
pos1(hround(stem-3stem_corr),0); top y1=h+min(oo,serif_drop); |
| 1367 |
pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l; |
| 1368 |
lft x1l=hround(2.5u-.5stem'); bot y2=-.2d; |
| 1369 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 1370 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif |
| 1371 |
%tail |
| 1372 |
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); |
| 1373 |
define_whole_blacker_pixels(dot_diam); |
| 1374 |
pickup tiny.nib; pos12(stem',180); z2=z12; |
| 1375 |
pos15(vair,-90); pos16(hair,0); pos17(flare,0); |
| 1376 |
x15=.5[x12,x16r]; bot y15r=-d+oo; y16-.5flare=-.85d; |
| 1377 |
z16r=z17r; rt x17l=w-1.4u; |
| 1378 |
filldraw stroke z12e{down}...{right}z15e{up}; |
| 1379 |
bulb(15,16,17); % arc and bulb |
| 1380 |
penlabels(1,2,3,4,5,6,12,15,16,17); endchar; |
| 1381 |
|
| 1382 |
cmchar "The letter long legged r"; |
| 1383 |
numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#]; |
| 1384 |
define_whole_blacker_pixels(r_flare); |
| 1385 |
beginchar(oct"105",if serifs:max(7u#,5.5u#+r_flare#) |
| 1386 |
else:6.5u# fi,asc_height#,0); |
| 1387 |
italcorr x_height#*slant if not serifs: +.25u# fi; |
| 1388 |
adjust_fit(serif_fit#,0); |
| 1389 |
pickup fine.nib; top y4r=x_height+oo; |
| 1390 |
if serifs: pos4(vair,90); pos5(hair,0); |
| 1391 |
x4=w-max(1.75u,.25u+r_flare); |
| 1392 |
rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,x_height]+oo; |
| 1393 |
pos6(r_flare,0); bulb(4,5,6); % bulb |
| 1394 |
else: pos4(r_flare,90); rt x4=hround(w-.25u); fi |
| 1395 |
pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height; |
| 1396 |
filldraw stroke z3e{up}...{right}z4e; % arc |
| 1397 |
pickup tiny.nib; pos0(stem',0); pos2(stem',0); |
| 1398 |
pos1(hround(stem-3stem_corr),0); top y1=x_height+min(oo,serif_drop); |
| 1399 |
pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l; |
| 1400 |
lft x1l=hround(2.5u-.5stem'); bot y2=-desc_depth; |
| 1401 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 1402 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif |
| 1403 |
dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi % lower serif |
| 1404 |
penlabels(1,2,3,4,5,6); endchar; |
| 1405 |
|
| 1406 |
cmchar "The letter turned long legged r"; |
| 1407 |
numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#]; |
| 1408 |
define_whole_blacker_pixels(r_flare); |
| 1409 |
beginchar(oct"111",if serifs:max(7u#,5.5u#+r_flare#) |
| 1410 |
else:6.5u# fi,x_height#,desc_depth#); |
| 1411 |
italcorr x_height#*slant if not serifs: +.25u# fi; |
| 1412 |
adjust_fit(serif_fit#,0); |
| 1413 |
pickup fine.nib; top y4r=h+oo; |
| 1414 |
if serifs: pos4(vair,90); pos5(hair,0); |
| 1415 |
x4=w-max(1.75u,.25u+r_flare); |
| 1416 |
rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,h]+oo; |
| 1417 |
pos6(r_flare,0); bulb(4,5,6); % bulb |
| 1418 |
else: pos4(r_flare,90); rt x4=hround(w-.25u); fi |
| 1419 |
pos3(thin_join,180); rt x3l=hround(2.5u-.5stem')+stem'; top y3=bar_height; |
| 1420 |
filldraw stroke z3e{up}...{right}z4e; % arc |
| 1421 |
pickup tiny.nib; pos0(stem',0); pos2(stem',0); |
| 1422 |
pos1(hround(stem-3stem_corr),0); top y1=h+min(oo,serif_drop); |
| 1423 |
pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l; |
| 1424 |
lft x1l=hround(2.5u-.5stem'); bot y2=-d; |
| 1425 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 1426 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif |
| 1427 |
sloped_serif.r(2,0,b,1/3,jut,serif_drop); fi % lower serif |
| 1428 |
picture rvchar; |
| 1429 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180);% |
| 1430 |
else: rvchar=currentpicture rotatedabout((.58w,.5h),180);fi |
| 1431 |
currentpicture:= rvchar; |
| 1432 |
penlabels(1,2,3,4,5,6); endchar; |
| 1433 |
|
| 1434 |
cmchar "The letter turned hooked r"; |
| 1435 |
numeric r_flare#; r_flare#=.75[if serifs: stem# else: vair# fi,flare#]; |
| 1436 |
define_whole_blacker_pixels(r_flare); |
| 1437 |
beginchar(oct"110",if serifs:max(8.4u#,6.6u#+r_flare#) else:6.5u# fi, |
| 1438 |
x_height#,desc_depth#); |
| 1439 |
italcorr x_height#*slant if not serifs: +.25u# fi; |
| 1440 |
adjust_fit(serif_fit#,0); |
| 1441 |
pickup fine.nib; top y4r=x_height+oo; |
| 1442 |
if serifs: pos4(vair,90); pos5(hair,0); |
| 1443 |
x4=w-max(1.75u,.25u+r_flare); |
| 1444 |
rt x5r=hround(w-.5u+.5); y5+.5r_flare=.9[bar_height,x_height]+oo; |
| 1445 |
pos6(r_flare,0); bulb(4,5,6); % bulb |
| 1446 |
else: pos4(r_flare,90); rt x4=hround(w-.3u); fi |
| 1447 |
pos3(thin_join,180); rt x3l=hround(3.5u-.5stem')+stem'; |
| 1448 |
top y3=bar_height; |
| 1449 |
filldraw stroke z3e{up}...{right}z4e; % arc |
| 1450 |
pickup tiny.nib; pos0(stem',0); pos2(stem',0); |
| 1451 |
pos1(hround(stem-3stem_corr),0); top y1=.8asc_height; |
| 1452 |
pos0'(hround(stem-3stem_corr),0); y0=y0'=y3; x1l=x0l=x0'l=x2l; |
| 1453 |
lft x1l=hround(3.5u-.5stem'); bot y2=0; |
| 1454 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 1455 |
% hooktop |
| 1456 |
pickup tiny.nib; |
| 1457 |
pos10(vair,90); x10=.5[x1,x11l]; top y10r=asc_height; |
| 1458 |
pos11(hair,180); rt x11l=0; y11=.84asc_height; |
| 1459 |
pos12(flare,180); |
| 1460 |
bulb(10,11,12); % bulb |
| 1461 |
filldraw stroke pulled_super_arc.e(1,10)(.4superpull); % arc and stem |
| 1462 |
if serifs: |
| 1463 |
dish_serif(2,0,b,1/3,jut,c,1/3,1.25jut); fi % lower serif |
| 1464 |
picture rvchar; |
| 1465 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180);% |
| 1466 |
else: rvchar=currentpicture rotatedabout((.58w,.5h),180);fi |
| 1467 |
currentpicture:= rvchar; |
| 1468 |
penlabels(1,2,3,4,5,6,10,11,12); endchar; |
| 1469 |
|
| 1470 |
cmchar "The letter skinny right-tailed s"; |
| 1471 |
beginchar(oct"114",7.1u#,x_height#,desc_depth#); |
| 1472 |
italcorr x_height#*slant-if serifs:.55u# else:.3u# fi; |
| 1473 |
adjust_fit(if monospace: .5u#,.4u# else: 0,if serifs:0 else:-.2u# fi fi); |
| 1474 |
numeric theta; theta=90-angle(40u,h); slope:=-h/40u; % angle at middle |
| 1475 |
numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi; |
| 1476 |
numeric ess'; ess'=max(fine.breadth,ess); |
| 1477 |
pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-100); |
| 1478 |
pos0(ess',theta); pos7(s_slab,-90); x2l=x0=x7=.5w; |
| 1479 |
top y2l=h+vround 1.5oo; bot y7r=-oo; |
| 1480 |
y0-.5ess'=y7l+if serifs:.54 else: .52 fi\\(y2r-y7l-ess'); |
| 1481 |
lft x3l=hround .6u; rt x6r=hround(w-.6u); |
| 1482 |
x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine; |
| 1483 |
ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; |
| 1484 |
ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; |
| 1485 |
interim superness:=more_super; |
| 1486 |
filldraw stroke super_arc.e(2,3) & z3e{down} |
| 1487 |
..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke |
| 1488 |
if serifs: pos1(hair,180); pos8(hair,180); |
| 1489 |
rt x1l=hround(w-1.05u); lft x8r=hround .6u; |
| 1490 |
bot y1=min(bot y2r,vround 1/5[top y5r,h]); |
| 1491 |
top y8=max(top y7l,vround 5/6 bot y4l); |
| 1492 |
filldraw stroke z1e{up}....{left}z2e; % upper arc |
| 1493 |
filldraw stroke z7e{left}....{x8-x7,5(y8-y7)}z8e; % lower arc |
| 1494 |
path upper_arc, lower_arc; |
| 1495 |
upper_arc=z1{up}....{left}z2; lower_arc=z7{left}....{x8-x7,5(y8-y7)}z8; |
| 1496 |
pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0); |
| 1497 |
x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r; |
| 1498 |
x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8; |
| 1499 |
numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1')); |
| 1500 |
filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle; % upper barb |
| 1501 |
t:=xpart(lower_arc intersectiontimes(z9r--z8')); |
| 1502 |
filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle; % lower barb |
| 1503 |
else: pos1(4/7[s_slab,flare],-100); pos8(flare,-100); |
| 1504 |
x1l=good.x(x1l+w-u-rt x1); lft x8r=hround .5u; |
| 1505 |
top y1l=vround(.93h+1.5oo); bot y8r=vround .1h-oo; |
| 1506 |
filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal |
| 1507 |
filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal |
| 1508 |
%tail |
| 1509 |
numeric dot_diam#; dot_diam#=min(.7dot_size#,.7cap_curve#); |
| 1510 |
define_whole_blacker_pixels(dot_diam); |
| 1511 |
pickup tiny.nib; pos19(1.5hair,180); pos14(1.5hair,180); |
| 1512 |
pos15(vair,-90); pos16(hair,0); pos17(flare,0); |
| 1513 |
z19=z9; |
| 1514 |
x19=x14; y14=-.6d; |
| 1515 |
bot y15r=-d+oo; y16-.5flare=-.75d; |
| 1516 |
rt x16r=hround(x6l-.5u); |
| 1517 |
x15=.5[x14,x16]; |
| 1518 |
filldraw stroke z19e{down}---z14e{down}..{right}z15e{up}; |
| 1519 |
bulb(15,16,17); % arc and bulb |
| 1520 |
penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10,14,15,16,17); endchar; |
| 1521 |
|
| 1522 |
|
| 1523 |
cmchar "The letter turned t"; |
| 1524 |
beginchar(oct"122",6u#+max(u#,.5stem#), |
| 1525 |
min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),.5desc_depth#); |
| 1526 |
italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; |
| 1527 |
adjust_fit(0,if serifs: 0 else: -.5u# fi); |
| 1528 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 1529 |
pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180); |
| 1530 |
lft x2r=lft x3r=hround(2.5u-.5shaved_stem); |
| 1531 |
y2=y8; y3=max(.5bar_height,2vair); |
| 1532 |
pickup crisp.nib; pos8(bar,90); |
| 1533 |
rt x8=hround(w-1.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l; |
| 1534 |
if hefty: pos7(bar,90); |
| 1535 |
filldraw stroke z7e--z8e; % crossbar |
| 1536 |
pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0); |
| 1537 |
rt x1r=fine.rt x2l; top y1=h; |
| 1538 |
penpos2'(x1r-x1l,0); x2'=x1; y2'=y2; |
| 1539 |
filldraw stroke z1e--z2'e; % upper terminal |
| 1540 |
else: pos7(vair,90); pos1(hair,0); |
| 1541 |
rt x1r=fine.rt x2l; top y1=h; |
| 1542 |
filldraw z1l{down}...{left}z7r--z7l--z8l |
| 1543 |
--z8r--(x1r,y8r)--z1r--cycle; fi % upper terminal and crossbar |
| 1544 |
pickup fine.nib; interim superness:=more_super; |
| 1545 |
pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u); |
| 1546 |
if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l]; |
| 1547 |
(x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]); |
| 1548 |
filldraw stroke z2e..super_arc.e(3,4)...{up}z5e; % stem and hook |
| 1549 |
pickup crisp.nib; pos6(hair,0); pos5'(hair,0); |
| 1550 |
x6=x5=x5'; top y6=max(vround .75bar_height,top y5); y5=y5'; |
| 1551 |
filldraw stroke z5'e--z6e; % terminal |
| 1552 |
else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height]; |
| 1553 |
x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair; |
| 1554 |
filldraw stroke z2e..super_arc.e(3,4); % stem and hook |
| 1555 |
path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal |
| 1556 |
if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): |
| 1557 |
filldraw stroke z4e{right}...{up}z5e; |
| 1558 |
else: filldraw p; fi fi; |
| 1559 |
picture rvchar; |
| 1560 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.33h),180);% |
| 1561 |
else: rvchar=currentpicture rotatedabout((.58w,.33h),180);fi |
| 1562 |
currentpicture:= rvchar; |
| 1563 |
penlabels(1,2,3,4,5,6,7,8); endchar; |
| 1564 |
|
| 1565 |
cmchar "The letter right-tailed t"; |
| 1566 |
beginchar(oct"120",6.2u#+max(u#,.5stem#), |
| 1567 |
min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),desc_depth#); |
| 1568 |
italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; |
| 1569 |
adjust_fit(0,if serifs: 0 else: -.5u# fi); |
| 1570 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 1571 |
pickup fine.nib; pos2(shaved_stem,180); pos3(shaved_stem,180); |
| 1572 |
lft x2r=lft x3r=hround(2.5u-.5shaved_stem); |
| 1573 |
y2=y8; y3=-.3d; |
| 1574 |
pickup crisp.nib; pos8(bar,90); |
| 1575 |
rt x8=hround(.93w-1.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l; |
| 1576 |
if hefty: pos7(bar,90); |
| 1577 |
filldraw stroke z7e--z8e; % crossbar |
| 1578 |
pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0); |
| 1579 |
rt x1r=fine.rt x2l; top y1=h; |
| 1580 |
penpos2'(x1r-x1l,0); x2'=x1; y2'=y2; |
| 1581 |
filldraw stroke z1e--z2'e; %terminal |
| 1582 |
else: pos7(vair,90); pos1(hair,0); |
| 1583 |
rt x1r=fine.rt x2l; top y1=h; |
| 1584 |
filldraw z1l{down}...{left}z7r--z7l--z8l |
| 1585 |
--z8r--(x1r,y8r)--z1r--cycle; fi % upper terminal and crossbar |
| 1586 |
pickup fine.nib; |
| 1587 |
filldraw stroke z2e--z3e; % stem |
| 1588 |
%tail |
| 1589 |
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); |
| 1590 |
define_whole_blacker_pixels(dot_diam); |
| 1591 |
pickup tiny.nib; pos15(vair,-90); pos16(hair,0); pos17(flare,0); |
| 1592 |
x15=.5[x3,x16r]; bot y15r=-d+oo; y16-.5flare=-.8d; |
| 1593 |
z16r=z17r; rt x17r=w-.4u; |
| 1594 |
filldraw stroke z3e{down}...{right}z15e{up}; |
| 1595 |
bulb(15,16,17); % arc and bulb |
| 1596 |
penlabels(1,2,3,7,8,15,16,17); endchar; |
| 1597 |
|
| 1598 |
cmchar "The letter barred u"; |
| 1599 |
beginchar(oct"124",10u#,x_height#,0); |
| 1600 |
italcorr x_height#*slant-serif_fit#+.5stem#-2u#; |
| 1601 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 1602 |
numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; |
| 1603 |
if light_vair<fine.breadth: light_vair:=fine.breadth; fi |
| 1604 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 1605 |
pos3(stem,0); pos4(stem',0); |
| 1606 |
lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; |
| 1607 |
if serifs: top y1=h+min(oo,serif_drop); bot y4=-min(oo,serif_drop); |
| 1608 |
else: top y1=h; bot y4=0; fi |
| 1609 |
pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; |
| 1610 |
penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; |
| 1611 |
penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); |
| 1612 |
y6=y0=2/3bar_height; |
| 1613 |
filldraw stroke z1e--z2e; % left stem |
| 1614 |
filldraw stroke z3e..z0e--z0'e..z4e; % right stem |
| 1615 |
pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; |
| 1616 |
(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); |
| 1617 |
filldraw stroke {{interim superness:=hein_super; |
| 1618 |
pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc |
| 1619 |
if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif |
| 1620 |
sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif |
| 1621 |
sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif |
| 1622 |
pickup crisp.nib; |
| 1623 |
pos10(bar,90); pos11(bar,90); |
| 1624 |
top y10=top y11=.5h+o; lft x10=w-rt x11=hround .25u; |
| 1625 |
filldraw stroke z10e--z11e; %bar |
| 1626 |
penlabels(1,2,3,4,5,10,11); labels(6); endchar; |
| 1627 |
|
| 1628 |
cmchar "The letter slashed u"; |
| 1629 |
beginchar(oct"125",10u#,asc_height#,paren_depth#); |
| 1630 |
italcorr x_height#*slant-serif_fit#+.5stem#-2u#; |
| 1631 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 1632 |
numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; |
| 1633 |
if light_vair<fine.breadth: light_vair:=fine.breadth; fi |
| 1634 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 1635 |
pos3(stem,0); pos4(stem',0); |
| 1636 |
lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; |
| 1637 |
if serifs: top y1=x_height+min(oo,serif_drop);bot y4=-min(oo,serif_drop); |
| 1638 |
else: top y1=x_height; bot y4=0; fi |
| 1639 |
pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; |
| 1640 |
penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; |
| 1641 |
penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); |
| 1642 |
y6=y0=2/3bar_height; |
| 1643 |
filldraw stroke z1e--z2e; % left stem |
| 1644 |
filldraw stroke z3e..z0e--z0'e..z4e; % right stem |
| 1645 |
pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; |
| 1646 |
(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); |
| 1647 |
filldraw stroke {{interim superness:=hein_super; |
| 1648 |
pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc |
| 1649 |
if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif |
| 1650 |
sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif |
| 1651 |
sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif |
| 1652 |
% slash |
| 1653 |
adjust_fit(0,0); pickup rule.nib; |
| 1654 |
rt x11=hround(w-.1u)+eps; top y11=.75h+eps; |
| 1655 |
lft x12=hround u-eps; bot y12=-d-eps; |
| 1656 |
draw z11--z12; % diagonal |
| 1657 |
penlabels(1,2,3,4,5,11,12); labels(6); endchar; |
| 1658 |
|
| 1659 |
|
| 1660 |
cmchar "The letter turned v"; |
| 1661 |
beginchar(oct"004",if serifs: 9.5u# else:9u# fi,x_height#,0); |
| 1662 |
italcorr x_height#*slant+.25u#; |
| 1663 |
adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); |
| 1664 |
numeric left_stem,right_stem,outer_jut,alpha; |
| 1665 |
left_stem=fudged.stem-stem_corr; |
| 1666 |
right_stem=min(fudged.hair if hefty:-2stem_corr fi,left_stem); |
| 1667 |
outer_jut=.75jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4=h; |
| 1668 |
x2-x1=x4-x3; x2l+apex_corr=x3l; y2=y3=-apex_oo; |
| 1669 |
alpha=diag_ratio(2,right_stem,y1-y2,x4r-x1l-apex_corr); |
| 1670 |
penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); |
| 1671 |
penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); |
| 1672 |
z0=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 1673 |
if y0>notch_cut: y0:=notch_cut; |
| 1674 |
fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r) |
| 1675 |
--diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} |
| 1676 |
...{down}z0+.5left--cycle; % left and right diagonals |
| 1677 |
else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l) |
| 1678 |
--diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals |
| 1679 |
if serifs: numeric inner_jut; pickup tiny.nib; |
| 1680 |
prime_points_inside(1,2); prime_points_inside(4,3); |
| 1681 |
if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; |
| 1682 |
else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi |
| 1683 |
dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif |
| 1684 |
dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); fi % right serif |
| 1685 |
picture rvchar; |
| 1686 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180);% |
| 1687 |
else: rvchar=currentpicture rotatedabout((.58w,.5h),180);fi |
| 1688 |
currentpicture:= rvchar; |
| 1689 |
penlabels(0,1,2,3,4); endchar; |
| 1690 |
|
| 1691 |
cmchar "The letter turned w"; |
| 1692 |
beginchar(oct"132",13u#,x_height#,0); |
| 1693 |
italcorr x_height#*slant+.25u#; |
| 1694 |
adjust_fit(serif_fit#,serif_fit#); |
| 1695 |
numeric stem[],outer_jut,upper_notch,alpha,mid_corr; |
| 1696 |
outer_jut=.7jut; x1l=w-x8r=l+letter_fit+outer_jut+.25u; |
| 1697 |
stem1=fudged.stem-stem_corr; |
| 1698 |
stem4=min(fudged.hair if hefty:-2stem_corr fi,stem1); |
| 1699 |
stem2=if hefty:.1[vair,stem4] else: stem4 fi; |
| 1700 |
stem3=max(stem2,stem1-3stem_corr); |
| 1701 |
x2-x1=x4-x3=x6-x5=x8-x7; x2l+apex_corr=x3l; x6l+apex_corr=x7l; |
| 1702 |
y1=y8=h; y2=y3=y6=y7=-apex_oo; |
| 1703 |
y4=y5=if monospace: vround .6 fi\\ h; upper_notch=y4-notch_cut; |
| 1704 |
mid_corr=if monospace or hefty:-.3apex_corr else: .5jut fi; |
| 1705 |
alpha=diag_ratio(4,stem2-stem3+stem4,y1-y2,x8r-x1l+mid_corr-2apex_corr); |
| 1706 |
penpos1(alpha*stem1,0); penpos2(alpha*stem1,0); |
| 1707 |
penpos3(alpha*stem2,0); penpos4(alpha*stem2,0); |
| 1708 |
penpos5(alpha*stem3,0); penpos6(alpha*stem3,0); |
| 1709 |
penpos7(alpha*stem4,0); penpos8(alpha*stem4,0); |
| 1710 |
x4l-x1l=floor(x4l-x1l+.5(x5r+mid_corr-x4r)); % |x5r| $\approx$ |x4r+mid_corr| |
| 1711 |
z23=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 1712 |
z45=whatever[z3r,z4r]=whatever[z5l,z6l]; |
| 1713 |
z67=whatever[z5r,z6r]=whatever[z7l,z8l]; |
| 1714 |
fill diag_end(1l,2l,1,1,3r,4r){z4-z3} |
| 1715 |
...if y45<upper_notch:(x45,upper_notch)+.5left{up} |
| 1716 |
--(x45,upper_notch)+.5right{down} else: z45&z45 fi |
| 1717 |
...{z6-z5}diag_end(5l,6l,1,1,7r,8r)--diag_end(7r,8r,1,1,8l,7l){z7-z8} |
| 1718 |
...if y67>notch_cut:(x67,notch_cut)+.5right{down} |
| 1719 |
--(x67,notch_cut)+.5left{up} else: z67&z67 fi |
| 1720 |
...{z5-z6}special_diag_end(6,5,4,3){z3-z4} |
| 1721 |
...if y23>notch_cut:(x23,notch_cut)+.5right{down} |
| 1722 |
--(x23,notch_cut)+.5left{up} else: z23&z23 fi |
| 1723 |
...{z1-z2}diag_end(2r,1r,1,1,1l,2l)--cycle; % diagonals |
| 1724 |
if serifs: numeric inner_jut[]; pickup tiny.nib; |
| 1725 |
prime_points_inside(1,2); prime_points_inside(5,6); prime_points_inside(8,7); |
| 1726 |
if monospace: inner_jut1=inner_jut4=1.5jut; |
| 1727 |
elseif hefty: inner_jut1=inner_jut4=jut; |
| 1728 |
else: fill diag_end(6r,5r,1,1,5l,6l)--.5[z5l,z6l] |
| 1729 |
--.5[z5r,z6r]--cycle;% middle stem |
| 1730 |
inner_jut2=.7inner_jut1; inner_jut4=1.1inner_jut3; |
| 1731 |
if rt x1'r+jut+.5u+1<=lft x5'l-.7jut: inner_jut1=jut; |
| 1732 |
else: rt x1'r+inner_jut1+.5u+1=lft x5'l-inner_jut2; fi |
| 1733 |
if rt x5'r+jut+.5u+1<=lft x8'l-1.1jut: inner_jut3=jut; |
| 1734 |
else: rt x5'r+inner_jut3+.5u+1=lft x8'l-inner_jut4; fi |
| 1735 |
dish_serif(5',6,e,1/3,inner_jut2,f,1/2,inner_jut3); fi % middle serif |
| 1736 |
dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut1); % left serif |
| 1737 |
dish_serif(8',7,c,.6,inner_jut4,d,1/2,outer_jut)(dark); fi % right serif |
| 1738 |
picture rvchar; |
| 1739 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180);% |
| 1740 |
else: rvchar=currentpicture rotatedabout((.58w,.5h),180);fi |
| 1741 |
currentpicture:= rvchar; |
| 1742 |
penlabels(0,1,2,3,4,5,6,7,8,23,45,67); endchar; |
| 1743 |
|
| 1744 |
cmchar "The letter turned y"; |
| 1745 |
beginchar(oct"134",if serifs:9.5u# else:9u# fi,asc_height#,0); |
| 1746 |
italcorr x_height#*slant+.25u#; |
| 1747 |
adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); |
| 1748 |
numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; |
| 1749 |
left_stem=fudged.stem-stem_corr; |
| 1750 |
right_stem=fudged.hair if hefty:-2stem_corr fi; |
| 1751 |
bot_stem=fudged.hair if hefty:-8stem_corr fi; |
| 1752 |
bot_vair=Vround(if serifs: vair else:.5[vair,bot_stem] fi); |
| 1753 |
outer_jut=.75jut; |
| 1754 |
x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4r=x_height; y2=y3=0; x2l=x3l; |
| 1755 |
numeric alpha,alpha[]; x9=3u; y9=bot_vair-d-oo; |
| 1756 |
alpha1=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-apex_corr); |
| 1757 |
alpha2=diag_ratio(1,bot_stem,y1-y9,x4r-x9); |
| 1758 |
if alpha1<alpha2: x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1; |
| 1759 |
else: alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi |
| 1760 |
penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); |
| 1761 |
alpha3=(y1++(x2l-x1l))/y1; |
| 1762 |
penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); |
| 1763 |
z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); |
| 1764 |
if y0>notch_cut: y0:=notch_cut; |
| 1765 |
fill z0+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) |
| 1766 |
--z3r--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} |
| 1767 |
...{down}z0+.5left--cycle; % left and right diagonals |
| 1768 |
else: fill z0--diag_end(0,4l,1,1,4r,3r)--z3r--z2l |
| 1769 |
--diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals |
| 1770 |
penpos5(alpha*bot_stem,0);z5r=whatever[z3r,z4r]; y5-.5vair=-.5desc_depth; |
| 1771 |
if serifs: numeric light_bulb; light_bulb=hround 7/8[hair,flare]; clearpen; |
| 1772 |
penpos6(vair,-90); penpos7(hair,-180); penpos8(light_bulb,-180); |
| 1773 |
x6=2u; y6r=-desc_depth-oo; y8-.5light_bulb=-.85desc_depth; |
| 1774 |
x8r=hround .35u; |
| 1775 |
fill stroke z3e---z5e...{left}z6e; bulb(6,7,8); % arc and bulb |
| 1776 |
numeric inner_jut; pickup tiny.nib; |
| 1777 |
prime_points_inside(1,2); prime_points_inside(4,3); |
| 1778 |
if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; |
| 1779 |
else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi |
| 1780 |
dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif |
| 1781 |
dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif |
| 1782 |
else: penpos6(bot_vair,-90); x6=2.5u; y6r=-desc_depth-oo; |
| 1783 |
fill stroke z3e---z5e...{left}z6e; % arc |
| 1784 |
pickup fine.nib; pos6'(bot_vair,-90); z6'=z6; |
| 1785 |
pos7(2/3[bot_vair,flare],-85); |
| 1786 |
lft x7l=hround u; bot y7r=vround-.96desc_depth-oo; y7l:=good.y y7l; |
| 1787 |
filldraw stroke term.e(6',7,left,1,4); fi % arc and terminal |
| 1788 |
picture rvchar; |
| 1789 |
if slant=0: rvchar=currentpicture rotatedabout((.5w,.5x_height),180);% |
| 1790 |
else: rvchar=currentpicture rotatedabout((.58w,.5x_height),180);fi |
| 1791 |
currentpicture:= rvchar; |
| 1792 |
penlabels(0,1,2,3,4,5,6,7,8,9); endchar; |
| 1793 |
|
| 1794 |
cmchar "The letter curly-tail z"; |
| 1795 |
beginchar(oct"136",9u#,x_height#,desc_depth#); |
| 1796 |
italcorr x_height#*slant-.5serif_fit#-.3u#; |
| 1797 |
adjust_fit(0,.5serif_fit#); |
| 1798 |
numeric arm_thickness[],z_stem; |
| 1799 |
arm_thickness1=vair; arm_thickness2=1.2vair; z_stem=.9[vair,stem]; |
| 1800 |
pickup tiny.nib; rt x1r=rt x2r=hround(.89w-.8u); |
| 1801 |
lft x3l=lft x4l=hround .5u; |
| 1802 |
top y1=h; y2=min(y1,h-2/3arm_thickness1); |
| 1803 |
bot y4=0; y3=max(y4,2/3arm_thickness2); |
| 1804 |
numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); |
| 1805 |
penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); |
| 1806 |
penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); |
| 1807 |
pair delta; delta=penoffset z3-z2 of currentpen; |
| 1808 |
fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l |
| 1809 |
---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r |
| 1810 |
---cycle; % diagonal |
| 1811 |
pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); |
| 1812 |
top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; |
| 1813 |
arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak |
| 1814 |
pos7(arm_thickness2,90); pos8(arm_thickness2,90); |
| 1815 |
x7=x4; bot y8l=bot y7l=y8'=0; |
| 1816 |
pos8'(cap_hair,0); x8'=.5[x7,x8]; |
| 1817 |
pos11(cap_hair,180); rt x11r=hround(w-.25u); y11=.2h+eps; |
| 1818 |
pos9(cap_hair,-90); x9=x8=.75[x7,x11]; |
| 1819 |
y9=.3h; |
| 1820 |
pos10(cap_hair,0); x10l= x3l; bot y10=-.75d; |
| 1821 |
filldraw stroke z7e--z8e{right}...{up}z11e..z9e |
| 1822 |
..{down}z8'e{down}---z10e; |
| 1823 |
penlabels(1,2,3,4,5,6,7,8,8',9,10,11); endchar; |
| 1824 |
|
| 1825 |
cmchar "The letter skinny right-tailed z"; |
| 1826 |
beginchar(oct"137",11.5u#,x_height#,desc_depth#); |
| 1827 |
italcorr x_height#*slant-.5serif_fit#-.3u#; |
| 1828 |
adjust_fit(0,.5serif_fit#); |
| 1829 |
numeric arm_thickness[],z_stem; |
| 1830 |
if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; |
| 1831 |
z_stem=.6[vair,stem]; |
| 1832 |
else: arm_thickness1=vair; arm_thickness2=vair'; z_stem=.9[vair,stem]; fi |
| 1833 |
pickup tiny.nib; rt x1r=rt x2r=hround(.74w-.8u); |
| 1834 |
lft x3l=lft x4l=hround .5u; |
| 1835 |
top y1=h; y2=min(y1,h-2/3arm_thickness1); |
| 1836 |
bot y4=0; y3=max(y4,2/3arm_thickness2); |
| 1837 |
numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); |
| 1838 |
penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); |
| 1839 |
penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); |
| 1840 |
pair delta; delta=penoffset z3-z2 of currentpen; |
| 1841 |
fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l |
| 1842 |
---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r |
| 1843 |
---cycle; % diagonal |
| 1844 |
pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); |
| 1845 |
top y5r=h; x5=x1; lft x6r=hround .76u; y6=good.y(y5l-beak/1.4)-eps; |
| 1846 |
arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak |
| 1847 |
pos7(arm_thickness2,-90); pos8(hair,0); |
| 1848 |
bot y7r=0; x7=x4; rt x8r=hround(.74w-.75u); y8=good.y(y7l+beak/1.2)+eps; |
| 1849 |
arm(7,8,b,beak_darkness,.6beak_jut); % lower arm and beak |
| 1850 |
%tail |
| 1851 |
numeric dot_diam#; dot_diam#=min(.7dot_size#,.7cap_curve#); |
| 1852 |
define_whole_blacker_pixels(dot_diam); |
| 1853 |
pickup tiny.nib; pos14(vair,180); pos18(1.5hair,180); |
| 1854 |
pos15(vair,-90); pos16(hair,0); pos17(flare,0); |
| 1855 |
z8=z18; |
| 1856 |
x14=x18; y14=-.6d; |
| 1857 |
bot y15r=-d+oo; y16-.5flare=-.75d; |
| 1858 |
rt x16r=hround(w-.1u); |
| 1859 |
x15=.5[x14,x16]; |
| 1860 |
filldraw stroke z18e{down}---z14e{down}..{right}z15e{up}; |
| 1861 |
bulb(15,16,17); % arc and bulb |
| 1862 |
penlabels(1,2,3,4,5,6,7,8,14,15,16,17,18); endchar; |
| 1863 |
|
| 1864 |
cmchar "Lowercase thorn"; |
| 1865 |
beginchar(oct"102",10u#+serif_fit#,asc_height#,desc_depth#); |
| 1866 |
italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); |
| 1867 |
adjust_fit(serif_fit#,0); |
| 1868 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 1869 |
pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; |
| 1870 |
lft x1l=hround(2.5u-.5stem'); top y1=h; |
| 1871 |
numeric edge; edge=rt x2r; |
| 1872 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); |
| 1873 |
pos4(vair',90); pos5(curve,0); pos6(vair,-90); |
| 1874 |
rt x3l=1/3[rt x2,edge]; y3=1/8[bar_height,x_height]; |
| 1875 |
x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; |
| 1876 |
rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; |
| 1877 |
x6=x3; bot y6r=-oo; |
| 1878 |
(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); |
| 1879 |
filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5) |
| 1880 |
&z5e{down}...{5(x6-x5),y6-y5}z6e; % bowl |
| 1881 |
y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); |
| 1882 |
pickup tiny.nib; bot y2=-d; |
| 1883 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 1884 |
pickup crisp.nib; pos8(hair,0); pos7'(stem,0); |
| 1885 |
z7'=z2; x8l=x7'l; bot y8=0; |
| 1886 |
filldraw stroke z7'e--z8e; % point |
| 1887 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif |
| 1888 |
dish_serif(2,0,b,1/3,jut,c,1/3,0); fi % lower serif |
| 1889 |
penlabels(0,1,2,3,4,5,6,8); endchar; |
| 1890 |
|
| 1891 |
cmchar "The letter esh"; |
| 1892 |
beginchar(oct"115",8.5u#,asc_height#,desc_depth#); |
| 1893 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 1894 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 1895 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 1896 |
%if odd(.5w-stem'): change_width; fi |
| 1897 |
lft x1l=hround(.5w-.5stem'); x1=x2; top y1=.8h; bot y2=0; |
| 1898 |
filldraw stroke z1e--z2e; % stem |
| 1899 |
% hooktop |
| 1900 |
pickup tiny.nib; |
| 1901 |
pos10(hair,-90); x10=.5[x1,x11l]; top y10l=h+o+1; |
| 1902 |
pos11(hair,0); rt x11l=hround(w-.2u); y11=.84h; |
| 1903 |
pos12(flare,0); |
| 1904 |
pos10'(hair,90); z10'=z10; |
| 1905 |
bulb(10',11,12); % bulb |
| 1906 |
filldraw stroke pulled_super_arc.e(1,10)(.4superpull); % arc and stem |
| 1907 |
%tail |
| 1908 |
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); |
| 1909 |
define_whole_blacker_pixels(dot_diam); |
| 1910 |
pickup tiny.nib; pos15(vair,-90); pos16(hair,-180); pos17(flare,-180); |
| 1911 |
x15=.5[x16r,x2]; bot y15r=-d+oo; y16-.5flare=-.85d; |
| 1912 |
z16r=z17r; x17r=.4u; |
| 1913 |
(x,y15r)=whatever[z15l,z2l]; x15r:=max(x,.5[x16r,x15]); |
| 1914 |
filldraw stroke pulled_super_arc.e(2,15)(.4superpull); |
| 1915 |
bulb(15,16,17); % arc and bulb |
| 1916 |
penlabels(1,2,10,11,12,15,16,17); endchar; |
| 1917 |
|
| 1918 |
cmchar "The letter curly-tail esh"; |
| 1919 |
beginchar(oct"116",8.5u#,asc_height#,desc_depth#); |
| 1920 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 1921 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 1922 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 1923 |
%if odd(.5w-stem'): change_width; fi |
| 1924 |
lft x1l=hround(.5w-.5stem'); x1=x2; top y1=.8h; bot y2=0; |
| 1925 |
filldraw stroke z1e--z2e; % stem |
| 1926 |
% hooktop |
| 1927 |
pickup tiny.nib; |
| 1928 |
pos10(vair,-90); x10=.5[x1,x11l]; top y10l=h+o+1; |
| 1929 |
pos11(hair,0); rt x11l=hround(w-.2u); y11=.84h; |
| 1930 |
pos12(flare,0); |
| 1931 |
pos10'(vair,90); z10'=z10; |
| 1932 |
bulb(10',11,12); % bulb |
| 1933 |
filldraw stroke pulled_super_arc.e(1,10)(.4superpull); % arc and stem |
| 1934 |
%tail |
| 1935 |
pickup tiny.nib; pos15(vair,-90); pos16(cap_hair,-180); |
| 1936 |
x15=.5[x16r,x2]; bot y15r=-d+oo; |
| 1937 |
x16r=.4u; y16=.5[y15,y2]; |
| 1938 |
(x,y15r)=whatever[z15l,z2l]; x15r:=max(x,.5[x16r,x15]); |
| 1939 |
x4=.5[x16l,x2]; y4r=vround(0+oo); |
| 1940 |
x5=w-u; y5=-d-2oo; |
| 1941 |
pos4(cap_hair,90); pos5(cap_hair,0); |
| 1942 |
filldraw stroke pulled_super_arc.e(2,15)(.4superpull) |
| 1943 |
... z15e{left}..z16e..z4e{right}..z5e{down}; % curly tail |
| 1944 |
penlabels(1,2,3,4,5,10,11,12,15,16); endchar; |
| 1945 |
|
| 1946 |
cmchar "The letter yogh"; |
| 1947 |
beginchar(oct"140",8.5u#,x_height#,desc_depth#); |
| 1948 |
italcorr x_height#*slant-.5serif_fit#-.3u#; |
| 1949 |
adjust_fit(0,.5serif_fit#); |
| 1950 |
numeric arm_thickness[],z_stem; |
| 1951 |
if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; |
| 1952 |
z_stem=.6[vair,stem]; |
| 1953 |
else: arm_thickness1=1.75vair; arm_thickness2=vair'; |
| 1954 |
z_stem=.75[vair,stem];fi |
| 1955 |
pickup tiny.nib; rt x1r=rt x2r=hround(w-.5u); |
| 1956 |
lft x3l=lft x4l=hround .32w; |
| 1957 |
top y1=h; y2=min(y1,h-2/3arm_thickness1); |
| 1958 |
bot y4=.3h; y3=max(y4,2/3arm_thickness2); |
| 1959 |
numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); |
| 1960 |
penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); |
| 1961 |
penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); |
| 1962 |
pair delta; delta=penoffset z3-z2 of currentpen; |
| 1963 |
fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l |
| 1964 |
---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r |
| 1965 |
---cycle; % diagonal |
| 1966 |
pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); |
| 1967 |
top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; |
| 1968 |
arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak |
| 1969 |
pos7(arm_thickness2,-90); pos8(hair,0); |
| 1970 |
bot y7r=.3h; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps; |
| 1971 |
numeric top_thickness,mid_thickness,bot_thickness; |
| 1972 |
top_thickness=max(fine.breadth,vround(slab-2vair_corr)); |
| 1973 |
mid_thickness=max(fine.breadth,vround 2/3vair); |
| 1974 |
bot_thickness=max(fine.breadth,vround(slab-vair_corr)); |
| 1975 |
pickup fine.nib; |
| 1976 |
pos16(hair,90); x16=x3l; |
| 1977 |
x18=.5[1.5u,x17]; |
| 1978 |
pos17(curve,0); rt x17r=hround(w-.05u); |
| 1979 |
pos18(bot_thickness,-90); bot y18r=-d-o; |
| 1980 |
top y16r=.29h; |
| 1981 |
y17=.4[bot y16l,top y18l]; |
| 1982 |
filldraw stroke z16e{up}...{down}z17e{z18e} |
| 1983 |
& pulled_super_arc.e(17,18)(.5superpull); % lower bowl |
| 1984 |
numeric bulb_diam[]; |
| 1985 |
bulb_diam1=flare+.5(cap_stem-stem); bulb_diam2=flare+cap_stem-stem; |
| 1986 |
pos10(bulb_diam2,-180); pos19(cap_hair,-180); |
| 1987 |
lft x10r=hround .75u; y10=max(-d+.1h+.5bulb_diam2,-d+.3h-.5bulb_diam2); |
| 1988 |
bulb(18,19,10); % lower bulb |
| 1989 |
penlabels(1,2,3,4,5,6,7,8,10,16,17,18,19); endchar; |
| 1990 |
|
| 1991 |
cmchar "The letter curly-tail yogh"; |
| 1992 |
beginchar(oct"141",8.5u#,x_height#,desc_depth#); |
| 1993 |
italcorr x_height#*slant-.5serif_fit#-.3u#; |
| 1994 |
adjust_fit(0,.5serif_fit#); |
| 1995 |
numeric arm_thickness[],z_stem; |
| 1996 |
if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; |
| 1997 |
z_stem=.6[vair,stem]; |
| 1998 |
else: arm_thickness1=1.5vair; arm_thickness2=vair'; |
| 1999 |
z_stem=.75[vair,stem];fi |
| 2000 |
pickup tiny.nib; rt x1r=rt x2r=hround(w-.5u); |
| 2001 |
lft x3l=lft x4l=hround .32w; |
| 2002 |
top y1=h; y2=min(y1,h-2/3arm_thickness1); |
| 2003 |
bot y4=.3h; y3=max(y4,2/3arm_thickness2); |
| 2004 |
numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); |
| 2005 |
penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); |
| 2006 |
penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); |
| 2007 |
pair delta; delta=penoffset z3-z2 of currentpen; |
| 2008 |
fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l |
| 2009 |
---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r |
| 2010 |
---cycle; % diagonal |
| 2011 |
pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); |
| 2012 |
top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; |
| 2013 |
arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak |
| 2014 |
pos7(arm_thickness2,-90); pos8(hair,0); |
| 2015 |
bot y7r=.3h; x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps; |
| 2016 |
numeric top_thickness,mid_thickness,bot_thickness; |
| 2017 |
top_thickness=max(fine.breadth,vround(slab-2vair_corr)); |
| 2018 |
mid_thickness=max(fine.breadth,vround 2/3vair); |
| 2019 |
bot_thickness=max(fine.breadth,vround(slab-vair_corr)); |
| 2020 |
pickup fine.nib; |
| 2021 |
pos16(hair,90); x16=x3l; |
| 2022 |
x18=.5[1.5u,x17]; |
| 2023 |
pos17(curve,0); rt x17r=hround(w-.05u); |
| 2024 |
pos18(bot_thickness,-90); bot y18r=-d+o; |
| 2025 |
top y16r=.29h; |
| 2026 |
y17=.4[bot y16l,top y18l]; |
| 2027 |
lft x10r=x6r+.2u; y10=-.5d; |
| 2028 |
x11=x3r; y11r=vround(0+oo); |
| 2029 |
x12=hround(w+.3u); y12=-d-2oo; |
| 2030 |
pos10(cap_hair,-180); pos11(cap_hair,90); pos12(cap_hair,0); |
| 2031 |
filldraw stroke z16e{up}...{down}z17e{z18e} |
| 2032 |
& pulled_super_arc.e(17,18)(.5superpull) % lower bowl |
| 2033 |
... z18e{left}..z10e..z11e..z12e{down}; % curly tail |
| 2034 |
penlabels(1,2,3,4,5,6,7,8,10,11,12,16,17,18); endchar; |
| 2035 |
|
| 2036 |
cmchar "The ligature t-esh"; |
| 2037 |
beginchar(oct"121",10u#+max(u#,.5stem#), |
| 2038 |
min(asc_height#,if hefty:9/7 else:10/7 fi\\ x_height#),desc_depth#); |
| 2039 |
italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; |
| 2040 |
adjust_fit(0,if serifs: 0 else: -.5u# fi); |
| 2041 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 2042 |
pickup fine.nib; pos2(shaved_stem,180);pos3(shaved_stem,180); |
| 2043 |
lft x2r=lft x3r=hround(2.5u-.5shaved_stem); |
| 2044 |
y2=y8; y3=max(.5bar_height,2vair); |
| 2045 |
pickup crisp.nib; pos8(bar,90); |
| 2046 |
rt x8=hround(.6w-.3u); top y8r=x_height; lft x7=hround 1/3u; y7l=y8l; |
| 2047 |
if hefty: pos7(bar,90); |
| 2048 |
filldraw stroke z7e--z8e; % crossbar |
| 2049 |
pickup tiny.nib; pos1(hround(shaved_stem-stem_corr),0); |
| 2050 |
rt x1r=fine.rt x2l; top y1=h; |
| 2051 |
penpos2'(x1r-x1l,0); x2'=x1; y2'=y2; |
| 2052 |
filldraw stroke z1e--z2'e; % upper terminal |
| 2053 |
else: pos7(vair,90); pos1(hair,0); |
| 2054 |
rt x1r=fine.rt x2l; top y1=h; |
| 2055 |
filldraw z1l{down}...{left}z7r--z7l--z8l |
| 2056 |
--z8r--(x1r,y8r)--z1r--cycle; fi % upper terminal and crossbar |
| 2057 |
pickup fine.nib; interim superness:=more_super; |
| 2058 |
pos4(vair',-90); bot y4r=-oo; rt x5r=hround(.6w-.5u); |
| 2059 |
if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l]; |
| 2060 |
(x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]); |
| 2061 |
filldraw stroke z2e..super_arc.e(3,4)...{up}z5e; % stem and hook |
| 2062 |
pickup crisp.nib; pos6(hair,0); pos5'(hair,0); |
| 2063 |
x6l=x5=x5'; top y6=max(vround .75bar_height,top y5); y5=y5'; |
| 2064 |
filldraw stroke z5'e--z6e; % terminal |
| 2065 |
else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height]; |
| 2066 |
x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair; |
| 2067 |
filldraw stroke z2e..super_arc.e(3,4); % stem and hook |
| 2068 |
path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal |
| 2069 |
if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): |
| 2070 |
filldraw stroke z4e{right}...{up}z5e; |
| 2071 |
else: filldraw p; fi fi; |
| 2072 |
%cmchar "The letter esh"; |
| 2073 |
pickup tiny.nib; pos21(.9stem',0); pos22(.9stem',0); |
| 2074 |
lft x21l=x6; x21=x22; top y21=.8h; bot y22=0; |
| 2075 |
filldraw stroke z21e--z22e; % stem |
| 2076 |
% hooktop |
| 2077 |
pickup tiny.nib; |
| 2078 |
pos10(vair,-90); x10=.5[x21,x11l]; top y10l=h+o+1; |
| 2079 |
pos11(hair,0); rt x11l=hround(w-.4u); y11=.84h; |
| 2080 |
pos12(flare,0); |
| 2081 |
pos10'(vair,90); z10'=z10; |
| 2082 |
bulb(10',11,12); % bulb |
| 2083 |
filldraw stroke pulled_super_arc.e(21,10)(.4superpull); % arc and stem |
| 2084 |
%tail |
| 2085 |
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); |
| 2086 |
define_whole_blacker_pixels(dot_diam); |
| 2087 |
pickup tiny.nib; pos15(vair,-90); pos16(hair,-180); pos17(flare,-180); |
| 2088 |
x15=.5[x16r,x22]; bot y15r=-d+oo; y16-.5flare=-.85d; |
| 2089 |
z16r=z17r; x17r=hround(x3+.1u); |
| 2090 |
x15r:=max(x,.5[x16r,x15]); |
| 2091 |
filldraw stroke pulled_super_arc.e(22,15)(.4superpull); |
| 2092 |
bulb(15,16,17); % arc and bulb |
| 2093 |
penlabels(1,2,3,4,5,6,7,8,10,11,12,15,16,17,21,22); endchar; |
| 2094 |
|
| 2095 |
cmchar "The ligature l-yogh"; |
| 2096 |
beginchar(oct"61",9u#,asc_height#,desc_depth#); |
| 2097 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 2098 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 2099 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 2100 |
if odd(w-stem'): change_width; fi |
| 2101 |
lft x1l=hround(.26w-.5stem'); x1=x2; top y1=h; bot y2=0; |
| 2102 |
filldraw stroke z1e--z2e; % stem |
| 2103 |
if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper serif |
| 2104 |
dish_serif(2,1,b,1/3,jut,c,1/3,jut); fi % lower serif |
| 2105 |
%cmchar "The letter yogh"; |
| 2106 |
numeric arm_thickness[],z_stem; |
| 2107 |
if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; |
| 2108 |
z_stem=.6[vair,stem]; |
| 2109 |
else: arm_thickness1=1.75vair; arm_thickness2=vair'; |
| 2110 |
z_stem=.75[vair,stem];fi |
| 2111 |
pickup tiny.nib; rt x21r=rt x22r=hround(w-.2u); |
| 2112 |
lft x3l=lft x4l=hround rt x2r+1.5u; |
| 2113 |
top y21=x_height; y22=min(y21,x_height-2/3arm_thickness1); |
| 2114 |
bot y4=.31x_height; y3=max(y4,2/3arm_thickness2); |
| 2115 |
numeric alpha; alpha=diag_ratio(21,z_stem-tiny,y22-y3,x22r-x3l-slant*(y22-y3)); |
| 2116 |
penpos21(alpha*(z_stem-tiny),0); penpos22(alpha*(z_stem-tiny),0); |
| 2117 |
penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); |
| 2118 |
pair delta; delta=penoffset z3-z22 of currentpen; |
| 2119 |
fill top lft z21l--z22l+delta---z3l+delta..lft z3l---lft z4l..bot z4l |
| 2120 |
---bot rt z4r--z3r-delta---z22r-delta..rt z22r---rt z21r..top z21r |
| 2121 |
---cycle; % diagonal |
| 2122 |
pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); |
| 2123 |
top y5r=x_height; x5=x21; lft x6r=x2; y6=good.y(y5l-beak/1.4)-eps; |
| 2124 |
arm(5,6,d,beak_darkness,-.4beak_jut); % upper arm and beak |
| 2125 |
pos7(arm_thickness2,-90); pos8(hair,0); |
| 2126 |
bot y7r=.31x_height; |
| 2127 |
x7=x4; rt x8r=hround(w-.75u); y8=good.y(y7l+beak/1.2)+eps; |
| 2128 |
numeric top_thickness,mid_thickness,bot_thickness; |
| 2129 |
top_thickness=max(fine.breadth,vround(slab-2vair_corr)); |
| 2130 |
mid_thickness=max(fine.breadth,vround 2/3vair); |
| 2131 |
bot_thickness=max(fine.breadth,vround(slab-vair_corr)); |
| 2132 |
pickup fine.nib; |
| 2133 |
pos16(hair,90); x16=x3l; |
| 2134 |
x18=.5[1.5u,x17]; |
| 2135 |
pos17(curve,0); rt x17r=hround(w-.05u); |
| 2136 |
pos18(bot_thickness,-90); bot y18r=-d-o; |
| 2137 |
top y16r=.29x_height; |
| 2138 |
y17=.4[bot y16l,top y18l]; |
| 2139 |
filldraw stroke z16e{up}...{down}z17e{z18e} |
| 2140 |
& pulled_super_arc.e(17,18)(.5superpull); % lower bowl |
| 2141 |
numeric bulb_diam[]; |
| 2142 |
bulb_diam1=flare+.5(cap_stem-stem); bulb_diam2=flare+cap_stem-stem; |
| 2143 |
pos10(bulb_diam2,-180); pos19(cap_hair,-180); |
| 2144 |
lft x10r=x2; |
| 2145 |
y10=min(-d+.1x_height+.5bulb_diam2,-d+.3x_height-.5bulb_diam2); |
| 2146 |
bulb(18,19,10); % lower bulb |
| 2147 |
penlabels(1,2,21,22,3,4,5,6,7,8,10,16,17,18,19); endchar; |
| 2148 |
|
| 2149 |
cmchar "The ligature d-yogh"; |
| 2150 |
beginchar(oct"22",14.5u#+serif_fit#,asc_height#,desc_depth#); |
| 2151 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 2152 |
adjust_fit(0,serif_fit#); |
| 2153 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 2154 |
pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; |
| 2155 |
rt x1r=hround(.67w-2.5u+.5stem'); top y1=h; |
| 2156 |
numeric edge; edge=lft x2l; |
| 2157 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); |
| 2158 |
pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); |
| 2159 |
lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); |
| 2160 |
y3=1/8[bar_height,x_height]; |
| 2161 |
x4l=.5(.67w-serif_fit)-.3u; top y4r=x_height+oo; |
| 2162 |
lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; |
| 2163 |
x6l=x4l-.2u; bot y6r=-oo; |
| 2164 |
x7=x3; y7=min(y3,y6+y4-y3+.6vair); |
| 2165 |
(x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); |
| 2166 |
(x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); |
| 2167 |
filldraw stroke z3e{up}...pulled_arc.e(4,5) |
| 2168 |
& pulled_arc.e(5,6)...{up}z7e; % bowl |
| 2169 |
y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); |
| 2170 |
pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; |
| 2171 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 2172 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif |
| 2173 |
sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif |
| 2174 |
%cmchar "The letter yogh"; |
| 2175 |
numeric arm_thickness[],z_stem; |
| 2176 |
if hefty: arm_thickness1=Vround(vair-vair_corr); arm_thickness2=vair; |
| 2177 |
z_stem=.6[vair,stem]; |
| 2178 |
else: arm_thickness1=1.75vair; arm_thickness2=vair'; |
| 2179 |
z_stem=.75[vair,stem];fi |
| 2180 |
pickup tiny.nib; rt x21r=rt x22r=hround(w-.5u); |
| 2181 |
lft x23l=lft x24l=hround rt x2r+1.5u; |
| 2182 |
top y21=x_height; y22=min(y21,x_height-2/3arm_thickness1); |
| 2183 |
bot y24=.3x_height; y23=max(y24,2/3arm_thickness2); |
| 2184 |
numeric alpha; |
| 2185 |
alpha=diag_ratio(21,z_stem-tiny,y22-y23,x22r-x23l-slant*(y22-y23)); |
| 2186 |
penpos21(alpha*(z_stem-tiny),0); penpos22(alpha*(z_stem-tiny),0); |
| 2187 |
penpos23(alpha*(z_stem-tiny),0); penpos24(alpha*(z_stem-tiny),0); |
| 2188 |
pair delta; delta=penoffset z23-z22 of currentpen; |
| 2189 |
fill top lft z21l--z22l+delta---z23l+delta..lft z23l---lft z24l..bot z24l |
| 2190 |
---bot rt z24r--z23r-delta---z22r-delta..rt z22r---rt z21r..top z21r |
| 2191 |
---cycle; % diagonal |
| 2192 |
pickup crisp.nib; pos25(arm_thickness1,90); pos26(hair,180); |
| 2193 |
top y25r=x_height; x25=x21; lft x26r=x2; y26=good.y(y25l-beak/1.4)-eps; |
| 2194 |
arm(25,26,d,beak_darkness,-.4beak_jut); % upper arm and beak |
| 2195 |
pos27(arm_thickness2,-90); pos8(hair,0); |
| 2196 |
bot y27r=.3x_height; |
| 2197 |
x27=x24; rt x8r=hround(w-.75u); y8=good.y(y27l+beak/1.2)+eps; |
| 2198 |
numeric top_thickness,mid_thickness,bot_thickness; |
| 2199 |
top_thickness=max(fine.breadth,vround(slab-2vair_corr)); |
| 2200 |
mid_thickness=max(fine.breadth,vround 2/3vair); |
| 2201 |
bot_thickness=max(fine.breadth,vround(slab-vair_corr)); |
| 2202 |
pickup fine.nib; |
| 2203 |
pos16(hair,90); x16=x23l; |
| 2204 |
pos10(bulb_diam2,-180); pos19(cap_hair,-180); |
| 2205 |
lft x10r=hround .45w+.75u; |
| 2206 |
x18=.5[x10,x17]; |
| 2207 |
pos17(curve,0); rt x17r=hround(w-.05u); |
| 2208 |
pos18(bot_thickness,-90); bot y18r=-d-o; |
| 2209 |
top y16r=.29x_height; |
| 2210 |
y17=.4[bot y16l,top y18l]; |
| 2211 |
filldraw stroke z16e{up}...{down}z17e{z18e} |
| 2212 |
& pulled_super_arc.e(17,18)(.5superpull); % lower bowl |
| 2213 |
numeric bulb_diam[]; |
| 2214 |
bulb_diam1=flare+.5(cap_stem-stem); bulb_diam2=flare+cap_stem-stem; |
| 2215 |
y10=min(-d+.1x_height+.5bulb_diam2,-d+.3x_height-.5bulb_diam2); |
| 2216 |
bulb(18,19,10); % lower bulb |
| 2217 |
penlabels(0,1,2,3,4,5,6,7,21,22,23,24,25,26,27,8,10,16,17,18,19); |
| 2218 |
endchar; |
| 2219 |
|
| 2220 |
cmchar "The letter oo"; |
| 2221 |
beginchar(oct"100",16.5u#,x_height#,0); |
| 2222 |
italcorr .7x_height#*slant; |
| 2223 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 2224 |
penpos1(vair,90); penpos3(vair',-90); |
| 2225 |
penpos2(curve,180); penpos4(curve,0); |
| 2226 |
x2r=hround max(.5u,1.25u-.5curve); |
| 2227 |
x4=.5w; x1=x3=.28w; y1r=h+vround 1.5oo; y3r=-oo; |
| 2228 |
y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; |
| 2229 |
penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 2230 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl |
| 2231 |
penpos11(vair,90); penpos13(vair',-90); |
| 2232 |
penpos12(curve,180); penpos14(curve,0); |
| 2233 |
x12r=x4l; |
| 2234 |
x14r=w-x2r; x11=x13=.72w; y11r=h+vround 1.5oo; y13r=-oo; |
| 2235 |
y12=y14=.5h-vair_corr; y12l:=y14l:=.52h; |
| 2236 |
penstroke pulled_arc.e(11,12) & pulled_arc.e(12,13) |
| 2237 |
& pulled_arc.e(13,14) & pulled_arc.e(14,11) & cycle; % bowl |
| 2238 |
penlabels(1,2,3,4,11,12,13,14); endchar; |