Skip to content

Instantly share code, notes, and snippets.

@mochiz
Created July 13, 2011 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mochiz/1080444 to your computer and use it in GitHub Desktop.
Save mochiz/1080444 to your computer and use it in GitHub Desktop.
;; フォントセット作成
(create-fontset-from-mac-roman-font
"-apple-m+ 2m-medium-r-normal--14-*-*-*-*-*-iso10646-1" nil "mplus")
(set-fontset-font "fontset-mplus" 'japanese-jisx0208
'("m+ 2m light" . "iso10646"))
(set-fontset-font "fontset-mplus" (cons (make-char 'japanese-jisx0208 #x30 #x20)
(make-char 'japanese-jisx0208 #x74 #x7f))
'("ヒラギノ角ゴ pro w3" . "jisx0208.1983"))
(set-fontset-font "fontset-mplus" 'katakana-jisx0201
'("m+ 1m light" . "iso10646"))
(create-fontset-from-mac-roman-font
"-apple-m+ 2m-medium-r-normal--12-*-*-*-*-*-iso10646-1" nil "mplus")
(set-fontset-font "fontset-mplus" 'japanese-jisx0208
'("m+ 2m light" . "iso10646"))
(set-fontset-font "fontset-mplus" (cons (make-char 'japanese-jisx0208 #x30 #x20)
(make-char 'japanese-jisx0208 #x74 #x7f))
'("ヒラギノ角ゴ pro w3" . "jisx0208.1983"))
(set-fontset-font "fontset-mplus" 'katakana-jisx0201
'("m+ 1m light" . "iso10646"))
;; フォント設定
(add-to-list 'default-frame-alist '(font . "fontset-mplus"))
(setq fixed-width-rescale nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment