当前位置: 技术问答>linux和unix
emacs问题~
来源: 互联网 发布时间:2016-05-15
本文导语: 编译安装完emacs运行后,提示下面这两行错误 Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct 请问此...
编译安装完emacs运行后,提示下面这两行错误
Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct
请问此错误是没有字库导致的?还是配置文件没设对,要怎么设?
Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct
请问此错误是没有字库导致的?还是配置文件没设对,要怎么设?
|
添加如下内容:
设置你的 ~/.Xdefault
Emacs.Font:fontset-global
Emacs.Fontset-0: -*-bitstream-medium-r-normal-*-14-*-*-*-*-*-fontset-global,
chinese-gb2312:-*-simsun-medium-r-normal--14-*-*-*-*-*-gb*-*,
chinese-gbk:-*-simsun-medium-r-normal--14-*-*-*-*-*-gb*-*,
mule-unicode-0100-24ff:-*-medium-r-normal--14-*-*-*-*-*-iso10646*-*,
korean-ksc5601:-*-medium-r-normal-*-14-*-ksc5601*-*,
chinese-cns11643-5:-*-simsun-medium-r-normal--14-*-*-*-*-*-gb*-*,
chinese-cns11643-6:-*-simsun-medium-r-normal--14-*-*-*-*-*-gb*-*,
chinese-cns11643-7:-*-simsun-medium-r-normal--14-*-*-*-*-*-gb*-*,
sjis:-*-medium-r-normal--14-*-jisx0208*-*
然后:
xrdb -merge .Xdefaults
重新运行emacs
设置你的 ~/.Xdefault
Emacs.Font:fontset-global
Emacs.Fontset-0: -*-bitstream-medium-r-normal-*-14-*-*-*-*-*-fontset-global,
chinese-gb2312:-*-simsun-medium-r-normal--14-*-*-*-*-*-gb*-*,
chinese-gbk:-*-simsun-medium-r-normal--14-*-*-*-*-*-gb*-*,
mule-unicode-0100-24ff:-*-medium-r-normal--14-*-*-*-*-*-iso10646*-*,
korean-ksc5601:-*-medium-r-normal-*-14-*-ksc5601*-*,
chinese-cns11643-5:-*-simsun-medium-r-normal--14-*-*-*-*-*-gb*-*,
chinese-cns11643-6:-*-simsun-medium-r-normal--14-*-*-*-*-*-gb*-*,
chinese-cns11643-7:-*-simsun-medium-r-normal--14-*-*-*-*-*-gb*-*,
sjis:-*-medium-r-normal--14-*-jisx0208*-*
然后:
xrdb -merge .Xdefaults
重新运行emacs
|
应该是字体问题
把 courier,helvetica 改成 monospace 之类的试试看
把 courier,helvetica 改成 monospace 之类的试试看