2019年12月16日星期一

Changing Display font in XTerm and UXTerm

Edit .Xresources to set the desire True Type font for UXTerm and XTerm.
XTerm*renderFont: true
XTerm*faceName: DejaVu Sans Mono
XTerm*faceSize: 10

UXTerm*renderFont: true
UXTerm*faceName: DejaVu Sans Mono
UXTerm*faceSize: 10
Use xrdb to merge your setting into the X server resource database.
xrdb -merge ~/.Xresources
Use xrdb -q to query the resulting resource setting:
$ xrdb -q
*customization: -color
UXTerm*faceName:        DejaVu Sans Mono
UXTerm*faceSize:        10
UXTerm*renderFont:      true
XTerm*faceName: DejaVu Sans Mono
XTerm*faceSize: 10
XTerm*renderFont:       true
Xcursor.size:   18
Xcursor.theme:  DMZ-White
Xcursor.theme_core:     true
You can find the correct font name with the following command:
fc-list | cut -f2 -d: | sort -u

2 条评论:

  1. $cat .xinitrc
    /usr/local/bin/xrdb -merge ~/.Xresources
    exec /usr/local/bin/i3

    回复删除
  2. $ cat ~/.Xresources
    UXTerm*renderFont: true
    UXTerm*faceName: DejaVu Sans Mono
    UXTerm*faceSize: 12

    UXTerm*vt100.translations: #override \
    Shift Ctrl C: copy-selection(CLIPBOARD) \n\
    Shift Ctrl V: insert-selection(CLIPBOARD)

    回复删除