home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / TEXDISK / MF3.ZIP / EMTEX / MFINPUT / SROMAN.MF < prev    next >
Text File  |  1989-11-06  |  3KB  |  70 lines

  1. % This is the driver file sroman.mf based on roman.mf in the
  2. % Computer Modern Roman family of fonts (by D. E. Knuth, 1979--1985)
  3. % It differs from roman.mf only in that it has been
  4. % adjusted to call for sromanu.mf with a special uppercase I
  5. % for the SLITeX fonts: lcmss8, lcmssb8, and lcmssi8.
  6. % Written by Pierre A. MacKay, 16 Sept. 1986
  7.  
  8. if ligs>1: font_coding_scheme:="TeX text";
  9.  spanish_shriek=oct"074"; spanish_query=oct"076";
  10. else: font_coding_scheme:=if ligs=0: "TeX typewriter text"
  11.   else: "TeX text without f-ligatures" fi;
  12.  spanish_shriek=oct"016"; spanish_query=oct"017"; fi
  13.  
  14. mode_setup; font_setup;
  15.  
  16. input sromanu;  % upper case (majuscules)
  17. input romanl;  % lower case (minuscules)
  18. input greeku;  % upper case Greek letters
  19. input romand;  % numerals
  20. input romanp;  % ampersand, question marks, currency sign
  21. input romspl;  % lowercase specials (dotless \i, ligature \ae, etc.)
  22. input romspu;  % uppercase specials (\AE, \OE, \O)
  23. input punct;  % punctuation symbols common to roman and italic text
  24. input accent;  % accents common to roman and italic text
  25. if ligs>1: input romlig; fi  % letter ligatures
  26. if ligs>0: input comlig; fi  % ligatures common with italic text
  27. if ligs<=1: input romsub; fi  % substitutes for ligatures
  28.  
  29. ligtable "!": "`" =: spanish_shriek;
  30. ligtable "?": "`" =: spanish_query;
  31. font_slant slant; font_x_height x_height#;
  32. if monospace: font_normal_space 9u#; % no stretching or shrinking
  33.  font_quad 18u#;
  34.  font_extra_space 9u#;
  35. else: font_normal_space 6u#+2letter_fit#;
  36.  font_normal_stretch 3u#; font_normal_shrink 2u#;
  37.  font_quad 18u#+4letter_fit#;
  38.  font_extra_space 2u#;
  39.  k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning
  40.  ligtable "k": if serifs: "v": "a" kern -u#, fi\\"w": "e" kern k#,
  41.   "a" kern k#, "o" kern k#, "c" kern k#;
  42.  ligtable "P": "A" kern kk#,
  43.   "y": "o" kern k#, "e" kern k#, "a" kern k#, "." kern kk#, "," kern kk#;
  44.  ligtable "F": "V": "W": if serifs: "o" kern kk#, "e" kern kk#, "u" kern kk#,
  45.     "r" kern kk#, "a" kern kk#, "A" kern kkk#,
  46.    else: "o" kern k#, "e" kern k#, "u" kern k#,
  47.     "r" kern k#, "a" kern k#, "A" kern kk#, fi
  48.   "K": "X": "O" kern k#, "C" kern k#, "G" kern k#, "Q" kern k#;
  49.  ligtable "T": "y" kern if serifs: k# else: kk# fi,
  50.   "Y": "e" kern kk#, "o" kern kk#,
  51.    "r" kern kk#, "a" kern kk#, "A" kern kk#, "u" kern kk#;
  52.  ligtable "O": "D": "X" kern k#, "W" kern k#, "A" kern k#,
  53.    "V" kern k#, "Y" kern k#;
  54.  if serifs: ligtable "h": "m": "n":
  55.    "t" kern k#, "u" kern k#, "b" kern k#, "y" kern k#, "v" kern k#, "w" kern k#;
  56.   ligtable "c": "h" kern k#, "k" kern k#; fi
  57.  ligtable "o": "b": "p": "e" kern -k#, "o" kern -k#, "x" kern k#,
  58.    "d" kern -k#, "c" kern -k#, "q" kern -k#,
  59.   "a": if serifs: "v" kern k#, "j" kern u#, else: "r" kern k#, fi
  60.   "t": "y" kern k#,
  61.   "u": "w" kern k#;
  62.  ligtable "A": if serifs: "R": fi\\ "t" kern k#,
  63.   "C" kern k#, "O" kern k#, "G" kern k#, "U" kern k#, "Q" kern k#,
  64.   "L": "T" kern kk#, "Y" kern kk#, "V" kern kkk#, "W" kern kkk#;
  65.  ligtable "g": "j" kern -k#; % logjam
  66.  ligtable "I": "I" kern -k#; fi % Richard III
  67.  % there are ligature/kern programs for |"f"| in the {\tt romlig} file
  68.  % and for |"-"|, |"`"|, and |"'"| in the {\tt comlig} file
  69. bye.
  70.