2012-03-07 206 views
1

上emacs的字體當我試圖在服務器上打開的emacs中使用命令問題與遠程服務器機器

ssh -X [email protected] 

登錄後我得到的一切轉化爲方框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 

我承擔一些字體丟失,需要手動安裝或一些設置需要在遠程機器上被改變。我正在使用Ubuntu終端連接到遠程服務器和emacs調用。

+4

這不是真的回答你的問題,但你知道,你可以訪問遠程文件Emacs的?你可以只做'C-x C-f',然後輸入'/ username @ hostname:〜'來進入遠程主目錄。在那裏你可以打開和編輯文件,甚至使用你本地的Emacs實例打開shell(嘗試'C-u M-x shell')。你也可以從GTK版本的Emacs這樣做,這比從終端做起來更漂亮。 – 2012-03-07 22:15:02

回答

0

你可以嘗試改變xorg.conf中的字體路徑:

有問題的版本

節 「文件」
#路徑defoma字體
的FontPath「在/ usr /共享/ X11 /字體/ MISC 「
的FontPath 」在/ usr /共享/ X11 /字體/西里爾「
的FontPath 」在/ usr /共享/ X11 /字體/ 100DPI /:未縮放「
的FontPath」 在/ usr /共享/ X11 /字體/ 75dpi /:未縮放「
的FontPath 「的/ usr /共享/ X11 /字體/類型1」
的FontPath 「的/ usr /共享/ X11 /字體/ CID」
的FontPath 「的/ usr /共享/ X11 /字體/ 100dpi的」
的FontPath「/ usr/share/X11/fonts/75dpi「
FontPath」/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType「
FontPath」/ var/lib/defoma/x-ttcidfont-conf。 d /目錄/ CID」
EndSection

版本沒有任何問題

節 「文件」
#路徑defoma字體
的FontPath 「在/ usr /共享/字體/ X11/MISC」
的FontPath 「在/ usr /共享/字體/ X11 /西里爾」
的FontPath「在/ usr /股/字體/ X11/100dpi的/:未縮放 「
的FontPath 」的/ usr /共享/字體/ X11/75dpi /:未縮放「
的FontPath 」的/ usr /共享/字體/ X11 /類型1「
的FontPath」 的/ usr/「/ usr/share/fonts/X11/75dpi」
字體路徑 「/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType」
的FontPath 「/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID」
EndSection

告訴我,如果它適合你。

+0

我沒有足夠的權限在遠程機器上進行此更改,也沒有在xorg.conf中看到任何有問題的文件。 – keeda 2012-03-07 22:24:29