xterm字符间距太大了,怎样才能调过来?[已解决]

其它类软件,非上述版软件
回复
头像
lwaterl
帖子: 379
注册时间: 2007-08-24 17:46

xterm字符间距太大了,怎样才能调过来?[已解决]

#1

帖子 lwaterl »

archlinux , lxdm , fvwm ,
安装的字体:ttf-dejavt , wqy-zenhei
xterm的配置来自 roylez viewtopic.php?t=143221 ,就是把字体改了

代码: 全选

!look and feel
xterm.termName: xterm-256color
xterm.geometry: 80x36
xterm*scrollBar: false
xterm*rightScrollBar: true
xterm*loginshell: true
xterm*cursorBlink: true
xterm*background:  black
xterm*foreground:  gray
xterm.borderLess: true
xterm.cursorBlink: true
xterm*colorUL: yellow
xterm*colorBD: white
!fix alt key input 
xterm*eightBitInput: false
xterm*altSendsEscape: true!print color and bold/underline attributes
xterm*printAttributes: 2
xterm*printerCommand: cat > ~/xtermdump
!mouse selecting to copy, ctrl-v to paste
!Ctrl p to print screen content to file
XTerm*VT100.Translations: #override \
    Ctrl <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    Ctrl <KeyPress> P: print() \n
!font and locale
xterm*locale: true
xterm.utf8:     true
xterm*utf8Title: true
xterm*fontMenu*fontdefault*Label: Default
xterm*faceName: WenQuanYi Zen Hei:antialias=True:pixelsize=15                      《------------就这两处改了
!xterm*faceName: monofur:antialias=True:pixelsize=20                                                      把字体改成
!xter*boldFont: DejaVu Sans Mono:style=Bold:pixelsize=15                                                 wqy的了
xterm*faceNameDoublesize: WenQuanYi Zen Hei:pixelsize=16:antialias=True     《-------------
xterm*xftAntialias: true
xterm*cjkWidth:false 
!-- Tango color scheme
*xterm*color0: #2e3436
*xterm*color1: #cc0000
*xterm*color2: #4e9a06
*xterm*color3: #c4a000
*xterm*color4: #3465a4
*xterm*color5: #75507b
*xterm*color6: #0b939b
*xterm*color7: #d3d7cf
*xterm*color8: #555753
*xterm*color9: #ef2929
*xterm*color10: #8ae234
*xterm*color11: #fce94f
*xterm*color12: #729fcf
*xterm*color13: #ad7fa8
*xterm*color14: #00f5e9
*xterm*color15: #eeeeec

代码: 全选

用    xterm -fa "WenQuanYi Zen Hei":charwidth=12 -fs 12    也没用
====
如5楼leeaman所说
问题来自
xterm*faceName: WenQuanYi Zen Hei:antialias=True:pixelsize=15
这里设置成英文等宽字体就好了,比如

代码: 全选

xterm*faceName: DejaVu Sans Mono:antialias=True:pixelsize=15
附件
rectangle.png
上次由 lwaterl 在 2012-01-27 21:25,总共编辑 1 次。
mraandtux
论坛版主
帖子: 5211
注册时间: 2009-12-12 19:29
系统: Kubuntu

Re: xterm字符间距太大了,怎样才能调过来?

#2

帖子 mraandtux »

换其他字体吧
alanfly
帖子: 334
注册时间: 2007-12-19 16:15

Re: xterm字符间距太大了,怎样才能调过来?

#3

帖子 alanfly »

终端要用等宽字体吧;
换成WenQuanYi Zen Hei Mono。
头像
lwaterl
帖子: 379
注册时间: 2007-08-24 17:46

Re: xterm字符间距太大了,怎样才能调过来?

#4

帖子 lwaterl »

mraandtux 写了:换其他字体吧
我用dejavt把wqy换了后,木有效果,再换个其它的?我去装下
终端要用等宽字体吧;
换成WenQuanYi Zen Hei Mono。
这个也试了,也没有效果
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: xterm字符间距太大了,怎样才能调过来?

#5

帖子 leeaman »

xterm*faceName: WenQuanYi Zen Hei:antialias=True:pixelsize=15
这个指定英文的摸mono字体应该就好了
xterm*faceNameDoublesize:
这个才是中文字体的地方
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
lwaterl
帖子: 379
注册时间: 2007-08-24 17:46

Re: xterm字符间距太大了,怎样才能调过来?

#6

帖子 lwaterl »

leeaman 写了:
xterm*faceName: WenQuanYi Zen Hei:antialias=True:pixelsize=15
这个指定英文的摸mono字体应该就好了
xterm*faceNameDoublesize:
这个才是中文字体的地方
哈哈,按你所说的,成功了,谢谢 :em54

代码: 全选

xterm*faceName: DejaVu Sans Mono:antialias=True:pixelsize=15
头像
自由建客
帖子: 13468
注册时间: 2008-07-30 23:21
系统: Debian stable AMD64

Re: xterm字符间距太大了,怎样才能调过来?[已解决]

#7

帖子 自由建客 »

代码: 全选

XTerm.vt100.faceName:DejaVu Sans Mono:size=9
XTerm.vt100.faceNameDoublesize:WenQuanYi Zen Hei Mono:size=10
附件
1.png
头像
TeliuTe
论坛版主
帖子: 7675
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: xterm字符间距太大了,怎样才能调过来?[已解决]

#8

帖子 TeliuTe »

标记一下,xterm里汉字中间老是有囗囗
回复