Created
December 10, 2012 23:51
-
-
Save hsaito/4254461 to your computer and use it in GitHub Desktop.
Some font settings for Emacs to fix those square characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Font Settings | |
(when (>= emacs-major-version 23) | |
(setq fixed-width-use-QuickDraw-for-ascii t) | |
(setq mac-allow-anti-aliasing t) | |
(set-face-attribute 'default nil | |
:family "monaco" | |
:height 140) | |
(set-fontset-font | |
(frame-parameter nil 'font) | |
'japanese-jisx0208 | |
'("Hiragino Maru Gothic Pro" . "iso10646-1")) | |
(set-fontset-font | |
(frame-parameter nil 'font) | |
'japanese-jisx0212 | |
'("Hiragino Maru Gothic Pro" . "iso10646-1")) | |
;;; Unicode フォント | |
(set-fontset-font | |
(frame-parameter nil 'font) | |
'mule-unicode-0100-24ff | |
'("monaco" . "iso10646-1")) | |
;;; キリル,ギリシア文字設定 | |
;;; 注意: この設定だけでは古代ギリシア文字、コプト文字は表示できない | |
;;; http://socrates.berkeley.edu/~pinax/greekkeys/NAUdownload.html が必要 | |
;;; キリル文字 | |
(set-fontset-font | |
(frame-parameter nil 'font) | |
'cyrillic-iso8859-5 | |
'("monaco" . "iso10646-1")) | |
;;; ギリシア文字 | |
(set-fontset-font | |
(frame-parameter nil 'font) | |
'greek-iso8859-7 | |
'("monaco" . "iso10646-1")) | |
(setq face-font-rescale-alist | |
'(("^-apple-hiragino.*" . 1.2) | |
(".*osaka-bold.*" . 1.2) | |
(".*osaka-medium.*" . 1.2) | |
(".*courier-bold-.*-mac-roman" . 1.0) | |
(".*monaco cy-bold-.*-mac-cyrillic" . 0.9) | |
(".*monaco-bold-.*-mac-roman" . 0.9) | |
("-cdac$" . 1.3)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment