WINDOWS용 EMACS에서 한글,영문 글꼴 달리쓰기
글쓴이: bluecafe / 작성시간: 수, 2005/12/14 - 6:28오후
안녕하세요 EMACS 왕초보 입니다.
Emacs-22.0.50.1-Cvs051209-emacsw32-0.98.exe 파일을 설치한 후
cinsk 님의 etheme를 설치하는데 까지는 성공했습니다.
(cinsk님 감사합니다. :oops: )
영문폰트는 Bitstream Vera Sans Mon 를 사용하고, 한글 폰트는 돋움체나 굴림체 등을
사용하고 싶어서 나름대로 설정해 보았는데 전혀 바뀌는 것 같지가 않네요..
아래는 제 .emacs파일의 내용입니다. 확실한 차이를 보기 위해서 한글폰트는 궁서체로 해
보려고 했습니다.
EMACS 고수님들의 많은 조언 부탁 드립니다.
그럼..
(setq load-path (cons (expand-file-name "~/.emacs.d/") load-path)) (require 'etheme) (etheme-set-theme "desert") ; C mode Settings (add-hook 'c-mode-hook '(lambda() (c-set-style "K&R"))) ; tab settings. (setq-default c-basic-offset 4 tab-wdth 4 indent-tabs-mode t) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(c-basic-offset 4 t) '(cua-mode nil) '(display-battery-mode nil) '(display-time-mode nil) '(face-font-family-alternatives (quote (("Bitstream Vera Sans Mono" "fixed") ("굴림체" "helvetica" "arial" "fixed")))) '(show-paren-mode nil)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(cursor ((t nil)) t)) ;(setq default-frame-alist ; (append ; '((font . (create-fontset-from-ascii-font ; "-outline-Bitstream Vera Sans-normal-i-normal-normal-*-*-96-96-p-*-iso8859-15"))) ; default-frame-alise)) (create-fontset-from-fontset-spec "-outline-Bitstream Vera Sans-normal-i-normal-normal-*-*-96-96-p-fontset-default, korean-ksc5601:-outline-궁서체-normal-r-normal-normal-*-*-96-96-c-*-iso8859-4" t)
Forums:
아래의 사이트에서 이런 것을 찾았습니다.[url]http://emac
아래의 사이트에서 이런 것을 찾았습니다.
http://emacs.kldp.org/wiki/doku.php?id=qanda
또한 아래의 사이트에는 이런 글이 있더군요.
http://www.emacswiki.org/cgi-bin/wiki/FontSets
그래서 이렇게 한번 해 보았습니다만 한글이 전부 깨져 버리네요..
한글이 깨지는 원인이 아래 사이트에서 제가 찾은 내용과 관련이 있는 것인지 궁금합니다. 잘 아시는 분의 조언 부탁 드릴께요..
( 당분간은 굴림체, 9 로 만족해야 겠네요.. :wink: )
안타깝게도. 전 emacs를 Windows에서 쓴 경험이 거의 없습니다.
안타깝게도. 전 emacs를 Windows에서 쓴 경험이 거의 없습니다. :oops:
보통 UNIX에서 fontset을 만드는 것은 X resource를 쓰는 방법을 많이 쓰는데, 질문하신 것처럼 코드에서 create-fontset-from-fontset-spec을 써서 만들 수 있습니다. 질문하신 것처럼, 영문 폰트와 한글 폰트를 따로 지정하는 것도 가능합니다.
첫째, fontset 이름은, 폰트 spec의 맨 마지막 두 필드(charset-registry)를 제거하고 fontset-xxxx 형태로 이름을 짓습니다. 그리고, 영문 폰트 charset 이름은 ascii, 한글 폰트 charset 이름은 korean-ksc5601로 합니다. 예를 들면 다음과 같습니다:
그리고 나서 다음과 같이 현재 font를 바꿔줍니다:
현재 프레임에만 적용할려면 세번째 optional 인자에 프레임 정보를 주면 됩니다. 예를 들어서 M-x new-frame 등으로 frame을 여러 개 띄운 경우, 현재 프레임의 폰트만을 바꾸려면 다음과 같이 합니다:
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://cinsk.github.io/cfaqs/
감사합니다.하지만 역시 아래와 같은 코드로도 한글만 다 깨져서 나오네
감사합니다.
하지만 역시 아래와 같은 코드로도 한글만 다 깨져서 나오네요..
C-s 를 이용한 찾기에도 한글이 인식되는것 같기는 하나 화면에서는 여전히 깨져서 나옵니다.
지금 제게 Windows machine이 없어서 테스트할 수가 없군요.
지금 제게 Windows machine이 없어서 테스트할 수가 없군요. 회사 가서 한 번 더 해보겠습니다.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://cinsk.github.io/cfaqs/
cinsk님의 답변을 보고
cinsk님의 답변을 보고
이렇게 했더니 잘 됩니다.
이 라인의 맨 끝에 -*를 안 붙이면 글자가 다 깨져서 나오는군요.
댓글 달기