home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / c / cmsrc392.zip / TEXSET.MF < prev    next >
Text File  |  1992-03-30  |  2KB  |  56 lines

  1. % Special version of Computer Modern for \TeX's extended ASCII character set
  2.  
  3. font_coding_scheme:="TeX extended ASCII";
  4.  
  5. mode_setup; font_setup; mono_charic#:=0;
  6.  
  7. input tsetsl;  % special symbols to be slanted
  8. slant:=0;  % the remaining characters will not be slanted
  9. currenttransform:=identity yscaled aspect_ratio scaled granularity;
  10.  
  11. input romanu;  % upper case (majuscules)
  12. input romanl;  % lower case (minuscules)
  13. input romand;  % numerals
  14. input romanp;  % ampersand, question marks, currency sign
  15. input punct;  % punctuation symbols common to roman and italic text
  16. input tset;  % remaining special symbols of extended ASCII
  17.  
  18. font_x_height x_height#;
  19. if monospace: font_normal_space 9u#; % no stretching or shrinking
  20.  font_quad 18u#;
  21.  font_extra_space 9u#;
  22. else: font_normal_space 6u#+2letter_fit#;
  23.  font_normal_stretch 3u#; font_normal_shrink 2u#;
  24.  font_quad 18u#+4letter_fit#;
  25.  font_extra_space 2u#;
  26.  k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning
  27.  ligtable "k": if serifs: "v": "a" kern -u#, fi\\"w": "e" kern k#,
  28.   "a" kern k#, "o" kern k#, "c" kern k#;
  29.  ligtable "P": "A" kern kk#,
  30.   "y": "o" kern k#, "e" kern k#, "a" kern k#, "." kern kk#, "," kern kk#;
  31.  ligtable "F": "V": "W": if serifs: "o" kern kk#, "e" kern kk#, "u" kern kk#,
  32.     "r" kern kk#, "a" kern kk#, "A" kern kkk#,
  33.    else: "o" kern k#, "e" kern k#, "u" kern k#,
  34.     "r" kern k#, "a" kern k#, "A" kern kk#, fi
  35.   "K": "X": "O" kern k#, "C" kern k#, "G" kern k#, "Q" kern k#;
  36.  ligtable "T": "y" kern if serifs: k# else: kk# fi,
  37.   "Y": "e" kern kk#, "o" kern kk#,
  38.    "r" kern kk#, "a" kern kk#, "A" kern kk#, "u" kern kk#;
  39.  ligtable "O": "D": "X" kern k#, "W" kern k#, "A" kern k#,
  40.    "V" kern k#, "Y" kern k#;
  41.  if serifs: ligtable "h": "m": "n":
  42.    "t" kern k#, "u" kern k#, "b" kern k#, "y" kern k#, "v" kern k#, "w" kern k#;
  43.   ligtable "c": "h" kern k#, "k" kern k#; fi
  44.  ligtable "o": "b": "p": "e" kern -k#, "o" kern -k#, "x" kern k#,
  45.    "d" kern -k#, "c" kern -k#, "q" kern -k#,
  46.   "a": if serifs: "v" kern k#, "j" kern u#, else: "r" kern k#, fi
  47.   "t": "y" kern k#,
  48.   "u": "w" kern k#;
  49.  ligtable "A": if serifs: "R": fi\\ "t" kern k#,
  50.   "C" kern k#, "O" kern k#, "G" kern k#, "U" kern k#, "Q" kern k#,
  51.   "L": "T" kern kk#, "Y" kern kk#, "V" kern kkk#, "W" kern kkk#;
  52.  ligtable "g": "j" kern -k#; % logjam
  53.  ligtable "I": "I" kern -k#; % Richard III
  54. fi;
  55. bye.
  56.