home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / text / tex / 9441 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  3.1 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!nic.umass.edu!dime!dime.cs.umass.edu!moss
  2. From: moss@cs.umass.edu (Eliot Moss)
  3. Newsgroups: comp.text.tex
  4. Subject: Re: Fonts in EmTeX/LaTeX/TeX
  5. Message-ID: <MOSS.92Jul23100309@ibis.cs.umass.edu>
  6. Date: 23 Jul 92 14:03:09 GMT
  7. References: <1992Jul23.033639.13558@u.washington.edu>
  8. Sender: news@dime.cs.umass.edu
  9. Reply-To: moss@cs.umass.edu
  10. Organization: Dept of Comp and Info Sci, Univ of Mass (Amherst)
  11. Lines: 49
  12. In-reply-to: janhsu@hardy.u.washington.edu's message of 23 Jul 92 03:36:39 GMT
  13.  
  14. The respondent asks about all the different font files, what they are for, and
  15. what components use them. I'll give a sketch, glossing over (and possibly
  16. misrepresenting a bit) some details, to get you started easily.
  17.  
  18. TeX and LaTeX care only about .tfm files. For each font foo, there should be a
  19. foo.tfm file available via the appropriate search path. Such fonts can be
  20. scaled to different sizes, but sometimes different sizes of the same type face
  21. are actually redesigned to look better, and result in separate .tfm files. See
  22. something like lfonts.tex to get an idea of how fonts are set up (kind of
  23. hairy, but you get used to it after a while).
  24.  
  25. The .pk files are for dvi drivers, for previewing and printing. They are
  26. packed rasters. The .pxl files are essentially equivalent, but more bulky and
  27. an older form generally now avoided. The .fli font libraries are collections
  28. of .pk (and maybe .pxl?) files, packed together to save space on disk (most
  29. operating systems allocate in whole blocks, and lots of .pk files means lots
  30. of partial blocks wasted, which the .fli files avoid). They are kind of like
  31. archives or zip files, only specialized to TeX fonts.
  32.  
  33. If you get into PostScript hacking with dvips, then you will see .vf files,
  34. which describe how a TeX version of a PostScript font, e.g., ptmr, should be
  35. mapped into the raw PostScript font rptmr. For more information on this, and
  36. the config.ps file, the psfonts.map file, etc., read the documentation on
  37. dvips (which is a great program, by the way). there are related tools to build
  38. .tfm files from PostScript font metric files (.afm = Adobe font metric).
  39.  
  40. METAFONT is a tool for constructing .tfm and .pk or .pxl files from a more
  41. "geometric" description of a font. Given the description, a desired size, and
  42. the raster resolution (e.g., 300 dots per inch (dpi)), and related guidance,
  43. mf creates the stuff TeX needs. I don't use mf myself much, relying on
  44. pre-built stuff available on the net, but I believe .gf files are the
  45. "geometric" descriptions mentioned above.
  46.  
  47. Because fonts can be done at different resolutions, you may end up with more
  48. .pk files around than you'd first think. Note also that scaling can be (and
  49. often is) done by preparing the same font for a different raster size. For
  50. example, to get a 12 point font for a 300 dpi engine, you can generate for a
  51. 360 dpi engine and use the result on the 300 dpi engine. It will be bigger in
  52. the ratio 360/300 = 12/10.
  53.  
  54. Hope this helps ....
  55. --
  56.  
  57.         J. Eliot B. Moss, Associate Professor
  58.         Department of Computer Science
  59.         Lederle Graduate Research Center
  60.         University of Massachusetts
  61.         Amherst, MA  01003
  62.         (413) 545-4206, 545-1249 (fax); Moss@cs.umass.edu
  63.