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

–> default fonts (_TrueType)



  1. Thank You!

    Comment by raghu — 19 September, 2008 @ 8:36 pm

  2. You probably have to run $ xrdb -merge ~/.Xresources after doing the changes.

    Comment by foo — 5 February, 2012 @ 2:28 pm

  3. great….it works….try storing settings in .Xdefaults it takes effect from next launch of xterm

    Comment by R8V4S12 — 4 October, 2012 @ 5:45 am

  4. Would the creator of this post mind if we distribute this
    post on our personal blog website or personal social media accounts like
    Twitter and facebook?

    Comment by — 18 July, 2013 @ 7:40 pm

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at

%d bloggers like this: