메뉴 건너뛰기

infra

[.emacs] 윈도우에서 한글 폰트 설정

박영식2011.12.15 20:39조회 수 3032댓글 2

    • 글자 크기

(when window-system
   (set-face-font 'default "-outline-나눔고딕코딩-normal-normal-normal-mono-14-*-*-*-c-*-iso10646-1")
   (set-fontset-font "fontset-default" '(#x1100 . #xffdc)  '("나눔고딕코딩" . "unicode-bmp")) ;; 유니코드 한글영역
  ;(set-fontset-font "fontset-default" 'kana '("ms mincho" . "unicode-bmp"))
    (set-fontset-font "fontset-default" 'han '("ms mincho" . "unicode-bmp"))
   ;(set-fontset-font "fontset-default" 'cjk-misc '("ms mincho" . "unicode-bmp"))
   (set-fontset-font "fontset-default" '(#xe0bc . #xf66e)  '("new gulim" . "unicode-bmp")) ;; 유니코드 사용자 영역
 )

 (defadvice switch-to-buffer (after activate-input-method activate)
  (activate-input-method "korean-hangul"))
박영식 (비회원)
    • 글자 크기

댓글 달기

댓글 2
  • 이거 안먹는디유...

    error: Font not available, #<font-spec nil outline ³ª´®°íµñÄÚµù mono iso10646-1 normal normal normal 14 nil 110 nil ((:name . -outline-³ª´®°íµñÄÚµù-normal-normal-normal-mono-14-*-*-*-c-*-iso10646-1) (user-spec . -outline-³ª´®°íµñÄÚµù-normal-normal-normal-mono-14-*-*-*-c-*-iso10646-1))>

    To ensure normal operation, you should investigate and remove the
    cause of the error in your initialization file.  Start Emacs with
    the `--debug-init' option to view a complete error backtrace.

  • 나눔고딕코딩을...
    NanumGothicCoding으로 바꾸니 잘 되네용 감사!!! :)
첨부 (0)
위로