個人urxvt配置文件以下spring
前綴可改成rxvt而後可使用rxvt命令啓動字體
~/.Xresourcesspa
! urxvt color set
URxvt.multichar_encoding:utf-8
URxvt.background:black
URxvt.foreground:green
URxvt.colorBD:yellow
URxvt.colorUL:green
URxvt.cursorColor:red3
URxvt.color0:black
URxvt.color1:red3
URxvt.color2:springgreen
URxvt.color3:wheat3
URxvt.color4:navy
URxvt.color5:magenta4
URxvt.color6:steelblue1
URxvt.color7:gray85
URxvt.color8:gray10
URxvt.color9:orangered2
URxvt.color10:chartreuse3
URxvt.color11:lightgoldenrod2
URxvt.color12:skyblue1
URxvt.color13:pink1
URxvt.color14:lightblue1
! scroll set
URxvt.scrollBar:True
URxvt.scrollBar_right:True
URxvt.scrollBar_floating:True
URxvt.scrollstyle:plain
URxvt.scrollWithBuffer:false
URxvt.saveLines:5000
! font set
URxvt.font:xft:Bitstream Vera Sans Mono-12,xft:Microsoft Yahei:pixelsize=16
URxvt.boldFont:xft:Bitstream Vera Sans Mono-12:Bold,xft:Microsoft Yahei:pixelsize=16:Bold
! Input Method set
URxvt.inputMethod:SCIM
!URxvt.imLocale:zh_CN.utf8
URxvt.imFont:Microsoft Yahei
URxvt.preeditType: Root
! window geometry set
URxvt.geometry: 90x25+180+200
URxvt.title:Rxvt
! bg transparent set
URxvt.inheritPixmap: true
URxvt.tintCddolor: white
URxvt.shading: 80
! Tab set
URxvt.perl-ext-common: default,tabbed
URxvt.tabbed.tab-fg: 12
URxvt.tabbed.tab-bg: 0
URxvt.tabbed.tabbar-fg: 4
Rxvt.menu:/etc/X11/rxvt.menu
Rxvt.preeditType:Root
Rxvt.transparency:255code
在gentoo中出現以下問題:
urxvt: unable to load base fontset, please specify a valid one using -fn, aborting. utf-8
x有兩套字體機制.xvt-unicode的編譯選項:
USE="perl -afterimage -iso14755 -truetype"
原來是沒有編譯truetype字體支持!Bitstream Vera Sans Mono字體是使用xft機制的!此機制就是使用truetype字體的基本!
從新編譯rxvt-unicode:
# USE="truetype" emerge rxvt-unicodeci
問題解決unicode
xrdb -merge $HOME/.Xresources input
使配置文件生效。it