manac ham chơi

7 January, 2007

xterm default fonts (TrueType)

Filed under: linux-unix — manac @ 6:11 am

To use TrueType fonts in your xterm windows, you need to set XTerm*faceSize and XTerm*faceName attributes in your ~/.Xresource file. The XTerm*faceName attribute is used to specify the default font; XTerm*faceSize specifies the default font size.

Sample ~/.Xresources parameters for TrueType use:

XTerm*faceName: Bitstream Vera Serif Mono

XTerm*faceSize: 11

The fallback TrueType font for xterm use is Bitstream Vera Sans Mono. Font settings for a particular xterm window can be overridden using the -fs (size) and -fa (face) flags to xterm.

*NOTE*: do NOT use quotes around the font faceName; they will cause your font specification to fail and fall back to the fallback font.

Some available monospaced TrueType fonts available for use in xterm windows:

* Bitstream Vera Sans Mono

* Lucida Console

* QuickType II Mono

* Courant

* Courier New

* SimSun

–> http://www.cs.wisc.edu/twiki/bin/view/CSDocs/XWindowFAQs#xterm default fonts (_TrueType)

Blog at WordPress.com.