[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[w32] TrueType font with multibyte name
From: |
Satomi I. |
Subject: |
[w32] TrueType font with multibyte name |
Date: |
Sat, 16 Oct 2004 15:30:52 +0900 |
User-agent: |
Wanderlust/2.11.24 (Wonderwall) Emacs/21.3 Mule/5.0 (SAKAKI) |
On Emacs running on Japanese Windows, TrueType fonts with multibyte
names may not be selected or listed properly.
For example, choosing "MS ゴシック" font (which is the Japanese name
of "MS Gothic") using `mouse-set-font', `set-frame-font',
`set-fontset-font' and/or `customize-face' results in a different font
or an error.
Also, (x-list-fonts "*MS ゴシック*") returns nil even if the
matching font is installed on the system.
The English name "MS Gothic" is not listed on Japanese Windows and
therefore cannot be used.
So Japanese NTEmacs users have been in trouble for a long time with
font/fontset configuration.
I noticed that the problem exists in the
fast_c_string_match_ignore_case() function in search.c. It may return
a wrong result if a multibyte string is passed.
The attached patch seems to fix the problem, but I'm not sure whether
it is a proper way out. I hope some expert can review.
Regards,
Sato
search.c.diff
Description: Binary data
In GNU Emacs 21.3.50.1 (i386-msvc-nt5.0.2195)
of 2004-10-16 on TPG40
configured using `configure --with-msvc (12.00) --cflags -DCLIENTEDGE -DMEADOW
-DW32_IME --ldflags zlib.lib libjpeg.lib libpng.lib libtiff.lib Xpm.lib
libungif.lib'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: JPN
locale-coding-system: shift_jis-dos
default-enable-multibyte-characters: t
Major mode: Fundamental
Minor modes in effect:
cua-mode: t
which-function-mode: t
auto-insert-mode: t
recentf-mode: t
global-auto-revert-mode: t
partial-completion-mode: t
encoded-kbd-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
global-font-lock-mode: t
font-lock-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
temp-buffer-resize-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-x w C-h e C-a <delete> C-x 1 M-x <up> <return>
Recent messages:
Mark set [2 times]
Loading emacsbug...done
- [w32] TrueType font with multibyte name,
Satomi I. <=