aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/term
diff options
context:
space:
mode:
authorJason Rumney2007-11-10 01:28:52 +0000
committerJason Rumney2007-11-10 01:28:52 +0000
commit756d09c83fe7c2796bfd2f0203ef3288da55e7b6 (patch)
tree6b2ed7bb9f7a350f3569424cffdb4d7ed6fb119e /lisp/term
parente290d997cdc9651538831525670b1c197b30380e (diff)
downloademacs-756d09c83fe7c2796bfd2f0203ef3288da55e7b6.tar.gz
emacs-756d09c83fe7c2796bfd2f0203ef3288da55e7b6.zip
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.")
1108 (progn 1108 (progn
1109 ;; Setup the default fontset. 1109 ;; Setup the default fontset.
1110 (setup-default-fontset) 1110 (setup-default-fontset)
1111 ;; Enable Japanese fonts on Windows to be used by default.
1112 (set-fontset-font nil (make-char 'katakana-jisx0201)
1113 '("*" . "JISX0208-SJIS"))
1114 (set-fontset-font nil (make-char 'latin-jisx0201)
1115 '("*" . "JISX0208-SJIS"))
1116 (set-fontset-font nil (make-char 'japanese-jisx0208)
1117 '("*" . "JISX0208-SJIS"))
1118 (set-fontset-font nil (make-char 'japanese-jisx0208-1978)
1119 '("*" . "JISX0208-SJIS"))
1111 ;; Create the standard fontset. 1120 ;; Create the standard fontset.
1112 (create-fontset-from-fontset-spec w32-standard-fontset-spec t) 1121 (create-fontset-from-fontset-spec w32-standard-fontset-spec t)
1113 ;; Create fontset specified in X resources "Fontset-N" (N is 0, 1,...). 1122 ;; 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.")
1209 nil nil default)))) 1218 nil nil default))))
1210 (list face (if (equal value "") nil value)))) 1219 (list face (if (equal value "") nil value))))
1211 1220
1212;;; Enable Japanese fonts on Windows to be used by default.
1213(set-fontset-font nil (make-char 'katakana-jisx0201) '("*" . "JISX0208-SJIS"))
1214(set-fontset-font nil (make-char 'latin-jisx0201) '("*" . "JISX0208-SJIS"))
1215(set-fontset-font nil (make-char 'japanese-jisx0208) '("*" . "JISX0208-SJIS"))
1216(set-fontset-font nil (make-char 'japanese-jisx0208-1978) '("*" . "JISX0208-SJIS"))
1217
1218(defun mouse-set-font (&rest fonts) 1221(defun mouse-set-font (&rest fonts)
1219 "Select an Emacs font from a list of known good fonts and fontsets. 1222 "Select an Emacs font from a list of known good fonts and fontsets.
1220 1223