LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 869|回复: 9

xterm显示中英文字体间隔太宽的问题

[复制链接]
发表于 2011-10-20 14:11:14 | 显示全部楼层 |阅读模式
启动xterm后,中英文字体都是显示双倍宽,如下:
这   是   一    个    示    例!  H e l l o  !
请问怎么设置才显示正常。xterm275的版本。
 楼主| 发表于 2011-11-17 16:49:07 | 显示全部楼层
难道各位都没有用LFS系统上的XTERM吗?没有遇到这种情况?有图为证,希望会解决的朋友帮个忙,这样实在不好看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-11-17 16:51:57 | 显示全部楼层
刚才没把图发上,现在发上图,请各位看看

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2011-11-17 19:39:34 | 显示全部楼层
分开设置faceName和faceNameDoubleSize
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-11-18 12:43:18 | 显示全部楼层
Post by huntxu;2155312
分开设置faceName和faceNameDoubleSize


想请教一下如何设置faceName和faceNameDoubleSize,我的LFS系统完全按BLFS手册上的XORG安装,就是把XTERM版本换了,换成275,安装完XTERM275后,根据手册在XTerm后加上:
*VT100*locale: true
*VT100*faceName: Monospace
*VT100*faceSize: 10
*backarrowKeyIsErase: true
*ptyInitialErase: true
系统中文字体我只安装了文泉驿正黑,请问具体怎么写faceName和faceNameDoubleSize
回复 支持 反对

使用道具 举报

发表于 2011-11-19 01:28:49 | 显示全部楼层
XTerm.vt100.faceNameDoublesize: WenQuanYi Micro Hei:antialias=True
XTerm.vt100.faceName: Monaco:antialias=True
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-11-19 10:06:40 | 显示全部楼层
不好意思,照你的改的,还是不行,你看一下这个XTerm文件,我把原来的*VT100*faceName: Monospace用注释了。系统运行fc-list显示如下:
Luxi Serif:style=Regular
LucidaBright:style=Italic
Utopia:style=Bold Italic
Serto Malankara:style=Regular
Luxi Serif:style=Bold
Serto Mardin:style=Regular
LucidaTypewriter:style=Sans Bold
Fixed:style=Bold
Estrangelo Edessa:style=Regular
Serto Kharput:style=Regular
Times:style=Bold Italic
Clean:style=Regular
Luxi Mono:style=Bold
Utopia:style=Bold
Estrangelo Nisibin:style=Regular
ClearlyU PUA:style=Regular
Charter:style=Bold Italic
Bitstream Charter:style=Bold Italic
Luxi Sans:style=Bold
Serto Batnan:style=Bold
Estrangelo Midyat:style=Regular
Estrangelo Talada:style=Regular
Courier:style=Bold Italic
Luxi Sans:style=Regular
Courier:style=Regular
Charter:style=Bold
Cursor:style=Regular
Helvetica:style=Oblique
LucidaBright:style=Regular
Terminal:style=Bold
Estrangelo Quenneshrin:style=Regular
Serto Jerusalem:style=Regular
East Syriac Ctesiphon:style=Regular
Bitstream Charter:style=Regular
Fixed:style=Bold SemiCondensed
Serto Jerusalem Outline:style=Regular
Fixed:style=SemiCondensed
Times:style=Bold
Courier 10 Pitch:style=Bold Italic
Charter:style=Italic
Luxi Mono:style=Regular
Estrangelo Antioch:style=Regular
Courier:style=Oblique
Bitstream Charter:style=Italic
Newspaper:style=Regular
Serto Urhoy:style=Bold
Times:style=Italic
ClearlyU:style=Regular
Lucida:style=Sans Bold
micro.pcf:style=Regular
Fixed:style=Oblique SemiCondensed
Fixed:style=Oblique
LucidaTypewriter:style=Sans
New Century Schoolbook:style=Bold
ClearlyU Alternate Glyphs:style=Regular
Courier 10 Pitch:style=Italic
Utopia:style=Italic
Courier:style=Bold Oblique
Lucida:style=Sans Italic
Lucida:style=Sans
Serto Urhoy:style=Regular
Luxi Serif:style=Oblique
WenQuanYi Zen Hei,文泉驛正黑,文泉驿正黑:style=Regular
Luxi Serif:style=Bold Oblique
Serto Batnan:style=Regular
decsess.pcf:style=Regular
Helvetica:style=Bold
Times:style=Regular
New Century Schoolbook:style=Bold Italic
Luxi Mono:style=Oblique
Courier 10 Pitch:style=Regular
Lucida:style=Sans Bold Italic
Helvetica:style=Regular
Luxi Sans:style=Oblique
Serto Mardin:style=Bold
Estrangelo TurAbdin:style=Regular
Courier:style=Italic
deccurs.pcf:style=Regular
cursor.pcf:style=Regular
Charter:style=Regular
Courier 10 Pitch:style=Bold
Serto Jerusalem:style=Italic
Terminal:style=Regular
Serto Jerusalem:style=Bold
Fixed:style=ko
Fixed:style=ja
Fixed:style=Regular
Helvetica:style=Bold Oblique
New Century Schoolbook:style=Italic
Luxi Sans:style=Bold Oblique
WenQuanYi Zen Hei Mono,文泉驛等寬正黑,文泉驿等宽正黑:style=Regular
Luxi Mono:style=Bold Oblique
Courier:style=Bold
Utopia:style=Regular
Goha\-Tibeb Zemen:style=Regular
Estrangelo Nisibin Outline:style=Regular
East Syriac Adiabene:style=Regular
Bitstream Charter:style=Bold
WenQuanYi Zen Hei Sharp,文泉驛點陣正黑,文泉驿点阵正黑:style=Regular
New Century Schoolbook:style=Regular


XTerm:
*saveLines: 1024

*SimpleMenu*BackingStore: NotUseful
*SimpleMenu*menuLabel.font: -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*
*SimpleMenu*menuLabel.vertSpace:        100
*SimpleMenu*HorizontalMargins: 16
*SimpleMenu*Sme.height: 16

*SimpleMenu*Cursor: left_ptr

*mainMenu.Label:  Main Options
*mainMenu*toolbar*Label:  Toolbar
*mainMenu*fullscreen*Label: Full Screen
*mainMenu*securekbd*Label:  Secure Keyboard
*mainMenu*allowsends*Label:  Allow SendEvents
*mainMenu*redraw*Label:  Redraw Window
*mainMenu*logging*Label:  Log to File
*mainMenu*print-immediate*Label:  Print-All Immediately
*mainMenu*print-on-error*Label:  Print-All on Error
*mainMenu*print*Label:  Print Window
*mainMenu*print-redir*Label:  Redirect to Printer
*mainMenu*8-bit control*Label: 8-Bit Controls
*mainMenu*backarrow key*Label: Backarrow Key (BS/DEL)
*mainMenu*num-lock*Label: Alt/NumLock Modifiers
*mainMenu*alt-esc*Label: Alt Sends Escape
*mainMenu*meta-esc*Label: Meta Sends Escape
*mainMenu*delete-is-del*Label: Delete is DEL
*mainMenu*oldFunctionKeys*Label: Old Function-Keys
*mainMenu*sunFunctionKeys*Label: Sun Function-Keys
*mainMenu*sunKeyboard*Label: VT220 Keyboard
*mainMenu*hpFunctionKeys*Label: HP Function-Keys
*mainMenu*scoFunctionKeys*Label: SCO Function-Keys
*mainMenu*tcapFunctionKeys*Label: Termcap Function-Keys
*mainMenu*suspend*Label:  Send STOP Signal
*mainMenu*continue*Label:  Send CONT Signal
*mainMenu*interrupt*Label:  Send INT Signal
*mainMenu*hangup*Label:  Send HUP Signal
*mainMenu*terminate*Label:  Send TERM Signal
*mainMenu*kill*Label:  Send KILL Signal
*mainMenu*quit*Label:  Quit

*vtMenu.Label:  VT Options
*vtMenu*scrollbar*Label:  Enable Scrollbar
*vtMenu*jumpscroll*Label:  Enable Jump Scroll
*vtMenu*reversevideo*Label:  Enable Reverse Video
*vtMenu*autowrap*Label:  Enable Auto Wraparound
*vtMenu*reversewrap*Label:  Enable Reverse Wraparound
*vtMenu*autolinefeed*Label:  Enable Auto Linefeed
*vtMenu*appcursor*Label:  Enable Application Cursor Keys
*vtMenu*appkeypad*Label:  Enable Application Keypad
*vtMenu*scrollkey*Label:  Scroll to Bottom on Key Press
*vtMenu*scrollttyoutput*Label:  Scroll to Bottom on Tty Output
*vtMenu*allow132*Label: Allow 80/132 Column Switching
*vtMenu*keepSelection*Label: Keep Selection
*vtMenu*selectToClipboard*Label: Select to Clipboard
*vtMenu*cursesemul*Label:  Enable Curses Emulation
*vtMenu*visualbell*Label:  Enable Visual Bell
*vtMenu*bellIsUrgent*Label:  Enable Bell Urgency
*vtMenu*poponbell*Label:  Enable Pop on Bell
*vtMenu*cursorblink*Label: Enable Blinking Cursor
*vtMenu*titeInhibit*Label:  Enable Alternate Screen Switching
*vtMenu*activeicon*Label: Enable Active Icon
*vtMenu*softreset*Label:  Do Soft Reset
*vtMenu*hardreset*Label:  Do Full Reset
*vtMenu*clearsavedlines*Label:  Reset and Clear Saved Lines
*vtMenu*tekshow*Label:  Show Tek Window
*vtMenu*tekmode*Label:  Switch to Tek Mode
*vtMenu*vthide*Label:  Hide VT Window
*vtMenu*altscreen*Label:  Show Alternate Screen

*fontMenu.Label:  VT Fonts
*fontMenu*fontdefault*Label:    Default
*fontMenu*font1*Label:  Unreadable
*VT100.font1:           nil2
*IconFont:              nil2
*fontMenu*font2*Label:  Tiny
*VT100.font2:           5x7
*fontMenu*font3*Label:  Small
*VT100.font3:           6x10
*fontMenu*font4*Label:  Medium
*VT100.font4:           7x13
*fontMenu*font5*Label:  Large
*VT100.font5:           9x15
*fontMenu*font6*Label:  Huge
*VT100.font6:           10x20
*fontMenu*fontescape*Label:     Escape Sequence
*fontMenu*fontsel*Label:        Selection
*fontMenu*allow-bold-fonts*Label:  Bold Fonts
*fontMenu*font-linedrawing*Label:  Line-Drawing Characters
*fontMenu*font-doublesize*Label: Doublesized Characters
*fontMenu*font-loadable*Label:  VT220 Soft Fonts
*fontMenu*font-packed*Label:    Packed Font
*fontMenu*render-font*Label:    TrueType Fonts
*fontMenu*utf8-mode*Label:      UTF-8 Encoding
*fontMenu*utf8-fonts*Label:     UTF-8 Fonts
*fontMenu*utf8-title*Label:     UTF-8 Titles

*fontMenu*allow-color-ops*Label:        Allow Color Ops
*fontMenu*allow-font-ops*Label: Allow Font Ops
*fontMenu*allow-tcap-ops*Label: Allow Termcap Ops
*fontMenu*allow-title-ops*Label:        Allow Title Ops
*fontMenu*allow-window-ops*Label:       Allow Window Ops

*VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
*VT100.utf8Fonts.font:  -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
*VT100.utf8Fonts.font3: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
*VT100.utf8Fonts.font4: -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1
*VT100.utf8Fonts.font5: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
*VT100.utf8Fonts.font6: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1

*tekMenu.Label:  Tek Options
*tekMenu*tektextlarge*Label:  Large Characters
*tekMenu*tektext2*Label:  #2 Size Characters
*tekMenu*tektext3*Label:  #3 Size Characters
*tekMenu*tektextsmall*Label:  Small Characters
*tekMenu*tekpage*Label:  PAGE
*tekMenu*tekreset*Label:  RESET
*tekMenu*tekcopy*Label:  COPY
*tekMenu*vtshow*Label:  Show VT Window
*tekMenu*vtmode*Label:  Switch to VT Mode
*tekMenu*tekhide*Label:  Hide Tek Window

*tek4014*fontLarge: 9x15
*tek4014*font2: 8x13
*tek4014*font3: 6x13
*tek4014*fontSmall: 6x10


*form.Thickness: 0
*menubar.borderWidth: 0


*MenuButton*borderWidth: 0
*SimpleMenu*borderWidth: 2



*VT100*locale: true
!*VT100*faceName: Monospace
*VT100*faceSize: 10
*backarrowKeyIsErase: true
*ptyInitialErase: true

XTerm.vt100.faceNameDoublesize: WenQuanYi Micro Hei:antialias=True
XTerm.vt100.faceName: Luxi:antialias=True
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-11-19 10:09:51 | 显示全部楼层
XTerm.vt100.faceName: Monaco:antialias=True,这句我看到系统好像没有Monaco字体,改为Luxi,我也试过用Monaco,也是一样结果,还是双倍字宽.
回复 支持 反对

使用道具 举报

发表于 2011-11-21 21:16:45 | 显示全部楼层
增加.Xresources文件:

root [ ~ ]# cat .Xresources | grep -v ^!

XTerm*background: black
XTerm*foreground: white
XTerm*cursorColor: yellow
XTerm*Title: XTerm
XTerm*scrollBar: true
XTerm*saveLines: 10000

XTerm*faceName: Luxi Mono :size=12
XTerm*faceNameDoublesize: wqy-zenhei :size=12.5
XTerm*color0: rgb:0/0/0
XTerm*color1: rgb:cc/00/00
XTerm*color2: rgb:00/cc/00
XTerm*color3: #bd5e01
XTerm*color4: rgb:00/00/cc
XTerm*color5: rgb:cc/00/cc
XTerm*color6: rgb:00/cc/cc
XTerm*color7: rgb:aa/aa/aa
XTerm*color8: rgb:33/33/33
XTerm*color9: rgb:ff/00/00
XTerm*color10: rgb:00/ff/00
XTerm*color11: rgb:ff/ff/00
XTerm*color12: rgb:00/00/ff
XTerm*color13: rgb:ff/00/ff
XTerm*color14: rgb:00/ff/ff
XTerm*color15: rgb:ff/ff/ff



之后执行xrdb ~/.Xresources
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-11-22 10:33:20 | 显示全部楼层
太感谢Robinhox了,OK了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表