Re: [問題] emacs字型
※ 引述《sophia77122 (fen)》之銘言:
: 我們必須造在ubuntu 裡面的 Emacs22(x11)打C++程式
: 老師要我們打註解
: 可是我輸入中文 都顯示方框框出來
: 有看網路人家說修改字型就好
: 可是我是新手 不知道怎麼修改
: 麻煩高手指教一下 謝謝囉!
選單上 :Options->set default font
建議使用 emacs 23 ,對中文字型比較能好
或是在 .emacs.el 裏面寫上你的字型設定
以下是我的字型設定:
;;;; 建立新的 fontset
(create-fontset-from-fontset-spec
"-*-liberation mono-medium-r-*--14-*-*-*-*-*-fontset-coldnew")
;;;; 設定其他編碼的字型
(set-fontset-font "fontset-coldnew" ; 中文字體
'han (font-spec :family "LiHei Pro" :size 16))
(set-fontset-font "fontset-coldnew" ; 符號
'symbol (font-spec :family "Monaco" :size 20 ))
;;; 使用自己建立的 fontset
(set-frame-font "fontset-coldnew")
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 120.126.41.45
討論串 (同標題文章)