http://baohaojun.github.com/perfect-emacs-chinese-font.html
這個方法必需以 C-u C-x = 所得到的中文字型名稱做為參數,否則無效
(setq face-font-rescale-alist '(("文泉驛等寬微米黑" . 1.2)))
縮放後只有在某些特定大小的字型才能對齊,目前實驗結果是設置英文字為20點
http://www.gnu.org/software/emacs/manual/html_node/elisp/Font-Selection.html
用到的是face-font-rescale-alist,其說明如下︰
— Variable: face-font-rescale-alisthttp://zh.read2log.net/t/anago/mac/1328699139/
This variable specifies scaling for certain faces. Its value should be a list of elements of the form
(fontname-regexp . scale-factor)If fontname-regexp matches the font name that is about to be used, this says to choose a larger similar font according to the factor scale-factor. You would use this feature to normalize the font size if certain fonts are bigger or smaller than their nominal heights and widths would suggest.
這說的也是類似的做法,不過是用add-to-list,且字型名稱也可以放regular expression
http://www.chinese-groups.com/thread/188/Re-oeusb.html
這篇解釋得很清楚,文末提到的bug我似乎沒遇到…
http://stackoverflow.com/questions/1606957/emacs-with-smaller-font-size-text-doesnt-align?rq=1
column view也要維持比例的話,還要做一下這個動作
沒有留言:
張貼留言