% Computer Modern Roman upper case with dotted diacriticals for Turkish etc. % 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. % Dotted diacriticals added by P. A. MacKay, January, 1987. % Upper case letters with accents above are all given the height % value |body_height|, with the result that the accents kern up % into the white space or leading from the previous line. It is % the responsibility of the formatter to set TeX's baselineskip % so that there is adequate room for such accents. The cup on % upper case G is probably the most extreme case in serifed roman % or italic fonts; the hat on O is the most extreme in sans-serif % fonts % Character codes \000 through \012 are generated. if unknown accsub: input accsub fi cmchar "The letter DAD"; dot_sharp_values; beginchar(oct "000",13.5u#,cap_height#,desc_depth#); 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#); numeric dot_shift, dot_top; define_whole_blacker_pixels(dot_top); dot_shift=-dot_top-desc_depth; x8=2/3[x3,x4]; dot_accent(8,g,dot_shift); penlabels(1,2,3,4,5,6,7); endchar; cmchar "The letter GHAYN"; dot_sharp_values; if serifs: beginchar(oct "001",14u#,body_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=cap_height+o; bot y4r=-o; y3=.5[y2,y4]; bot y1=min(vround max(.6cap_height,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=cap_height+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 "001",12u#,body_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 .93cap_height+o; top y2r=cap_height+o; y3=.5cap_height; bot y4r=-o; bot y5r=vround .07cap_height-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 numeric dot_shift, dot_top; define_whole_blacker_pixels(dot_top); dot_shift=.85[cap_height+o,body_height]-dot_top; dot_accent(2l,g,dot_shift); penlabels(0,1,1',2,3,4,5,6,7,8,9); endchar; cmchar "The letter HHA"; dot_sharp_values; beginchar(oct "002",13u#+width_adj#,cap_height#,desc_depth#); define_whole_blacker_pixels(dot_diam); italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); adjust_fit(cap_serif_fit#,cap_serif_fit#); pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_stem,0); pos4(cap_stem,0); lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); x3=x4=w-x1; top y1=top y3=h; bot y2=bot y4=0; filldraw stroke z1e--z2e; % left stem filldraw stroke z3e--z4e; % right stem penpos5(cap_bar,90); penpos6(cap_bar,90); x5=x1; x6=x3; y5=y6=.52h; fill stroke z5e--z6e; % bar if serifs: numeric inner_jut; if rt x1r+cap_jut+.5u+1<=lft x3l-cap_jut: inner_jut=cap_jut; else: rt x1r+inner_jut+.5u+1=lft x3l-inner_jut; fi dish_serif(1,2,a,1/3,cap_jut,b,1/3,inner_jut); % upper left serif dish_serif(2,1,c,1/3,cap_jut,d,1/3,inner_jut); % lower left serif dish_serif(3,4,e,1/3,inner_jut,f,1/3,cap_jut); % upper left serif dish_serif(4,3,g,1/3,inner_jut,h,1/3,cap_jut); fi % lower left serif math_fit(0,.5ic#); numeric dot_shift, dot_top; define_whole_blacker_pixels(dot_top); dot_shift=-dot_top-desc_depth; x7=1/2[x2,x4]; dot_accent(7,k,dot_shift); penlabels(1,2,3,4,5,6); endchar; cmchar "The letter dotted I"; dot_sharp_values; beginchar(oct "003",max(6u#,4u#+cap_stem#),body_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=cap_height; 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#); numeric dot_shift, dot_top; define_whole_blacker_pixels(dot_top); dot_shift=.85[cap_height+o,body_height]-dot_top; dot_accent(2,g,dot_shift); penlabels(1,2); endchar; cmchar "The letter QAF"; dot_sharp_values; beginchar(oct "004",13.5u#,cap_height#,desc_depth#); italcorr cap_height#*slant-.5u#; adjust_fit(cap_serif_fit#,cap_serif_fit#); numeric right_jut,stem[],alpha[]; if serifs: right_jut=.6cap_jut; else: right_jut=.4tiny; fi pickup tiny.nib; pos1(fudged.cap_stem,0); pos2(fudged.cap_stem,0); lft x1l=lft x2l=hround max(2u,3u-.5fudged.cap_stem); top y1=h; bot y2=0; filldraw stroke z1e--z2e; % stem stem2=max(tiny.breadth,fudged.cap_stem-3stem_corr); stem1=max(tiny.breadth,fudged.hair if hefty:-3stem_corr fi); top y3=h; rt x3r=hround(r-letter_fit-u-right_jut); bot y6=0; rt x6r=hround(r-letter_fit-.75u-right_jut); x4=x1; y4=1/3h; alpha1=diag_ratio(1,.5(stem1-tiny),y3-y4,x3r-x4); penpos3(alpha1*(stem1-tiny),0); penpos4(whatever,-90); alpha2=diag_ratio(1,.5(stem2-tiny),y1-y6,x6r-x1); penpos6(alpha2*(stem2-tiny),0); forsuffixes $=l,r: y3'$=h; y6'$=0; z4$=z3'$+whatever*(z3-z4); z5$=z6'$+whatever*(z1-z6)=whatever[z3,z4]; endfor z5=.5[z5l,z5r]; z3'r=z3r+penoffset z3-z4 of currentpen+whatever*(z3-z4); % we have also |z3'l=z3l+penoffset z4-z3 of currentpen+whatever*(z3-z4)|;\] z6'r=z6r+penoffset z1-z6 of currentpen+whatever*(z1-z6); z6'l=z6l+penoffset z6-z1 of currentpen+whatever*(z1-z6); fill z4r--diag_end(4r,3'r,1,.5,3'l,4l)--z4l--cycle; % upper diagonal fill z5l--diag_end(5l,6'l,.5,1,6'r,5r)--z5r--cycle; % lower diagonal if serifs: numeric inner_jut; if rt x2r+cap_jut+.5u+1<=lft x6l-cap_jut: inner_jut=cap_jut; else: rt x2r+cap_jut+.5u+1=lft x6l-inner_jut; fi dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % upper stem serif dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower stem serif dish_serif(3,4,e,2/3,1.2cap_jut,f,1/2,right_jut)(dark); % upper diagonal serif dish_serif(6,5,g,1/2,inner_jut,h,1/3,right_jut)(dark);fi % lower diagonal serif math_fit(0,.5ic#); numeric dot_shift, dot_top; define_whole_blacker_pixels(dot_top); dot_shift=-dot_top-desc_depth; x7=1/2[x2,x6]; dot_accent(7,q,dot_shift); penlabels(1,2,3,4,5,6); endchar; cmchar "The letter dotted O"; dot_sharp_values; beginchar(oct "005",14u#-width_adj#,body_height#,0); italcorr .7cap_height#*slant-.5u#; adjust_fit(0,0); penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90); penpos2(cap_curve,180); penpos4(cap_curve,0); if monospace: x2r=hround 1.5u; interim superness:=sqrt superness; % make |"O"|, not |"0"| else: x2r=hround u; fi x4r=w-x2r; x1=x3=.5w; y1r=cap_height+o; y3r=-o; y2=y4=.5cap_height-vair_corr; y2l:=y4l:=.52cap_height; penstroke pulled_super_arc.e(1,2)(.5superpull) & pulled_super_arc.e(2,3)(.5superpull) & pulled_super_arc.e(3,4)(.5superpull) & pulled_super_arc.e(4,1)(.5superpull) & cycle; % bowl math_fit(-.3cap_height#*slant-.5u#,ic#-.5u#); numeric clearance, dot_shift, dot_top; define_whole_blacker_pixels(dot_top); clearance=hround((w-dot_size-cap_curve)/2); x5=w-x6=min(clearance,5.25u); dot_shift=.85[cap_height+o,body_height]-dot_top; dot_accent(5,a,dot_shift); dot_accent(6,b,dot_shift); penlabels(1,2,3,4); endchar; cmchar "The letter SAD"; dot_sharp_values; beginchar(oct "006",10u#,cap_height#,desc_depth#); italcorr cap_height#*slant-u#; adjust_fit(0,0); numeric theta; theta=90-angle(50u,h); slope:=-h/50u; % angle at middle numeric s_slab; s_slab=if serifs:slab else:vround .2[slab,cap_stem] fi; numeric ess'; ess'=max(fine.breadth,cap_ess); pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-90); pos0(ess',theta); pos7(s_slab,-90); x2+x7=2x0=w; x7-x2=if serifs: u else: 0 fi; top y2l=h+o; bot y7r=-o; y0=.52h; lft x3l=hround u; rt x6r=hround(w-u); x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine; ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; filldraw stroke super_arc.e(2,3) & z3e{down} ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke if serifs: pos1(hair,180); pos8(hair,180); rt x1l=hround(w-1.5u); lft x8r=hround u; bot y1=vround 2/3h+1; top y8=vround 1/3h-1; filldraw stroke z1e{x2-x1,10(y2-y1)}....{left}z2e; % upper arc filldraw stroke z7e{left}....{up}z8e; % lower arc path upper_arc, lower_arc; upper_arc=z1{x2-x1,10(y2-y1)}....{left}z2; lower_arc=z7{left}....{up}z8; pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0); x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r; x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8; numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1')); filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle; % upper barb t:=xpart(lower_arc intersectiontimes(z9r--z8')); filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle; % lower barb else: pos1(1.2flare,-100); pos8(1.2flare,-100); x1l=good.x(x1l+w-1.75u-rt x1); lft x8r=hround .8u; top y1l=vround .93h+o; bot y8r=vround .1h-o; filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal math_fit(0,.5ic#); numeric dot_shift, dot_top; define_whole_blacker_pixels(dot_top); dot_shift=-dot_top-desc_depth; dot_accent(7,q,dot_shift); penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); endchar; cmchar "The letter TTA"; dot_sharp_values; beginchar(oct "007",13u#-width_adj#,cap_height#,desc_depth#); italcorr cap_height#*slant-beak_jut#-.25u#; adjust_fit(0,0); h:=vround(h-2stem_corr); 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 pickup crisp.nib; pos3(slab,90); pos4(hair,0); top y3r=h; x3=x1; rt x4r=hround(w-.65u); y4=good.y(y3l-beak)-eps; arm(3,4,e,beak_darkness,.7beak_jut); % right arm and beak pos5(hair,180); x5=w-x4; y5=y4; arm(3,5,f,beak_darkness,-.7beak_jut); % left arm and beak if serifs: dish_serif(2,1,c,1/3,1.414cap_jut,d,1/3,1.414cap_jut); % lower serif nodish_serif(1,2,a,1/3,.5cap_jut,b,1/3,.5cap_jut); fi % upper bracketing math_fit(-.75cap_height#*slant,ic#-2.5u#); numeric dot_shift, dot_top; define_whole_blacker_pixels(dot_top); dot_shift=-dot_top-desc_depth; dot_accent(2,g,dot_shift); penlabels(1,2,3,4,5,6); endchar; cmchar "The letter dotted U"; dot_sharp_values; beginchar(oct "010",13u#+.5width_adj#,body_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=cap_height; y2=y4=1/3cap_height; 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)); numeric dot_shift, dot_top; define_whole_blacker_pixels(dot_top); x6=4.75u; w-x7=if dish > 0: 3.75 else: 4.75 fi u; dot_shift=.85[cap_height+o,body_height]-dot_top; dot_accent(6,f,dot_shift); dot_accent(7,g,dot_shift); penlabels(1,2,3,4,5); endchar; cmchar "The letter ZAD"; dot_sharp_values; beginchar(oct "011",11u#,body_height#,0); italcorr cap_height#*slant-.5u#; adjust_fit(0,0); numeric arm_thickness[],z_stem; if hefty: arm_thickness1=Vround(slab-vair_corr); arm_thickness2=slab; z_stem=.8[vair,cap_stem]; else: arm_thickness1=slab; arm_thickness2=vround(slab+vair_corr); z_stem=.9[vair,cap_stem]; fi pickup tiny.nib; x3l=x4l=w-x1r=w-x2r; lft x3l=hround u; top y1=cap_height; y2=min(y1,cap_height-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); 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=cap_height; x5=x1; lft x6r=hround 1.25u; y6=good.y(y5l-beak)-eps; arm(5,6,a,beak_darkness**.8,-.4beak_jut); % upper arm and beak pos7(arm_thickness2,-90); pos8(hair,0); bot y7r=0; x7=x4; rt x8r=hround(w-.9u); y8=good.y(y7l+1.2beak)+eps; arm(7,8,b,beak_darkness**.9,.6beak_jut); % lower arm and beak math_fit(0,.5ic#); numeric dot_shift, dot_top; define_whole_blacker_pixels(dot_top); x9=5/9[x6,x5]; dot_shift=.85[cap_height+o,body_height]-dot_top; dot_accent(9,f,dot_shift); penlabels(1,2,3,4,5,6,7,8); endchar; cmchar "The letter ZZA"; dot_sharp_values; beginchar(oct "012",11u#,cap_height#,desc_depth#); italcorr cap_height#*slant-.5u#; adjust_fit(0,0); numeric arm_thickness[],z_stem; if hefty: arm_thickness1=Vround(slab-vair_corr); arm_thickness2=slab; z_stem=.8[vair,cap_stem]; else: arm_thickness1=slab; arm_thickness2=vround(slab+vair_corr); z_stem=.9[vair,cap_stem]; fi pickup tiny.nib; x3l=x4l=w-x1r=w-x2r; lft x3l=hround u; 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); 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 1.25u; y6=good.y(y5l-beak)-eps; arm(5,6,a,beak_darkness**.8,-.4beak_jut); % upper arm and beak pos7(arm_thickness2,-90); pos8(hair,0); bot y7r=0; x7=x4; rt x8r=hround(w-.9u); y8=good.y(y7l+1.2beak)+eps; arm(7,8,b,beak_darkness**.9,.6beak_jut); % lower arm and beak math_fit(0,.5ic#); numeric dot_shift, dot_top; define_whole_blacker_pixels(dot_top); dot_shift=-dot_top-desc_depth; x9=4/9[x3,x8]; dot_accent(9,c,dot_shift); penlabels(1,2,3,4,5,6,7,8); endchar;