% $Header: troman.mf,v 1.1 88/01/15 13:13:05 simpson Rel $ % $Log: troman.mf,v $ % Revision 1.1 88/01/15 13:13:05 simpson % initial release % % Revision 0.1 88/01/07 08:18:52 simpson % beta test % % The Computer Modern Roman family of fonts (by D. E. Knuth, 1979--1985) if ligs>1: font_coding_scheme:="Troff text"; else: font_coding_scheme:=if ligs=0: "TeX typewriter text" else: "TeX text without f-ligatures" fi; spanish_shriek=oct"016"; spanish_query=oct"017"; fi minus=oct"004"; vertical=oct"174"; mode_setup; font_setup; % We need to create space characters with no bitmap for \| and \^. I put % them in oct"000" and oct"177" since these characters are not normally % used by ditroff. % My own creation (...creation being a generous term), for \|, 1/6 em beginchar(oct"000", 16/6u#, 0, 0); endchar; % My own creation, for \^, 1/12 em beginchar(oct"177", 16/12u#, 0, 0); endchar; % From the font lasy10.mf, file lasy.mf cmchar "Box"; beginchar(oct"024",2.1math_axis#+4u#,v_center(7u#)); italcorr math_axis#*slant; adjust_fit(0,0); pickup rule.nib; numeric a; a=round(2.1math_axis); x1=x4=good.x 2u; x2=x3=x1+a; y3=y4=.5(cap_height-a); y1=y2=y3+a; draw z1--z2--z3--z4--cycle; labels(1,2,3,4); endchar; % Stolen from font cmsy10, file symbol.mf cmchar "Open bullet"; beginchar(oct"025",9u#,v_center(7u#)); adjust_fit(0,0); pickup rule.nib; autorounded; lft x6=hround u; x2=w-x6; top y8=h; y2=math_axis; circle_points; draw_circle; % circle labels(1,2,3,4,5,6,7,8); endchar; % Stolen from the font cmr10, file accent.mf cmchar "Umlaut (double dot) accent"; numeric dot_diam#,dot_diam; dot_diam#=max(dot_size#,cap_curve#); beginchar(oct"026",9u#,min(asc_height#,10/7x_height#+.5dot_diam#),0); dot_diam=max(tiny.breadth,hround(max(dot_size,cap_curve)-2stem_corr)); italcorr h#*slant+.5dot_diam#-2.25u#; adjust_fit(0,0); pickup tiny.nib; pos1(dot_diam,0); pos2(dot_diam,90); x1=x2=2.75u; top y2r=h+1; if bot y2l1: input tromlig; fi % letter ligatures if ligs>0: input tcomlig; fi % ligatures common with italic text if ligs<=1: input romsub; fi % substitutes for ligatures font_slant slant; font_x_height x_height#; if monospace: font_normal_space 9u#; % no stretching or shrinking font_quad 18u#; font_extra_space 9u#; else: font_normal_space 6u#+2letter_fit#; font_normal_stretch 3u#; font_normal_shrink 2u#; font_quad 18u#+4letter_fit#; font_extra_space 2u#; k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning ligtable "k": if serifs: "v": "a" kern -u#, fi\\"w": "e" kern k#, "a" kern k#, "o" kern k#, "c" kern k#; ligtable "P": "A" kern kk#, "y": "o" kern k#, "e" kern k#, "a" kern k#, "." kern kk#, "," kern kk#; ligtable "F": "V": "W": if serifs: "o" kern kk#, "e" kern kk#, "u" kern kk#, "r" kern kk#, "a" kern kk#, "A" kern kkk#, else: "o" kern k#, "e" kern k#, "u" kern k#, "r" kern k#, "a" kern k#, "A" kern kk#, fi "K": "X": "O" kern k#, "C" kern k#, "G" kern k#, "Q" kern k#; ligtable "T": "y" kern if serifs: k# else: kk# fi, "Y": "e" kern kk#, "o" kern kk#, "r" kern kk#, "a" kern kk#, "A" kern kk#, "u" kern kk#; ligtable "O": "D": "X" kern k#, "W" kern k#, "A" kern k#, "V" kern k#, "Y" kern k#; if serifs: ligtable "h": "m": "n": "t" kern k#, "u" kern k#, "b" kern k#, "y" kern k#, "v" kern k#, "w" kern k#; ligtable "c": "h" kern k#, "k" kern k#; fi ligtable "o": "b": "p": "e" kern -k#, "o" kern -k#, "x" kern k#, "d" kern -k#, "c" kern -k#, "q" kern -k#, "a": if serifs: "v" kern k#, "j" kern u#, else: "r" kern k#, fi "t": "y" kern k#, "u": "w" kern k#; ligtable "A": if serifs: "R": fi\\ "t" kern k#, "C" kern k#, "O" kern k#, "G" kern k#, "U" kern k#, "Q" kern k#, "L": "T" kern kk#, "Y" kern kk#, "V" kern kkk#, "W" kern kkk#; ligtable "g": "j" kern -k#; % logjam ligtable "I": "I" kern -k#; fi % Richard III % there are ligature/kern programs for |"f"| in the {\tt romlig} file % and for |"-"|, |"`"|, and |"'"| in the {\tt comlig} file bye.