diff options
| author | Jason Rumney | 2007-11-10 01:28:52 +0000 |
|---|---|---|
| committer | Jason Rumney | 2007-11-10 01:28:52 +0000 |
| commit | 756d09c83fe7c2796bfd2f0203ef3288da55e7b6 (patch) | |
| tree | 6b2ed7bb9f7a350f3569424cffdb4d7ed6fb119e | |
| parent | e290d997cdc9651538831525670b1c197b30380e (diff) | |
| download | emacs-756d09c83fe7c2796bfd2f0203ef3288da55e7b6.tar.gz emacs-756d09c83fe7c2796bfd2f0203ef3288da55e7b6.zip | |
Enable SJIS fonts before creating any fontsets.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/term/w32-win.el | 15 |
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1d1679b128c..3d169916dc6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2007-11-10 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * term/w32-win.el: Enable SJIS fonts before creating any fontsets. | ||
| 4 | |||
| 1 | 2007-11-10 Juanma Barranquero <lekktu@gmail.com> | 5 | 2007-11-10 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 6 | ||
| 3 | * ido.el (ido-save-history): Write the history file in UTF-8, | 7 | * ido.el (ido-save-history): Write the history file in UTF-8, |
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 | ||