summaryrefslogtreecommitdiff
path: root/lisp/term
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2007-11-10 01:30:33 +0000
committerJason Rumney <jasonr@gnu.org>2007-11-10 01:30:33 +0000
commit1adf362df743044230329213bf68ff1e3acdd5e4 (patch)
tree3c7b8f73d614af68cb073c5f3ea4a7a8dad1386e /lisp/term
parentd725608c0ecfdb7328b5ec49c06f508e18ab6dcd (diff)
downloademacs-1adf362df743044230329213bf68ff1e3acdd5e4.tar.gz
(w32-initialize-window-system): Move SJIS font setup here from global scope.
Diffstat (limited to 'lisp/term')
-rw-r--r--lisp/term/w32-win.el17
1 files changed, 11 insertions, 6 deletions
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el
index 6a2ea13be38..4a3a685f8c0 100644
--- a/lisp/term/w32-win.el
+++ b/lisp/term/w32-win.el
@@ -1083,12 +1083,6 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
(error "Suspending an Emacs running under W32 makes no sense"))
-;;; 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.
@@ -1159,6 +1153,17 @@ pop-up menu are unaffected by `w32-list-proportional-fonts')."
;; 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,...).