wis*_*shi 14 command-line font-rendering
我想知道是否有办法让 urxvt 渲染 xft 字体:
URxvt.font: xft:Droid Sans Mono Slashed:pixelsize=9:Regular
URxvt.boldFont: xft:Droid Sans Mono Slashed:pixelsize=9:Bold
URxvt.talicFont: xft:Droid Sans Mono Slashed:pixelsize=9:Italic
URxvt.bolditalicFont: xft:Droid Sans Mono Slashed:pixelsize=9:Bold:Italic
Run Code Online (Sandbox Code Playgroud)
如果我尝试这个,我会得到类似的信息:

所以它的规模非常糟糕:
! Fonts
Xft.dpi: 132
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.autohint: true
Xft.hintstyle: hintfull
Run Code Online (Sandbox Code Playgroud)
我不确定这是否是原因之一。但是我想要抗锯齿和那个 Droid。这里有什么技巧吗?
jam*_*unt 13
如果 urxvt 找不到您指定的 xft 字体名称,它将使用默认字体。例如,以下内容将类似于您的屏幕截图:
urxvt -fn 'xft:foo'
Run Code Online (Sandbox Code Playgroud)
要找出可用的 xft 字体,请运行:
fc-list
Run Code Online (Sandbox Code Playgroud)
这是我使用漂亮的Ubuntu Monospace字体运行 urxvt 的方法:
urxvt -fn "xft:Ubuntu Mono:pixelsize=14,style=regular"
Run Code Online (Sandbox Code Playgroud)
小智 1
我只是使用命令行选项“-letsp -1”,另请参阅
http://www.saltycrane.com/blog/2009/11/how-make-urxvt-look-gnome-terminal/
小智 0
我的.XdefaultsDroid Sans Mono 里有这个,看起来很棒:
!-- Xft settings -- !
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
! -- Fonts -- !
URxvt.font:xft:droid sans mono slashed:medium:pixelsize=11
URxvt.boldFont:xft:droid sans mono slashed:medium:pixelsize=11
Run Code Online (Sandbox Code Playgroud)