% Please see the file LICENCE-wsuipa.txt for licensing information. % This is IROMANU.MF in text format, as of Apr 29, 1992. % 29. 4. 1992 (jk) added missing ºslantswitchº in inverted small cap r % % Computer Modern Roman upper case: % These letters were originally coded by D. E. Knuth in November, 1979, % inspired by the Monotype faces used in {\sl The Art of Computer Programming}. % Sans serif designs by Richard Southall were added in April, 1982. % The programs were revised for the new \MF\ conventions in 1985. def slantswitch = % macro from wncyr slant:=-slant; currenttransform:=identity slanted slant yscaled aspect_ratio scaled granularity; enddef; % Character codes \0101 through \0132 are generated. cmchar "The letter D"; beginchar(oct"24",13.5u#,cap_height#,0); italcorr .7cap_height#*slant-.5u#; adjust_fit(cap_serif_fit#,0); pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); lft x1l=lft x2l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0; filldraw stroke z1e--z2e; % stem penpos3(cap_band,90); penpos4(cap_band,90); penpos5(cap_curve-stem_corr,0); penpos6(cap_band,-90); penpos7(cap_band,-90); z3r=top z1; y4=y3; y5=.51[y4,y6]; y6=y7; z7r=bot z2; x4=x6=.5w+.25u; x5r=hround(w-u); x4l:=x6l:=x4-.25cap_curve; fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif math_fit(0,ic#-.5u#); penlabels(1,2,3,4,5,6,7); endchar; cmchar "The letter G"; if serifs: beginchar(oct"036",14u#,cap_height#,0); italcorr cap_height#*slant-1.5u#-.5cap_serif_fit#; adjust_fit(0,.5cap_serif_fit#); pickup tiny.nib; pos0(cap_stem,0); pos7(cap_stem,0); rt x0r=hround(w-2u); y0=good.y(.1[bar_height,x_height]+1); x7=x0; pickup fine.nib; if hefty: bot y7=0; pos5(cap_stem,0); x5=x0; top y5=tiny.top y0; else: pos5(cap_hair,0); pos8(cap_stem,0); y7=.5bar_height; z5l=z8l; z8=z7; x9=x8r; bot y9=0; filldraw z8l{down}..{4(x9-x8),y9-y8}z9--z8r--cycle; fi % spur pos1(cap_hair,0); pos2(cap_band,90); pos3(cap_curve,180); pos4(cap_band,270); rt x1r=hround(w-2u); lft x3r=hround u; x2=x4=.55[x3,x1]; top y2r=h+o; bot y4r=-o; y3=.5[y2,y4]; bot y1=min(vround max(.6h,x_height-.5vair),bot y2l-eps); (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u); (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u); filldraw stroke z1e{x2-x1,10(y2-y1)} ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...z5e{up}; % arc pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=h+o; x1r-x1'=2cap_curve-fine; y1'=y1; path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left}; numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1')); filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb pickup tiny.nib; filldraw stroke z0e--z7e; % stem dish_serif(0,7,a,1/3,max(cap_jut,2.25u),b,1/3,1.25u); % serif math_fit(-.3cap_height#*slant-.5u#,ic#); else: beginchar(oct"36",12u#,cap_height#,0); italcorr cap_height#*slant-.5u#; adjust_fit(0,0); pickup fine.nib; pos1(1.2flare,80); pos2(slab,90); pos3(cap_curve,180); pos4(slab,270); pos5(flare,270); rt x1r=hround(w-1.35u); x2=x4=.5w+u; lft x3r=hround max(u,2u-.5cap_curve); rt x5l=hround(w-1.2u); top y1r=vround .93h+o; top y2r=h+o; y3=.5h; bot y4r=-o; bot y5r=vround .07h-o; filldraw stroke rterm.e(2,1,right,.9,4)&super_arc.e(2,3) & super_arc.e(3,4) & term.e(4,5,right,1,4); % arc and terminals pos0(stem,0); pos7(stem,0); z7r=z5r; x0=x7; top y0=1+vround .35[bar_height,x_height]; filldraw stroke z0e--z7e; % stem pos8(cap_bar,90); pos9(cap_bar,90); z0r=z9r; y8=y9; lft x8=hround x4; filldraw stroke z8e--z9e; % bar math_fit(-.3cap_height#*slant-.5u#,.5ic#); fi penlabels(0,1,1',2,3,4,5,6,7,8,9); endchar; cmchar "The letter I"; beginchar(oct"52",max(6u#,4u#+cap_stem#),cap_height#,0); italcorr cap_height#*slant-.25u#; adjust_fit(cap_serif_fit#,cap_serif_fit#); pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0; filldraw stroke z1e--z2e; % stem if serifs: dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut); % upper serif dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut); fi % lower serif math_fit(0,.5ic#); penlabels(1,2); endchar; cmchar "The letter small cap N"; beginchar(oct"072",13u#+width_adj#,cap_height#,0); italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); adjust_fit(cap_serif_fit#,cap_serif_fit#); numeric thin_stem; thin_stem=hround(fudged.hair+stem_corr); pickup tiny.nib; pos1(thin_stem,0); pos2(thin_stem,0); pos3(thin_stem,0); pos4(thin_stem,0); pickup tiny.nib; top y1=top y3=h; bot y2=bot y4=0; x1=x2; x3=x4; x1l=w-x3r; rt x3r=hround min(w-2u,w-3u+.5fudged.cap_stem); filldraw stroke z1e--z2e; % left stem filldraw stroke z3e--z4e; % right stem if hefty: penpos5(fudged.cap_stem,0); penpos6(fudged.cap_stem,0); x5l=x1; x6r=x4; y5=h; y6=0; numeric upper_notch,lower_notch; upper_notch=h-cap_notch_cut; lower_notch=cap_notch_cut; x1'=rt x1r; z1'=whatever[z5l,z6l]; x4'=lft x4l; z4'=whatever[z5r,z6r]; fill z5l.. if y1'lower_notch: {left}(x4'-1,lower_notch){up}... fi {z5-z6}diag_in(6r,5r,1,5l)--cycle; % diagonal else: penpos5(whatever,0); penpos6(whatever,90); z5l=z1l; z6l=z4l; z7=z6l+(max(eps,cap_stem-3stem_corr-tiny),0) rotated (angle(z5l-z6l)-90); z5r=z7+whatever*(z5l-z6l); z6r=z7+whatever*(z5l-z6l); filldraw stroke z5e..z6e; fi % diagonal if serifs: if hefty: serif(1,2,a,1/3,-cap_jut); % upper left serif else: serif(5,6,a,1/3,-cap_jut); fi % upper left serif dish_serif(2,1,b,1/2,cap_jut,c,1/2,cap_jut)(dark); % lower left serif dish_serif(3,4,e,1/2,cap_jut,f,1/2,cap_jut)(dark); fi % upper right serif math_fit(0,max(.5ic#-.5u#,0)); penlabels(1,1',2,3,4,4',5,6,7); endchar; cmchar "The letter barred I"; beginchar(oct"53",max(6u#,4u#+cap_stem#),cap_height#,0); italcorr cap_height#*slant-.25u#; adjust_fit(cap_serif_fit#,cap_serif_fit#); pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0; filldraw stroke z1e--z2e; % stem if serifs: dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut); % upper serif dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut); fi % lower serif math_fit(0,.5ic#); % bar pickup rule.nib; x10 = hround .1u; x11 = hround(w-x10); y10=.5[y1,y2]=y11; draw z10--z11; penlabels(1,2,10,11); endchar; cmchar "The letter inverted small cap R"; beginchar(oct"113",if serifs: 12u#+.5max(2u#,cap_curve#) else:12.5u#-.5width_adj# fi,cap_height#,0); italcorr .75cap_height#*slant- if serifs: 1.75 else: .5 fi\\ u#; adjust_fit(cap_serif_fit#,0); slantswitch; pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); lft x1l=lft x2l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0; filldraw stroke z1e--z2e; % stem penpos3(cap_band,90); penpos4(cap_band,90); penpos5(cap_curve if hefty:-3stem_corr fi,0); penpos6(vair,-90); penpos7(vair,-90); z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7; x7=x2; y7l=vround(.5h+.5vair); x4=x6; if serifs: x4=.5w-.5u; x5r=hround(w-2.25u); else: x4=.5w+.5u; x5r=hround(w-u); fi x4l:=x6l:=x4-.125cap_curve; fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe if serifs: pos6'(vair,-90); pos0(cap_stem,180); pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0); z6'=z6; lft x0r=lft x8r=hround(x5-2/3u-.5cap_curve); y8=1/3[y2,y7]; y0=3/5[y2,y7]; x9=.5[x8l,x10r]; bot y9r=-o; rt x10r=hround(w-.05u); y10=1/4[y2,y7]; filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up}; % tail nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower serif else: penpos8(cap_stem-2stem_corr,0); penpos9(cap_stem,0); x8=x6+.5u; y8=y6; x9r=hround(w-.5u); y9=0; fill z8l--diag_end(8l,9l,.5,1,9r,8r)--z8r--cycle; fi % tail math_fit(0,.75ic#); picture rvchar; if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180)% reflectedabout((.5w,0),(.5w,h)); else: rvchar=currentpicture rotatedabout((.42w,.5h),180); rvchar:=rvchar reflectedabout((.5w,0),(.5w,h));fi slantswitch; currentpicture:= rvchar; penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; cmchar "The letter small cap R"; beginchar(oct"112",if serifs: 12u#+.5max(2u#,cap_curve#) else:12.5u#-.5width_adj# fi,cap_height#,0); italcorr .75cap_height#*slant- if serifs: 1.75 else: .5 fi\\ u#; adjust_fit(cap_serif_fit#,0); pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); lft x1l=lft x2l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0; filldraw stroke z1e--z2e; % stem penpos3(cap_band,90); penpos4(cap_band,90); penpos5(cap_curve if hefty:-3stem_corr fi,0); penpos6(vair,-90); penpos7(vair,-90); z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7; x7=x2; y7l=vround(.5h+.5vair); x4=x6; if serifs: x4=.5w-.5u; x5r=hround(w-2.25u); else: x4=.5w+.5u; x5r=hround(w-u); fi x4l:=x6l:=x4-.125cap_curve; fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe if serifs: pos6'(vair,-90); pos0(cap_stem,180); pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0); z6'=z6; lft x0r=lft x8r=hround(x5-2/3u-.5cap_curve); y8=1/3[y2,y7]; y0=3/5[y2,y7]; x9=.5[x8l,x10r]; bot y9r=-o; rt x10r=hround(w-.05u); y10=1/4[y2,y7]; filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up}; % tail nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower serif else: penpos8(cap_stem-2stem_corr,0); penpos9(cap_stem,0); x8=x6+.5u; y8=y6; x9r=hround(w-.5u); y9=0; fill z8l--diag_end(8l,9l,.5,1,9r,8r)--z8r--cycle; fi % tail math_fit(0,.75ic#); penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; cmchar "The letter U"; beginchar(oct"127",13u#+.5width_adj#,cap_height#,0); italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); if monospace: adjust_fit(cap_serif_fit#-.5u#,cap_serif_fit#-.5u#) else: adjust_fit(cap_serif_fit#,cap_serif_fit#) fi; pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); pos2'(cap_stem,180); z2'=z2; pos3(cap_band,-90); pos4(cap_hair,0); pos5(cap_hair,0); x1=x2; x3=.5[x1,x5]; x4=x5; x1l=w-x5r; top y1=top y5=h; y2=y4=1/3h; bot y3r=-o; lft x1l=hround max(2u,3u-.5cap_stem); filldraw stroke z1e--z2e; % left stem filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4)&z4e--z5e; % arc and right stem if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % left serif dish_serif(5,4,c,1/2,cap_jut,d,1/2,cap_jut)(dark); fi % right serif math_fit(-cap_serif_fit#-.3cap_height#*slant-min(cap_height#*slant,u#), max(.5ic#-.5u#,0)); penlabels(1,2,3,4,5); endchar; cmchar "The letter barred U"; beginchar(oct"130",13u#+.5width_adj#,cap_height#,0); italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); if monospace: adjust_fit(cap_serif_fit#-.5u#,cap_serif_fit#-.5u#) else: adjust_fit(cap_serif_fit#,cap_serif_fit#) fi; pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); pos2'(cap_stem,180); z2'=z2; pos3(cap_band,-90); pos4(cap_hair,0); pos5(cap_hair,0); x1=x2; x3=.5[x1,x5]; x4=x5; x1l=w-x5r; top y1=top y5=h; y2=y4=1/3h; bot y3r=-o; lft x1l=hround max(2u,3u-.5cap_stem); filldraw stroke z1e--z2e; % left stem filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4)&z4e--z5e; % arc and right stem if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % left serif dish_serif(5,4,c,1/2,cap_jut,d,1/2,cap_jut)(dark); fi % right serif math_fit(-cap_serif_fit#-.3cap_height#*slant-min(cap_height#*slant,u#), max(.5ic#-.5u#,0)); % bar pickup rule.nib; x10 = hround.1u; x11 = hround(w-x10); y10=.5[y1,y3]=y11; draw z10--z11; penlabels(1,2,3,4,5,10,11); endchar; cmchar "The letter Y"; beginchar(oct"135",13u#,cap_height#,0); italcorr cap_height#*slant+.45u#; adjust_fit(cap_serif_fit#,cap_serif_fit#); numeric left_stem,right_stem,outer_jut,dy,alpha; left_stem=cap_stem-stem_corr; right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem); outer_jut=.75cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.05u; x2l=x5l=hround(.5w-.5left_stem); x3r=x5r; y1=y4=h; y2=y3=y5=.4h; dy=y1-y2; alpha=((x2l-x1l)++dy)/dy; penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); penpos5(left_stem,0); penpos6(left_stem,0); x5=x6; y6=0; z0=whatever[z1r,z2r]=whatever[z3l,z4l]; if y0>y2+cap_notch_cut: y0:=y2+cap_notch_cut; fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)--z5r --diag_end(5r,6r,1,1,6l,5l)--z5l--diag_end(2l,1l,1,1,1r,2r){z2-z1} ...{down}z0+.5left--cycle; % diagonals and stem else: fill z0--diag_end(0,4l,1,1,4r,3r)--z5r --diag_end(5r,6r,1,1,6l,5l)--z5l --diag_end(2l,1l,1,1,1r,0)--cycle; fi % diagonals and stem if serifs: numeric inner_jut; pickup tiny.nib; prime_points_inside(1,2); prime_points_inside(4,3); prime_points_inside(6,5); if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_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); % upper left serif dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % upper right serif dish_serif(6',5,e,1/3,cap_jut,f,1/3,cap_jut); fi % lower serif math_fit(.5u#-cap_height#*slant,ic#-4u#); penlabels(0,1,2,3,4,5,6); endchar; cmchar "Upsilon (Inverted Greek Omega)"; beginchar(oct"126",13u#,cap_height#,0); italcorr .75cap_height#*slant-.5u#; adjust_fit(0,0); pickup tiny.nib; pos1(vair,90); pos2(cap_curve,180); pos3(vair,180); pos4(cap_curve,0); pos5(vair,0); x1=.5w; top y1r=h+o; lft x2r=hround u; y2=y4=2/3h; x4=w-x2; rt x3l=hround(1/3(w+.5u)+.5hair); bot y3=bot y5=0; x5=w-x3; filldraw stroke z3e{up}...{up}z2e & pulled_super_arc.e(2,1)(.5superpull) & pulled_super_arc.e(1,4)(.5superpull) & z4e{down}...{down}z5e; % bowl numeric arm_thickness; path p; p=z3{up}...{up}z2; arm_thickness=Vround(if hefty:slab+2stem_corr else:.75[slab,cap_vstem] fi); pickup crisp.nib; pos6(arm_thickness,-90); pos7(fudged.hair,-180); bot y6r=0; x6=x3; lft x7r=hround .8u; y7=good.y(y6l+.5beak)+eps; (x,y)=p intersectionpoint((0,y6l)--(w,y6l)); x6l:=x; arm(6,7,a,.5beak_darkness,-1.2beak_jut); % left arm and beak pos8(arm_thickness,-90); pos9(fudged.hair,0); y8=y6; y9=y7; x8+x6=x9+x7=w; x8l:=w-x6l; arm(8,9,b,.5beak_darkness,1.2beak_jut); % right arm and beak math_fit(0,.5ic#); 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); endchar; endinput;