home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume12 / postscript / part01 / doc / adding-fonts
Encoding:
Text File  |  1987-10-27  |  1.8 KB  |  37 lines

  1. Fonts may be added to this postscript system by placing a piece of
  2. PostScript source in the directory $POSTSCRIPTLIB/font.  This is where
  3. postscript looks when findfont is called. File names in this directory
  4. may be mapped from font names by placing entries of the form:
  5.     FontMap /postscript-name /base-file-name. put
  6. in the font-map file in $POSTSCRIPTLIB.
  7.  
  8. If postscript-name is not found there, an identity mapping is assumed.
  9.  
  10. The existing fonts are similarly structured, so most of the work is
  11. done by executing a common proforma file in that directory. This sets
  12. up the appropriate font information.  A version of BuildChar is
  13. installed which will read in the bulk of the font infromation when it
  14. is first executed. It will then replace itself with the normal
  15. BuildChar.
  16.  
  17. NOTE the metrics are currently loaded with the rest of the font
  18. information on demand, so programs which attempt to read metric
  19. infromation before using a font will fail. This is a bug, but can be
  20. fixed in PostScript.
  21.  
  22. There is a parallel cache directory, $POSTSCRIPTLIB/cache. This
  23. contains a directory corresponding to each file in $POSTSCRIPT/font,
  24. into which cached versions of fonts may be placed. The operator
  25. savecurrentfont may be called after imaging some characters from a
  26. font, whereupon a diskcache will be made of the characters imaged so
  27. far. Caches loaded may be subsequently modified and saved, thus built
  28. incrementally.  There should be an operator to save all modified caches
  29. into the disk cache. This could be built into PostScript, but might
  30. cause problems.  There is a program called buildcache in the demos
  31. directory which will build a cache of the standard fonts in a variety
  32. of useful sizes.
  33.  
  34. PostScript searches the disk cache automatically, and will not call BuildChar if it find a cache.
  35. This version of the cache stores metrics for the font.
  36.  
  37.