home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sgi / 13253 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  3.2 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!math.fu-berlin.de!umn.edu!paperboy.micro.umn.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!olivea!sgigate!odin!news
  2. From: ib@ivan.esd.sgi.com (Ivan Bach)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: Font Manager
  5. Message-ID: <1992Sep3.184249.2962@odin.corp.sgi.com>
  6. Date: 3 Sep 92 18:42:49 GMT
  7. Sender: news@odin.corp.sgi.com (Net News)
  8. Organization: Silicon Graphics, Inc., Mountain View, CA
  9. Lines: 50
  10. Nntp-Posting-Host: ivan.esd.sgi.com
  11.  
  12. In <1992Sep3.164523.929@nas.nasa.gov> choi@wk59.nas.nasa.gov (Diana Choi)
  13. writes:
  14. > Is there a way to find out which pointsizes of a specific font are on hand?
  15. There are actually two font managers in the IRIX operating system.  The one
  16. in the X Window System is used by the X and Display PostScript programs.  The
  17. IRIS Font Manager is used for GL and mixed-model programs.
  18.  
  19. You can easily find out which point sizes of a specific font are available
  20. in the X Window System by entering a command such as:
  21.  
  22.     xlsfonts | grep pala
  23.  
  24. In 14-part X font names, the size of a font is specified in pixels and 
  25. decipoints (tenths of a point).  In the font name:
  26.  
  27.     -adobe-palatino-bold-r-normal--33-240-100-100-p-180-iso8859-1
  28.  
  29. 33 is the font size in pixels, while 240 is the font size in decipoints.  
  30. This is a 24-point font that was designed for the resolution of 100 dpi.  
  31. If the resolution of your video monitor is higher than 100 dpi, this font
  32. will be smaller than 24 points, and vice versa.  Only if the resolution of
  33. your video monitor is about 100 dpi (e.g., 96 dpi), this font will have
  34. approximately the size of 24 points. 
  35.  
  36. Alternatively, you can use the program xfontsel, or select the option 
  37. "Font..." in a pop-up menu that is displayed when you press the right mouse
  38. button in a winterm or xwsh window.   winterm is just a script that calls
  39. xwsh.  By default, the xwsh font browser displays only monospaced fonts,
  40. because those are the types of fonts people usually use in a shell window.  
  41. You can click on the button "Show proportional-width fonts" to get a list of 
  42. proportionally spaced fonts.  You can also click on the button "Show size in
  43. points."
  44.  
  45. The programming interface for the IRIS Font Manager is based on a page 
  46. description language called PostScript.   PostScript is a device-independent 
  47. page description language.  In that language, you are not supposed to know 
  48. or care about the resolution of a target device.  You may not even know on 
  49. which device the image described in PostScript will be rendered.  Once a 
  50. PostScript file is sent to a particular device, the PostScript interpreter 
  51. for that device tries to interpret the code in that file the best it can. 
  52. The advantage of this approach is that an image always has approximately the 
  53. same size, regardless of what is the resolution of a target device.  You can 
  54. send the same code to devices which have different resolutions.
  55.  
  56. The IRIS Font Manager in IRIX 4.0.5 and higher can use outline fonts.  An 
  57. outline font can be scaled to any desired point size, so there is really no 
  58. list of available point sizes.  The X11R5 version of the X Window System can 
  59. also use outline fonts.  It lists an outline font with the point size set to 0.
  60.  
  61. Ivan Bach, ib@sgi.com
  62.