xterm 无法加载字体

xterm cannot load font

我正在使用 Arch 并尝试 运行 一些带有 wine 的 exe。这个我收到了

/usr/bin/xterm: cannot load font "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1"

并且我已尝试安装我发现的所有 xorg-fonts-*,但问题仍然存在

运行 在 Arch 上,find-xterm-fonts 告诉我:

# opening /usr/share/X11/app-defaults/XTerm
        *SimpleMenu*menuLabel.font: -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*
        *VT100.font1:           nil2
        *VT100.font2:           5x7
        *VT100.font3:           6x10
        *VT100.font4:           7x13
        *VT100.font5:           9x15
        *VT100.font6:           10x20
        *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
        *tek4014*font2: 8x13
        *tek4014*font3: 6x13
# opening /usr/share/X11/app-defaults/UXTerm
        *VT100.font2:   -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
        *VT100.font:    -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
        *VT100.font3:   -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
        *VT100.font4:   -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1
        *VT100.font5:   -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
        *VT100.font6:   -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1
# opening /usr/share/X11/app-defaults/KOI8RXTerm
        *VT100.font:    -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-koi8-r
        *VT100.font2:   -misc-fixed-medium-r-normal--8-80-75-75-c-50-koi8-r
        *VT100.font3:   -misc-fixed-medium-r-normal--14-130-75-75-c-70-koi8-r
        *VT100.font4:   -misc-fixed-medium-r-normal--13-120-75-75-c-80-koi8-r
        *VT100.font5:   -misc-fixed-medium-r-normal--18-120-100-100-c-90-koi8-r
        *VT100.font6:   -misc-fixed-medium-r-normal--20-200-75-75-c-100-koi8-r

Font-files used:
        /usr/share/fonts/75dpi/helvB12-ISO8859-1.pcf.gz
        -> XTerm*SimpleMenu*menuLabel.font
        /usr/share/fonts/misc/10x20-ISO8859-1.pcf.gz
        -> XTerm*VT100.font6
        /usr/share/fonts/misc/10x20-KOI8-R.pcf.gz
        -> KOI8RXTerm*VT100.font6
        /usr/share/fonts/misc/10x20.pcf.gz
        -> UXTerm*VT100.font6
        -> XTerm*VT100.utf8Fonts.font6
        /usr/share/fonts/misc/5x7-ISO8859-1.pcf.gz
        -> XTerm*VT100.font2
        /usr/share/fonts/misc/5x8-KOI8-R.pcf.gz
        -> KOI8RXTerm*VT100.font2
        /usr/share/fonts/misc/5x8.pcf.gz
        -> UXTerm*VT100.font2
        -> XTerm*VT100.utf8Fonts.font2
        /usr/share/fonts/misc/6x10-ISO8859-1.pcf.gz
        -> XTerm*VT100.font3
        /usr/share/fonts/misc/6x13-ISO8859-1.pcf.gz
        -> XTerm*tek4014*font3
        /usr/share/fonts/misc/6x13-KOI8-R.pcf.gz
        -> KOI8RXTerm*VT100.font
        /usr/share/fonts/misc/6x13.pcf.gz
        -> UXTerm*VT100.font
        -> XTerm*VT100.utf8Fonts.font
        /usr/share/fonts/misc/7x13-ISO8859-1.pcf.gz
        -> XTerm*VT100.font4
        /usr/share/fonts/misc/7x14-KOI8-R.pcf.gz
        -> KOI8RXTerm*VT100.font3
        /usr/share/fonts/misc/7x14.pcf.gz
        -> UXTerm*VT100.font3
        -> XTerm*VT100.utf8Fonts.font3
        /usr/share/fonts/misc/8x13-ISO8859-1.pcf.gz
        -> XTerm*tek4014*font2
        /usr/share/fonts/misc/8x13-KOI8-R.pcf.gz
        -> KOI8RXTerm*VT100.font4
        /usr/share/fonts/misc/8x13.pcf.gz
        -> UXTerm*VT100.font4
        -> XTerm*VT100.utf8Fonts.font4
        /usr/share/fonts/misc/9x15-ISO8859-1.pcf.gz
        -> XTerm*VT100.font5
        /usr/share/fonts/misc/9x18-KOI8-R.pcf.gz
        -> KOI8RXTerm*VT100.font5
        /usr/share/fonts/misc/9x18.pcf.gz
        -> UXTerm*VT100.font5
        -> XTerm*VT100.utf8Fonts.font5
        /usr/share/fonts/misc/nil2.pcf.gz
        -> XTerm*VT100.font1

No font-files missing

Packages providing font-files:

xorg-fonts-75dpi 1.0.3-4
        /usr/share/fonts/75dpi/helvB12-ISO8859-1.pcf.gz
xorg-fonts-misc 1.0.3-6
        /usr/share/fonts/misc/10x20-ISO8859-1.pcf.gz
        /usr/share/fonts/misc/10x20-KOI8-R.pcf.gz
        /usr/share/fonts/misc/10x20.pcf.gz
        /usr/share/fonts/misc/5x7-ISO8859-1.pcf.gz
        /usr/share/fonts/misc/5x8-KOI8-R.pcf.gz
        /usr/share/fonts/misc/5x8.pcf.gz
        /usr/share/fonts/misc/6x10-ISO8859-1.pcf.gz
        /usr/share/fonts/misc/6x13-ISO8859-1.pcf.gz
        /usr/share/fonts/misc/6x13-KOI8-R.pcf.gz
        /usr/share/fonts/misc/6x13.pcf.gz
        /usr/share/fonts/misc/7x13-ISO8859-1.pcf.gz
        /usr/share/fonts/misc/7x14-KOI8-R.pcf.gz
        /usr/share/fonts/misc/7x14.pcf.gz
        /usr/share/fonts/misc/8x13-ISO8859-1.pcf.gz
        /usr/share/fonts/misc/8x13-KOI8-R.pcf.gz
        /usr/share/fonts/misc/8x13.pcf.gz
        /usr/share/fonts/misc/9x15-ISO8859-1.pcf.gz
        /usr/share/fonts/misc/9x18-KOI8-R.pcf.gz
        /usr/share/fonts/misc/9x18.pcf.gz
        /usr/share/fonts/misc/nil2.pcf.gz

我想你错过了那个包裹:xorg-fonts-misc 1.0.3-6

也许为时已晚!

转到:

/usr/share/fonts/misc/

并在那里检查 ISOxxx 字体文件的名称。它可能是 ISO8859

然后编辑 XTerm 配置文件

/usr/share/X11/app-defaults/XTerm

将找到 iso10646 的行更改为您刚找到的号码。

例如,更改:

*VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1

收件人:

*VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-1

您可以找到 5 行进行更改,并得到如下内容:

*VT100.utf8Fonts.font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1

*VT100.utf8Fonts.font3: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1

*VT100.utf8Fonts.font4: -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-1

*VT100.utf8Fonts.font5: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-1

*VT100.utf8Fonts.font6: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-1