% % ipachar.mf: Phonetic Characters for TSIPA10 % This font is based on Computer Modern font series by D. E. Knuth. % % Version 1.0 <25 Dec 1992> % Modified by KOBAYASHI Hajime, FUKUI Rei and SHIRAKAWA Shun % cmchar "Turned A"; beginchar(oct"000",9u#,x_height#,0); bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); pickup fine.nib; top y3r=h+vround 1.5oo; if serifs: pos1(flare,180); pos2(hair,180); pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; y1=min(bh+.5flare+2vair+2,.9[bh,h]-.5flare); bulb(3,2,1); % bulb else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; pos3(1/8[vair,thin_join],90); x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; filldraw stroke term.e(3,1,left,.9,4); fi % terminal pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,h]; pos5(stem,0); x5=x4; y5=max(.55bh,2vair); filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; pos7(hround(curve-2stem_corr),180); lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; pos9(thin_join,360); z9l=z5l; (x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); {{interim superness:=more_super; filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); if hair#+.5stem#>1.5u#: pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; pos12(shaved_stem,0); x11=x12; top y12=slab+eps; filldraw z5'l---z10l...z11l{right}--z11r --z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; pos10(shaved_stem,0); x10=x5'; y10=1/3bh; pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); (x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; pos10(shaved_stem,0); x10=x5'; bot y10=0; filldraw stroke z5'e--z10e; fi % base of stem picture rvchar; if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180);% else: rvchar=currentpicture rotatedabout((.58w,.5h),180);fi currentpicture:= rvchar; penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; cmchar "Cursive A"; beginchar(oct"001",10u#+serif_fit#,x_height#,0); italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; adjust_fit(0,serif_fit#); pickup tiny.nib; pos1(stem',0); pos2(stem,0); pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; rt x1r=hround(w-2.5u+.5stem'); top y1=h+oo; numeric edge; edge=lft x2l; pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); lft x3l=1/3[lft x2,edge]; y3=1/8[bar_height,x_height]; x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; x6l=x4l-.2u; bot y6r=-oo; x7=x3; y7=min(y3,y6+y4-y3+.6vair); (x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); (x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); filldraw stroke z3e{up}...pulled_arc.e(4,5) & pulled_arc.e(5,6)...{up}z7e; % bowl y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; filldraw stroke z0'e--z0e--z2e; % stem pickup crisp.nib; pos8(hround(hair-stem_corr),0); pos7'(stem',0); z7'=z0'; x8r=x7'r; top y8=h+oo; filldraw stroke z7'e--z8e; if serifs: sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif penlabels(0,1,2,3,4,5,6,7,8); endchar; cmchar "Turned Cursive A"; beginchar(oct"002",10u#+serif_fit#,x_height#,0); italcorr .5x_height#*slant+min(.5curve#-u#,-.25u#); adjust_fit(serif_fit#,0); pickup tiny.nib; pos1(stem',0); pos2(stem,0); pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; lft x1l=hround(2.5u-.5stem'); top y1=h+min(oo,serif_drop); numeric edge; edge=rt x2r; pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); pos4(vair,90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l),1/3[rt x2,edge]); y3=1/8[bar_height,x_height]; x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; x6l=x4l-.2u; bot y6r=-oo; x7=x3; y7=min(y3,y6+y4-y3+.6vair); (x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x4,x5r]); (x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x6,x5r]); filldraw stroke z3e{up}...pulled_arc.e(4,5)&pulled_arc.e(5,6)...{up}z7e; % bowl y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); y2=ypart(((edge,h)--(edge,0))intersectionpoint(z6l{left}...{up}z7l)); pickup tiny.nib; filldraw stroke z1e--z0'e--z0e--z2e; % stem pickup crisp.nib; pos8(hair,0); pos7'(stem,0); z7'=z2; x8l=x7'l; bot y8=0; filldraw stroke z7'e--z8e; % point if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); fi % upper serif penlabels(0,1,2,3,4,5,6,7,8); endchar; cmchar "Turned V"; beginchar(oct"003",if serifs: 9.5u# else:9u# fi,x_height#,0); adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); numeric left_stem,right_stem,outer_jut,alpha; right_stem=fudged.stem-stem_corr; left_stem=min(fudged.hair if hefty:-2stem_corr fi,right_stem); outer_jut=.75jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4=0; x2-x1=x4-x3; x2r+apex_corr=x3r; y2=y3=h+apex_oo; alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr); penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); z0=whatever[z1r,z2r]=whatever[z3l,z4l]; if y075: p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor filldraw stroke pulled_super_arc.e(2,3)(.7superpull) & pulled_super_arc.e(3,4)(.5superpull) & p.e; fi%arc and lower terminal numeric edge; edge=lft x3l;path edge_path; edge_path=(edge,h)--(edge,0); pos6(hair,110); x6l=.3[x4,x5]; y6=.6bar_height; pos8(hair,180); x8=u; bot y8=-.75d; pos7(hair,180); x7=.65[x3r,x4r]; y7=ypart(edge_path intersectionpoint(z3r{down}...{right}z4r)); % filldraw stroke pulled_super_arc.e(5,6)(.9superpull){left} % ...z7e--z8e; filldraw stroke z5e{up}...{(-5,-1)}z6e...z7e...{(-1,-2)}z8e; penlabels(0,1,2,3,4,5,6,7,8); endchar; cmchar "Stretched C"; beginchar(oct"010",8u#,asc_height#,desc_depth#); italcorr x_height#*slant-.2u#; adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); pickup fine.nib; interim superness:=more_super; pos2(stem,90); pos5(stem,270); x2=x5=.5w; top y2r=vround(h+1.5oo); bot y5r=-d-oo; pos3(stem,180); pos4(stem,180); lft x3r=lft x4r=.6u; y3=.75h; y4=0; pos1(stem,0); rt x1r=hround(w-.6u); top y1=vround .75h; pos6(stem,0); rt x6r=hround(w-.5u); top y6=0; filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) & z3e--z4e & pulled_arc.e(4,5) & pulled_arc.e(5,6); penlabels(0,1,2,3,4,5,6); endchar; cmchar "Hooktop D"; beginchar(oct"011",10u#+serif_fit#,asc_height#,0); italcorr asc_height#*slant+1.75u#; adjust_fit(0,serif_fit#); pickup tiny.nib; pos1(stem',0); pos2(stem,0); pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; rt x1r=hround(w-2.5u+.5stem'); top y1=h; numeric edge; edge=lft x2l; pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); y3=1/8[bar_height,x_height]; x4l=.5(w-serif_fit)-.3u; top y4r=x_height+oo; lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; x6l=x4l-.2u; bot y6r=-oo; x7=x3; y7=min(y3,y6+y4-y3+.6vair); (x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); (x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); filldraw stroke z3e{up}...pulled_arc.e(4,5) & pulled_arc.e(5,6)...{up}z7e; % bowl y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); pickup tiny.nib; bot y2=if serifs:-min(oo,serif_drop) else: 0 fi; filldraw stroke z0e--z2e; % stem if serifs: sloped_serif.r(2,0,b,1/3,jut,min(oo,serif_drop)); fi % lower serif penlabels(0,1,2,3,4,5,6,7); % % Hook-top pickup fine.nib; numeric bulb_diam; bulb_diam=hround .8[stem,flare]; pos8(bulb_diam,0); y8+.5bulb_diam=.9[x_height,h+oo]; x8=x.a1+3u; pickup tiny.nib; pos a0(stem',180); x.a0l=x2r; y.a0=y0; pos a1(stem',180); x.a1=x.a0; y.a1+.5vair=.5[x_height,asc_height]; pos a2(vair,90); top y.a2r=h+oo; x.a2=.6[x.a1,x8r]; (x.a,y.a2r)=whatever[z.a2l,z.a1l]; x.a2r:=min(x.a,.5[x.a2,x8r]); pos a3(hair,0); bulb(a2,a3,8); % bulb filldraw stroke z.a0e--z.a1e & super_arc.e(a1,a2); % arc penlabels(8,a0,a1,a2,a3); endchar; cmchar "Right-tail D"; beginchar(oct"012",10u#,asc_height#,desc_depth#); italcorr 1.75u#; adjust_fit(0,serif_fit#-.5u#); pickup tiny.nib; pos1(stem',0); pos2(stem,0); pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; rt x1r=hround(w-2.5u+.5stem'+serif_fit); top y1=h; numeric edge; edge=lft x2l; pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); y3=1/8[bar_height,x_height]; x4l=.5(w-.5u)-.3u; top y4r=x_height+oo; lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; x6l=x4l-.2u; bot y6r=-oo; x7=x3; y7=min(y3,y6+y4-y3+.6vair); (x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); (x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); filldraw stroke z3e{up}...pulled_arc.e(4,5) & pulled_arc.e(5,6)...{up}z7e; % bowl y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); pickup tiny.nib; y2=-1/3d; filldraw stroke z1e--z0'e--z0e--z2e; % stem if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif pickup fine.nib; pos2'(stem',-180); z2'=z2; pos8(vair,-90); pos9(hair,0); pos10(flare,0); x8=.5[x2',x9r]; bot y8r=-d-oo; y9-.5flare=-.88d; if monospace: rt x9r = w else: z9r=z10r; x10=x0+2.5u fi; (xc,y8r)=whatever[z8l,z2'l]; x8r:=min(xc,.5[x9r,x8]); filldraw stroke z2'e{down}...z8e{right}; bulb(8,9,10); % arc and bulb else: pickup fine.nib; pos2'(stem',180); z2'=z2; pos9(.2[vair,stem'],-90); pos10(vair,-90); rt x10r=w-(hround.75u); bot y10r=vround 5/6(-d-oo); (x,y10l)=whatever[z10r,z2]; x7l:=x; z8l=z2'l; (x2'r,y8r)=whatever[z10r,z8l]; x8r=x2'r;y8=y8l; x9r=.5[x10l,x8l]; x9l:=.5[x10l,x8l]; bot y9r=-d-oo; filldraw stroke z2'e..{down}z5e & super_arc.e(8,9) & z9e{right}..z10e; fi % arc and terminal penlabels(0,1,2',3,4,5,6,7,8,9,10); endchar; cmchar "D-Yogh Digraph"; beginchar(oct"013",14u#,asc_height#,desc_depth#); numeric d_w; d_w=10u+serif_fit; italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; adjust_fit(0,.5serif_fit#); % "d" shape pickup tiny.nib; pos1(stem',0); pos2(stem,0); pos0'(stem',0); pos0(stem,0); z0r=z0'r; x0'=x1; x0=x2; rt x1r=hround(d_w-2.5u+.5stem'); top y1=h; numeric edge; edge=lft x2l; pickup fine.nib; pos3(if hefty:thin_join else: hair fi,0); pos4(vair,90); pos5(curve,180); pos6(vair,270); penpos7(x3r-x3l,360); lft x3l=min(lft x3l-(rt x3r-tiny.rt x2r),1/3[lft x2,edge]); y3=1/8[bar_height,x_height]; x4l=.5(d_w-serif_fit)-.3u; top y4r=x_height+oo; lft x5r=hround max(1.35u-.5curve,.6u); y5=.5x_height; x6l=x4l-.2u; bot y6r=-oo; x7=x3; y7=min(y3,y6+y4-y3+.6vair); (x,y4r)=whatever[z3l,z4l]; x4r:=max(x,.5[x5r,x4]); (x',y6r)=whatever[z7l,z6l]; x6r:=max(x',.5[x5r,x6]); filldraw stroke z3e{up}...pulled_arc.e(4,5) & pulled_arc.e(5,6)...{up}z7e; % bowl y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{left}z4l)); pickup tiny.nib; bot y2=.6bar_height; filldraw stroke z1e--z0'e--z0e--z2e; % stem sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif penlabels(0,1,2,3,4,5,6,7); % "Yogh" shape numeric arm_thickness[],z_stem,stem[]; numeric w_s; w_s=6u; stem1=fudged.stem-4stem_corr; if hefty: arm_thickness1=stem1; arm_thickness2=stem1; z_stem=fudged.hair; else: arm_thickness1=stem1; arm_thickness2=stem1; z_stem=fudged.hair; fi if arm_thickness1notch_cut: y0:=notch_cut; fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r) --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} ...{down}z0+.5left--cycle; % left and right diagonals else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l) --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals if serifs: numeric inner_jut; pickup tiny.nib; prime_points_inside(1,2); prime_points_inside(4,3); if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); fi % right serif numeric pos_cor; pos_cor=x4-x4l; % .5right_stem pickup penrazor; penpos60(alpha*left_stem,0); penpos61(alpha*left_stem,0); penpos62(alpha*1.1right_stem,-90); penpos63(alpha*right_stem,-180); penpos64(alpha*right_stem,-180); z60r=z64l=(z1r--z2r)intersectionpoint(z4r--z3r); bot y62r=-d-oo; x62=x3; z61=whatever[(x1-pos_cor,y1),(x2+pos_cor,y2)]; z63=whatever[z3l,z4r]; y61=y63=-.5d; filldraw stroke z60e{((x2+pos_cor,y2)-(x1-pos_cor,y1))} ...z61e..{left}z62e..z63e...{(z4r-z3l)}z64e; penlabels(0,1,2,3,4,60,61,62,63,64); endchar; cmchar "Baby Gamma"; beginchar(oct"030",if serifs: 9.5u# else:9u# fi,x_height#,0); italcorr x_height#*slant+.25u#; adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); numeric left_stem,right_stem,outer_jut,alpha; left_stem=fudged.stem-stem_corr; right_stem=min(fudged.hair if hefty:-2stem_corr fi,left_stem); outer_jut=.75jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4=h; x2-x1=x4-x3; x2l+apex_corr=x3l; y2=y3=.45h; alpha=diag_ratio(2,right_stem,y1-y2,x4r-x1l-apex_corr); penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); z0=whatever[z1r,z2r]=whatever[z3l,z4l]; if y0>notch_cut: y0:=notch_cut; fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r) --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} ...{down}z0+.5left--cycle; % left and right diagonals else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l) --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals if serifs: numeric inner_jut; pickup tiny.nib; prime_points_inside(1,2); prime_points_inside(4,3); if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); fi % right serif pickup penrazor; penpos60(alpha*left_stem,0); penpos61(alpha*.8left_stem,10); penpos62(alpha*right_stem,-90); penpos63(alpha*right_stem,-180); penpos64(alpha*right_stem,-180); z60r=z0; z64r=z2l; bot y62r=-d-oo; x62=x3; z61=whatever[z1,z2]; z63=whatever[z3,z4]; y61=y63=.35h; filldraw stroke z60e---z61e..{left}z62e..z63e---z64e; penlabels(0,1,2,3,4,60,61,62,63,64); endchar; cmchar "Ram's Horns"; beginchar(oct"031",9.5u#,x_height#,0); italcorr x_height#*slant+.5hair#-1.5u#; adjust_fit(0,0); pickup fine.nib; pos1(hair,180); pos2(vair,80); pos5(vair,80); pos6(hair,180); x1-.5hair=hround-.5hair+.5u; x6=w-x1; x2=w-x5=1.5u; y1=y2l-h/8; top y2r=h+oo; bot y5l=-d-oo; y6=y5r+h/8; z0=.5[z2,z5]; z2'=z2l+(.5u,0); z5'=z5r-(.5u,0); numeric theta; theta=angle(z5'-z2')+90; pos3(stem,theta); pos4(stem,theta); y3r=y2r-h/8; z3l=whatever[z2',z0]; z4=whatever[z3,z0]; y4=2/3y0; pos11(1.1hair,-90); z11r=(x0,0); filldraw stroke z1e{up}...z2e{right}...z3e---z4e...{left}z11e; x8=w-x7=2.5u; y7+.5hair=h; y8-.5hair=-d; numeric theta; theta=angle(z7-z8)-90; pos7(hair,theta); pos8(hair,theta); pos21(hair,theta-180); pos22(hair,theta-180); pos23(vair,90); pos24(hair,0); z21=whatever[z7,z8]; z22=whatever[z7,z8]; y21l=y4; y22=y3; top y23r=h+oo; x23=w-x2; x24=w-x1; y24=y1; filldraw stroke z11e{left}...z21e---z22e...{right}z23e...{down}z24e; %filldraw z7l---z8l..z8r---z7r..cycle; % minor diagonal math_fit((desc_depth#-x_height#)*slant+ic#,ic#); penlabels(0,1,2,2',3,4,5',5,6,7,8,11,12,21,22,23,24); endchar; cmchar "Hooktop H"; beginchar(oct"032",10u#,asc_height#,0); italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); pickup tiny.nib; pos1(stem,0); pos2(stem,0); pos1'(stem',0); pos2'(stem',0); pos3(stem,0); lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; top y1=.25[x_height,h]; bot y2=0; y1=y1'; y2=y2'; filldraw stroke z1'e--z2'e; % left stem h_stroke(2,a,3,4); % arch and right stem if serifs: pickup tiny.nib; pos9(vair,-270); pos9'(vair,-90);z9=z9';x9=.5[x1,x10]; top y9r=h; pos10(hair,-360); rt x10r=min(w- hround u,rt x3r); y10=.75[x_height,h]-.5flare; pos11(flare,-360); %z11l=z10l; bulb(9,10,11); filldraw stroke super_arc.e(1,9'); % tail else: pickup fine.nib; pos1'(stem,0); z1'=z1; z1''r=z1'r; z1''=z1'; z1''l=(x1'l,0); pos9(vair,-270); x9=4.5u; top y9r=h; pos10(.5[vair,flare],90); rt x10=hround 1.25u; y10r=good.y 5/6[x_height,h]; y10l:=good.y y10l; filldraw stroke z1'e..z1''e&super_arc.e(1'',9) & term.e(9,10,left,.9,4); fi % tail if serifs: numeric inner_jut; pickup tiny.nib; if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif penlabels(1,2,3,4,9,10,11); endchar; cmchar "Hooktop Heng"; beginchar(oct"033",10u#,asc_height#,desc_depth#); italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#if serifs:-.5u#fi); pickup tiny.nib; pos1(stem,0); pos2(stem,0); pos1'(stem',0); pos2'(stem',0); pos3(stem,0); lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; top y1=.25[x_height,h]; bot y2=0; y1=y1'; y2=y2'; filldraw stroke z1'e--z2'e; % left stem h_stroke(2,a,3,4); % arch and right stem if serifs: pickup tiny.nib; pos9(vair,-270); pos9'(vair,-90);z9=z9';x9=.5[x1,x10]; top y9r=h; pos10(hair,-360); rt x10r=min(w- hround u,rt x3r); y10=.75[x_height,h]-.5flare; pos11(flare,-360); %z11l=z10l; bulb(9,10,11); filldraw stroke super_arc.e(1,9'); % tail else: pickup fine.nib; pos1'(stem,0); z1'=z1; z1''r=z1'r; z1''=z1'; z1''l=(x1'l,0); pos9(vair,-270); x9=4.5u; top y9r=h; pos10(.5[vair,flare],90); rt x10=hround 1.25u; y10r=good.y 5/6[x_height,h]; y10l:=good.y y10l; filldraw stroke z1'e..z1''e&super_arc.e(1'',9) & term.e(9,10,left,.9,4); fi % tail if serifs: numeric inner_jut; pickup tiny.nib; if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif %dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif x8=x4; bot y8=-1/3d; penpos8(x3r-x3l,0); % stuff added pickup tiny.nib; filldraw stroke z4e--z8e; % right stem continuation pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180); x5=.5[x8,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d; if monospace: lft x6r=0; else: z6r=z7r; lft x7r= rt x2r; fi (x,y5r)=whatever[z5l,z8l]; x5r:=max(x,.5[x6r,x5]); filldraw stroke z8e{down}...z5e{left}; bulb(5,6,7); % arc and bulb penlabels(1,2,3,4,5,6,7,9,10,11); endchar; cmchar "Turned H"; beginchar(oct"034",10u#,x_height#,desc_depth#); italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); pickup tiny.nib; pos1(stem,0); pos2(stem,0); pos1'(stem',0); pos2'(stem',0); pos3(stem,0); lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; top y1=x_height+d+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; filldraw stroke z1'e--z2'e; % left stem h_stroke(2,a,3,4); % arch and right stem if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif numeric inner_jut; pickup tiny.nib; if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif currentpicture:=currentpicture rotatedaround((.5w,.5h),180); penlabels(1,2,3,4); endchar; cmchar "Iota"; beginchar(oct"036",4.5u#,x_height#,0); l_width#:=4u#; %italcorr max(1/3x_height#*slant+.5hair#+.5u#, % x_height#*slant+.5stem#-2u#) if math_fitting:+.5u# fi; adjust_fit(if monospace:u#,u# else: u#,0 fi); pickup fine.nib; x2-.5stem=hround(1.5u-.5stem); x4=w; hook_out(2,3,4); % closing hook pickup tiny.nib; pos1(stem,0); pos2'(stem,0); z2'=z2; top y1=x_height if serifs: +min(oo,serif_drop) fi; x1=x2; filldraw stroke z1e--z2e; % stem sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif math_fit(-.5u#,1/3x_height#*slant+.5hair#+u#); penlabels(1,2,3,4); endchar; cmchar "Curly-tail J"; numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); beginchar(oct"040",5.5u#,min(asc_height#,10/7x_height#+.5dot_diam#),desc_depth#); define_whole_blacker_pixels(dot_diam); italcorr h#*slant-serif_fit#+.5stem#-2u#; adjust_fit(serif_fit#+2stem_shift# if monospace:+\\.5u# fi, serif_fit#-2stem_shift# if monospace:-.5u# fi); pickup tiny.nib; pos1(stem',0); pos2(stem',0); rt x1r=hround(.5w+.25u+.5stem'); x1=x2; top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=-1/3d; filldraw stroke z1e--z2e; % stem pos3(dot_diam,0); pos4(dot_diam,90); x3r=x1r; top y4r=h+1; if bot y4l-top y1notch_cut:(x67,notch_cut)+.5right{down} --(x67,notch_cut)+.5left{up} else: z67&z67 fi ...{z5-z6}special_diag_end(6,5,4,3){z3-z4} ...if y23>notch_cut:(x23,notch_cut)+.5right{down} --(x23,notch_cut)+.5left{up} else: z23&z23 fi ...{z1-z2}diag_end(2r,1r,1,1,1l,2l)--cycle; % diagonals if serifs: numeric inner_jut[]; pickup tiny.nib; prime_points_inside(1,2); prime_points_inside(5,6); prime_points_inside(8,7); if monospace: inner_jut1=inner_jut4=1.5jut; elseif hefty: inner_jut1=inner_jut4=jut; else: fill diag_end(6r,5r,1,1,5l,6l)--.5[z5l,z6l] --.5[z5r,z6r]--cycle;% middle stem inner_jut2=.7inner_jut1; inner_jut4=1.1inner_jut3; if rt x1'r+jut+.5u+1<=lft x5'l-.7jut: inner_jut1=jut; else: rt x1'r+inner_jut1+.5u+1=lft x5'l-inner_jut2; fi if rt x5'r+jut+.5u+1<=lft x8'l-1.1jut: inner_jut3=jut; else: rt x5'r+inner_jut3+.5u+1=lft x8'l-inner_jut4; fi dish_serif(5',6,e,1/3,inner_jut2,f,1/2,inner_jut3); fi % middle serif dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut1); % left serif dish_serif(8',7,c,.6,inner_jut4,d,1/2,outer_jut)(dark); fi % right serif currentpicture:=currentpicture rotatedaround ((.5w,.5h),180); penlabels(0,1,2,3,4,5,6,7,8,23,45,67); endchar; cmchar "Chi"; beginchar(oct"113",9.5u#,x_height#,desc_depth#); italcorr x_height#*slant+.5hair#-1.5u#; adjust_fit(0,0); pickup fine.nib; pos1(hair,180); pos2(curve,80); pos5(curve,80); pos6(hair,180); x1-.5hair=hround-.5hair+.5u; x6=w-x1; x2=w-x5=2u; y1=y2l-h/6; top y2r=h+oo; bot y5l=-d-oo; y6=y5r+h/6; z0=.5[z2,z5]; z2'=z2l+(.5u,0); z5'=z5r-(.5u,0); numeric theta; theta=angle(z5'-z2')+90; pos3(hair,theta); pos4(hair,theta); y3r=y2r-h/3; y4l=y5l+h/3; %z3l=whatever[z2',z0]; z4r=whatever[z0,z5']; x3r+u=x4l-u=.5w; filldraw stroke z1e{up}...z2e{right}...z3e{z4r-z3l} ..z4e{z4r-z3l}...{right}z5e...{up}z6e; % major diagonal and hooks x8l=w-x7r=u; top y7=h; bot y8=-d; %numeric theta; theta=angle(z7-z8)-90; pos7(stem,0); pos8(stem,0); filldraw stroke z7e--z8e; % minor diagonal math_fit((desc_depth#-x_height#)*slant+ic#,ic#); penlabels(0,1,2,2',3,4,5',5,6,7,8); endchar; cmchar "Turned Y"; beginchar(oct"114",if serifs:9.5u# else:9u# fi,x_height#+desc_depth#,0); h:=vround(x_height#*hppp); d:=vround(desc_depth#*hppp); %adj. vertical italcorr x_height#*slant+.25u#; adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; left_stem=fudged.stem-stem_corr; right_stem=fudged.hair if hefty:-2stem_corr fi; bot_stem=fudged.hair if hefty:-8stem_corr fi; bot_vair=vround(if serifs: vair else:.5[vair,bot_stem] fi); outer_jut=.75jut; x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4r=h; y2=y3=0; x2l=x3l; numeric alpha,alpha[]; x9=3u; y9=bot_vair-d-oo; alpha1=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-apex_corr); alpha2=diag_ratio(1,bot_stem,y1-y9,x4r-x9); if alpha1notch_cut: y0:=notch_cut; fill z0+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) --z3r--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} ...{down}z0+.5left--cycle; % left and right diagonals else: fill z0--diag_end(0,4l,1,1,4r,3r)--z3r--z2l --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals penpos5(alpha*bot_stem,0); z5r=whatever[z3r,z4r]; y5-.5vair=-.5d; if serifs: numeric light_bulb; light_bulb=7/8[hair,flare]; clearpen; penpos6(vair,-90); penpos7(hair,-180); penpos8(light_bulb,-180); x6=2u; y6r=-d-oo; y8-.5light_bulb=-.85d; x8r=hround .35u; fill stroke z3e---z5e...{left}z6e; bulb(6,7,8); % arc and bulb numeric inner_jut; pickup tiny.nib; prime_points_inside(1,2); prime_points_inside(4,3); if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif else: penpos6(bot_vair,-90); x6=2.5u; y6r=-d-oo; fill stroke z3e---z5e...{left}z6e; % arc pickup fine.nib; pos6'(bot_vair,-90); z6'=z6; pos7(2/3[bot_vair,flare],-85); lft x7l=hround u; bot y7r=vround-.96d-oo; y7l:=good.y y7l; filldraw stroke term.e(6',7,left,1,4); fi % arc and terminal currentpicture:=currentpicture rotatedaround ((.5w,.5h),180); penlabels(0,1,2,3,4,5,6,7,8,9); endchar; cmchar "Curly-tail Z"; beginchar(oct"116",9u#,x_height#,desc_depth#); italcorr x_height#*slant-.5serif_fit#-.3u#; adjust_fit(0,.5serif_fit#); numeric arm_thickness[],z_stem; arm_thickness1=vair; arm_thickness2=1.2vair; z_stem=.9[vair,stem]; pickup tiny.nib; rt x1r=rt x2r=hround(.89w-.8u); lft x3l=lft x4l=hround .5u; top y1=h; y2=min(y1,h-2/3arm_thickness1); bot y4=0; y3=max(y4,2/3arm_thickness2); numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l-slant*(y2-y3)); penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); pair delta; delta=penoffset z3-z2 of currentpen; fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r ---cycle; % diagonal pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); top y5r=h; x5=x1; lft x6r=hround .75u; y6=good.y(y5l-beak/1.4)-eps; arm(5,6,a,beak_darkness,-.4beak_jut); % upper arm and beak pos7(arm_thickness2,90); pos8(arm_thickness2,90); x7=x4; bot y8l=bot y7l=y8'=0; pos8'(hair,-45); x8'=.5[x7,x8]; pos11(hair,180); rt x11l=hround(w-.25u); y11=.5[y9r,y8r]; pos9(hair,-80); x9-.5u=x8=.7[x7,x11]; y9=.35h; pos10(hair,0); x10l=2u; bot y10=-.75d; filldraw stroke z7e--z8e{right}...{up}z11e...{(-5,-1)}z9e ...z8'e...{(-1,-2)}z10e; %..{down}z8'e{down}---z10e; penlabels(1,2,3,4,5,6,7,8,8',9,10,11); endchar; cmchar "Yogh"; beginchar(oct"117",8u#,x_height#,desc_depth#); italcorr x_height#*slant-.5serif_fit#-.3u#; adjust_fit(0,.5serif_fit#); numeric arm_thickness[],z_stem,stem[]; stem1=fudged.stem-4stem_corr; if hefty: arm_thickness1=stem1; arm_thickness2=stem1; z_stem=fudged.hair; else: arm_thickness1=stem1; arm_thickness2=stem1; z_stem=fudged.hair; fi if arm_thickness1