由于我使用的xubuntu中自带两个模拟终端:xterm与uxterm,这个两个终端默认使用时字体偏小,并且
不支持中文。解决方法是,编辑当前用户的配置文件 vim ~/.Xdefaults,增加如下内容:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
! TrueType font
UXTerm*faceName: DejaVu Sans Mono
XTerm*faceName: DejaVu Sans Mono
! Chinese
UXTerm*faceNameDoublesize: Noto Sans CJK SC
XTerm*faceNameDoublesize: Noto Sans CJK SC
! font size
UXTerm*faceSize: 10
XTerm*faceSize: 10
! color
UXTerm*background: black
UXTerm*foreground: lightgreen
XTerm*background: black
XTerm*foreground: lightgreen

UXTerm*geometry: 120x35+500+250
UXTerm*metaSendsEscape: true
UXTerm*eightBitInput: false
UXTerm*selectToClipboard: true
UXTerm*locale: zh_CN.UTF-8
Uxterm*utf8: true
Uxterm*utf8Title: true

XTerm*geometry: 120x35+500+250
XTerm*metaSendsEscape: true
XTerm*eightBitInput: false
XTerm*selectToClipboard: true
XTerm*locale: zh_CN.UTF-8
xterm*utf8: true
xterm*utf8Title: true

然后保存退出,执行 xrdb .Xdefaults,这样字体就都修改好了!

注意:有些GNU/Linux发行版桌面环境是读取 .Xresources文件,所以当注销后,.Xdefaults不起作用时可以

mv ~/.Xdefault ~/.Xresources 修改配置文件名称后注销再登录。