Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
756d09c8
Commit
756d09c8
authored
Nov 10, 2007
by
Jason Rumney
Browse files
Enable SJIS fonts before creating any fontsets.
parent
e290d997
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/term/w32-win.el
lisp/term/w32-win.el
+9
-6
No files found.
lisp/ChangeLog
View file @
756d09c8
2007-11-10 Jason Rumney <jasonr@gnu.org>
* term/w32-win.el: Enable SJIS fonts before creating any fontsets.
2007-11-10 Juanma Barranquero <lekktu@gmail.com>
* ido.el (ido-save-history): Write the history file in UTF-8,
lisp/term/w32-win.el
View file @
756d09c8
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment