home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sgi / 13366 < prev    next >
Encoding:
Text File  |  1992-09-08  |  4.4 KB  |  91 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!sun-barr!ames!sgi!odin!news
  3. From: ib@ivan.esd.sgi.com (Ivan Bach)
  4. Subject: Re: Font Manager (long)
  5. Message-ID: <1992Sep7.204815.26508@odin.corp.sgi.com>
  6. Followup-To: <1992Sep7.142540.11890@aio.jsc.nasa.gov> 
  7. Sender: news@odin.corp.sgi.com (Net News)
  8. Nntp-Posting-Host: ivan.esd.sgi.com
  9. Organization: Silicon Graphics, Inc., Mountain View, CA
  10. References: <1992Sep3.184249.2962@odin.corp.sgi.com>
  11. Date: Mon, 7 Sep 1992 20:48:15 GMT
  12. Lines: 77
  13.  
  14. In article <1992Sep7.142540.11890@aio.jsc.nasa.gov>, taylorf@sweetpea.jsc.nasa.g
  15. ov (Frank S. Taylor IV 283-4278) writes:
  16. >> The IRIS Font Manager in IRIX 4.0.5 and higher can use outline fonts ...
  17. > Are there more extensive notes on these changes than those found in the
  18. > release notes?
  19. I prepared a paper called "Font Technologies" for the 2nd SGI Developer's
  20. Forum.  In that paper I said that last year outline fonts were used only by
  21. Display PostScript (DPS), and that the use of outline font files will probably
  22. soon spread to the IRIS Font Manager, X Window System, and application
  23. programs.  That paper also contained detailed instructions on how to add 
  24. bitmap and outline fonts to an SGI system, how to find out which outline fonts 
  25. are built into a PS printer, how to download additional outline fonts to that
  26. printer, etc.  If you want to develop programs for SGI systems, you may want
  27. to join one of the SGI programs for developers.
  28.  
  29. > I'd like to know more about how to take advantage of these changes.
  30. When you install the subsystem eoe2.sw.Xfonts in IRIX 4.0.5 or higher, the
  31. Adobe outline font files:
  32.  
  33.     Utopia-Bold
  34.     Utopia-BoldItalic
  35.     Utopia-Italic
  36.     Utopia-Regular
  37.  
  38. are stored in the directory /usr/lib/DPS/outline/base, while the corresponding
  39. Adobe Font Metric (AFM) files are installed in the directory /usr/lib/DPS/AFM.
  40. Since that subsystem is usually installed by default, your program could treat
  41. these four outline fonts as default fonts which are almost always available.
  42.  
  43. When you install Display PostScript (DPS) in IRIX 4.0 or higher, 13 more Adobe
  44. outline font files are stored in the directory /usr/lib/DPS/outline/base,
  45. while the corresponding Adobe font metric (AFM) files are stored in the
  46. directory /usr/lib/DPS/AFM.  You can use the PS demo program Fontview to see
  47. which outline fonts are available, and what they look like.  The basic 13
  48. fonts which come with DPS are usually built into PS printers, so there is no
  49. need to download them.  Utopia fonts are usually not built into PS printers.
  50.  
  51. The IRIS FM in IRIX 4.0.5 and higher uses outline font files to produce a
  52. bitmap font when it cannot find a bitmap font for a requested point size
  53. within a certain tolerance.
  54.  
  55. If you use a text editor to look at an outline font file that SGI ships, you
  56. will see that it is a PostScript (PS) program.  Outline fonts are used by
  57. programs which know how to interpret PS code.  An application program that
  58. does not know how to interpret PS code, can check whether the DPS extension
  59. of the X server is available, and use DPS to interpret PS code (see the demo
  60. program dpsglx that you can get from the directory sgi/src/dpsglx on sgi.com
  61. by ftp).  That would allow your program to, for example, import Encapsulated
  62. PS files.
  63.  
  64. You don't need outline font files to generate PS code for a PS device.  Your
  65. program can use the information stored in AFM files to generate PS code.  You
  66. can get sample code for the parsing of AFM files by sending the message:
  67.  
  68.     Subject: send Programs parseAFM.shar
  69.  
  70. to ps-file-server@adobe.com.  You can get a description of the AFM 3.0 format
  71. by sending the message:
  72.  
  73.     Subject: send Documents AFMformat3.0.ps
  74.  
  75. to that server.
  76.  
  77. The SGI Inventor uses bitmap fonts for 2D text, and outline fonts for 3D text.
  78. You can use that 3D toolkit to take advantage of outline fonts.
  79.  
  80. > was it intended to make these changes transparent to the user?
  81. We knew that there would be some changes in fonts that could not be avoided,
  82. because the IRIS FM started using new algorithms to scale bitmap fonts, and
  83. to produce bitmap fonts from character outlines.  Every effort was made to
  84. minimize those changes.  It is very difficult to improve the processing of
  85. fonts in a font manager, without making some changes to the font information
  86. passed to the programs that use that font manager.  For example, your program
  87. may get a font which was previously not available.  You could get the same
  88. kind of effect by adding bitmap fonts.
  89.  
  90. Ivan Bach, ib@sgi.com
  91.