[英]Issue with emacs font on remote server machine
使用命令登錄后嘗試在服務器計算機上打開emacs時
ssh -X username@server.com
我在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調用。
說明和解決方案(如果您無權訪問遠程字體安裝):
https://superuser.com/questions/247435/cant-export-emacs-display-on-ssh
但是我真的會使用@Tikhon_Jelvis的方式(請參閱上面的問題#1),它肯定更“模糊”,並且可能更輕巧,因為我猜沒有轉發X連接...
您可以嘗試在xorg.conf中更改字體路徑:
有問題的版本
“文件”部分
#defoma字體的路徑
FontPath“ / usr / share / X11 / fonts / misc”
FontPath“ / usr / share / X11 / fonts / cyrillic”
FontPath“ / usr / share / X11 / fonts / 100dpi /:unscaled”
FontPath“ / usr / share / X11 / fonts / 75dpi /:unscaled”
FontPath“ / usr / share / X11 / fonts / Type1”
FontPath“ / usr / share / X11 / fonts / CID”
FontPath“ / usr / share / X11 / fonts / 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/dirs/CID”
結束部分
版本沒有任何問題
“文件”部分
#defoma字體的路徑
FontPath“ / usr / share / fonts / X11 / misc”
FontPath“ / usr / share / fonts / X11 / cyrillic”
FontPath“ / usr / share / fonts / X11 / 100dpi /:unscaled”
FontPath“ / usr / share / fonts / X11 / 75dpi /:unscaled”
FontPath“ / usr / share / fonts / X11 / Type1”
FontPath“ / usr / share / fonts / X11 / CID”
FontPath“ / usr / share / fonts / X11 / 100dpi”
FontPath“ / usr / share / fonts / X11 / 75dpi”
FontPath“ /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType”
FontPath“ /var/lib/defoma/x-ttcidfont-conf.d/dirs/CID”
結束部分
告訴我它是否適合您。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.