home *** CD-ROM | disk | FTP | other *** search
- 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
- From: ib@ivan.esd.sgi.com (Ivan Bach)
- Newsgroups: comp.sys.sgi
- Subject: Re: Font Manager
- Message-ID: <1992Sep3.184249.2962@odin.corp.sgi.com>
- Date: 3 Sep 92 18:42:49 GMT
- Sender: news@odin.corp.sgi.com (Net News)
- Organization: Silicon Graphics, Inc., Mountain View, CA
- Lines: 50
- Nntp-Posting-Host: ivan.esd.sgi.com
-
- In <1992Sep3.164523.929@nas.nasa.gov> choi@wk59.nas.nasa.gov (Diana Choi)
- writes:
- > Is there a way to find out which pointsizes of a specific font are on hand?
- There are actually two font managers in the IRIX operating system. The one
- in the X Window System is used by the X and Display PostScript programs. The
- IRIS Font Manager is used for GL and mixed-model programs.
-
- You can easily find out which point sizes of a specific font are available
- in the X Window System by entering a command such as:
-
- xlsfonts | grep pala
-
- In 14-part X font names, the size of a font is specified in pixels and
- decipoints (tenths of a point). In the font name:
-
- -adobe-palatino-bold-r-normal--33-240-100-100-p-180-iso8859-1
-
- 33 is the font size in pixels, while 240 is the font size in decipoints.
- This is a 24-point font that was designed for the resolution of 100 dpi.
- If the resolution of your video monitor is higher than 100 dpi, this font
- will be smaller than 24 points, and vice versa. Only if the resolution of
- your video monitor is about 100 dpi (e.g., 96 dpi), this font will have
- approximately the size of 24 points.
-
- Alternatively, you can use the program xfontsel, or select the option
- "Font..." in a pop-up menu that is displayed when you press the right mouse
- button in a winterm or xwsh window. winterm is just a script that calls
- xwsh. By default, the xwsh font browser displays only monospaced fonts,
- because those are the types of fonts people usually use in a shell window.
- You can click on the button "Show proportional-width fonts" to get a list of
- proportionally spaced fonts. You can also click on the button "Show size in
- points."
-
- The programming interface for the IRIS Font Manager is based on a page
- description language called PostScript. PostScript is a device-independent
- page description language. In that language, you are not supposed to know
- or care about the resolution of a target device. You may not even know on
- which device the image described in PostScript will be rendered. Once a
- PostScript file is sent to a particular device, the PostScript interpreter
- for that device tries to interpret the code in that file the best it can.
- The advantage of this approach is that an image always has approximately the
- same size, regardless of what is the resolution of a target device. You can
- send the same code to devices which have different resolutions.
-
- The IRIS Font Manager in IRIX 4.0.5 and higher can use outline fonts. An
- outline font can be scaled to any desired point size, so there is really no
- list of available point sizes. The X11R5 version of the X Window System can
- also use outline fonts. It lists an outline font with the point size set to 0.
-
- Ivan Bach, ib@sgi.com
-