summaryrefslogtreecommitdiff
path: root/lisp/term
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2007-11-10 01:28:52 +0000
committerJason Rumney <jasonr@gnu.org>2007-11-10 01:28:52 +0000
commit756d09c83fe7c2796bfd2f0203ef3288da55e7b6 (patch)
tree6b2ed7bb9f7a350f3569424cffdb4d7ed6fb119e /lisp/term
parente290d997cdc9651538831525670b1c197b30380e (diff)
downloademacs-756d09c83fe7c2796bfd2f0203ef3288da55e7b6.tar.gz
Enable SJIS fonts before creating any fontsets.
Diffstat (limited to 'lisp/term')
-rw-r--r--lisp/term/w32-win.el15
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el
index dfe94aaf133..86d8d6560d2 100644
--- a/lisp/term/w32-win.el
+++ b/lisp/term/w32-win.el
@@ -1108,6 +1108,15 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
(progn
;; Setup the default fontset.
(setup-default-fontset)
+ ;; Enable Japanese fonts on Windows to be used by default.
+ (set-fontset-font nil (make-char 'katakana-jisx0201)
+ '("*" . "JISX0208-SJIS"))
+ (set-fontset-font nil (make-char 'latin-jisx0201)
+ '("*" . "JISX0208-SJIS"))
+ (set-fontset-font nil (make-char 'japanese-jisx0208)
+ '("*" . "JISX0208-SJIS"))
+ (set-fontset-font nil (make-char 'japanese-jisx0208-1978)
+ '("*" . "JISX0208-SJIS"))
;; Create the standard fontset.
(create-fontset-from-fontset-spec w32-standard-fontset-spec t)
;; Create fontset specified in X resources "Fontset-N" (N is 0, 1,...).
@@ -1209,12 +1218,6 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
nil nil default))))
(list face (if (equal value "") nil value))))
-;;; Enable Japanese fonts on Windows to be used by default.
-(set-fontset-font nil (make-char 'katakana-jisx0201) '("*" . "JISX0208-SJIS"))
-(set-fontset-font nil (make-char 'latin-jisx0201) '("*" . "JISX0208-SJIS"))
-(set-fontset-font nil (make-char 'japanese-jisx0208) '("*" . "JISX0208-SJIS"))
-(set-fontset-font nil (make-char 'japanese-jisx0208-1978) '("*" . "JISX0208-SJIS"))
-
(defun mouse-set-font (&rest fonts)
"Select an Emacs font from a list of known good fonts and fontsets.