emacs字型 - Linux

By Rebecca
at 2010-10-18T19:27
at 2010-10-18T19:27
Table of Contents
※ 引述《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")
--
: 我們必須造在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")
--
Tags:
Linux
All Comments
Related Posts
fdisk 之 磁頭/柱面/磁區 的奧義

By Regina
at 2010-10-18T17:45
at 2010-10-18T17:45
emacs字型

By Ingrid
at 2010-10-18T15:18
at 2010-10-18T15:18
Linux防火牆的問題

By Skylar DavisLinda
at 2010-10-18T14:42
at 2010-10-18T14:42
Linux防火牆的問題

By Todd Johnson
at 2010-10-18T12:41
at 2010-10-18T12:41
Re: 文字檔輸出 vs.下載檔案

By Rachel
at 2010-10-18T11:12
at 2010-10-18T11:12