Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!ncar!gatech!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: Help with X11R4 Fonts Message-ID: <9012101546.AA05110@Larry.McRCIM.McGill.EDU> Date: 10 Dec 90 15:46:20 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 65 > I just finished installing X11R4 on my Sun386i at home and have been > trying to get an xterm to use a different font. I have used the > "-fn" option with millions of different arguments as well as using > xfontsel. If I select a font such as Times, the spacing (of spaces) > are WAY off. xterm does not behave at all well with a non-fixed-width font. You really need a character-cell font to get proper behavior out of it, though any fixed-width font will mostly work. The spacing is indicated by the letter marked in the example below: v -adobe-times-bold-i-normal--10-100-75-75-p-57-iso8859-1 Here is what the XLFD has to say about this field. xterm, and most other terminal-emulator clients, assume a character-cell font, though most of them will work with varying degrees of success with monospaced or proprtional fonts. 3.1.2.11. SPACING : code-string SPACING is a code-string that indicates the escapement class of the font, i.e., monospace (fixed pitch), proportional (variable pitch), or charcell (a special monospaced font that conforms to the traditional data processing character cell font model). _________________________________________________________________ Code English Translation Description _________________________________________________________________ ``P'' Proportional A font whose logical character widths vary for each glyph. Note that no other restrictions are placed on the metrics of a proportional font. ``M'' Monospaced A font whose logical character widths are constant (i.e., all char widths of the font are equal to max_bounds.width). No other restrictions are placed on the metrics of a monospaced font. ``C'' CharCell A monospaced font which follows the standard typewriter character cell model (i.e., the glyphs of the font can be modeled by X clients as ``boxes'' of the same width and height which are imaged side by side to form text strings, or top to bottom to form text lines. By definition, all glyphs have the same logical character width, and no glyphs have ``ink'' outside of the character cell - there is no kerning (i.e., on a per-char basis with positive metrics: 0 <= left-bearing <= right-bearing <= width; with negative metrics: width <= left-bearing <= right-bearing <= 0) - and the vertical extents of the font do not exceed the vertical spacing (i.e., on a per char basis: ascent <= font-ascent and descent <= font-descent). The cell height = font-descent + font-ascent, and width = AVERAGE_WIDTH. _________________________________________________________________ der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu