[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Japanese TTF handling
From: |
山本和彦 |
Subject: |
Japanese TTF handling |
Date: |
Thu, 07 Aug 2003 19:40:23 +0900 (JST) |
Emacs 21.3.50 does not handle Japanese TrueType fonts correctly while
Emacs 21.3 can do well.
I declared two typical Japanese fonts as follows:
(defface mincho '((t :family "ms mincho" :height 400)) "mincho")
(defface gothic '((t :family "ms gothic" :height 400)) "gothic")
Then I inserted two Japanese characters into a buffer. On the first
one, I evaluated the following:
(set-text-properties (point) (1+ (point)) '(face mincho))
This changed the face of the first one to "mincho". Good! But when I
evaluated the following on the second one, its face turned into
"mincho", not "gothic".
(set-text-properties (point) (1+ (point)) '(face gothic))
I tested the same things on Emacs 21.3, resulting that the second one
was displayed as "gothic".
FYI: On Emacs 21.3.50, (face-font 'gothic) returns
"-ricoh-ms gothic-medium-r-normal--41-396-74-75-p-247-iso8859-1".
I don't know why "mincho" is displayed for this font spec.
--Kazu
In GNU Emacs 21.3.50.1 (i386-unknown-netbsdelf1.6U, X toolkit, Xaw3d scroll
bars)
of 2003-07-31 on caster.iij.ad.jp
configured using `configure '--without-xim' '--prefix=/usr/local/emacs21''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: ja_JP.eucJP
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: japanese-iso-8bit
default-enable-multibyte-characters: t
Recent input:
w C-e DEL ) C-e C-x C-e C-n C-x C-e C-n C-n C-n C-n
C-n C-a C-SPC C-SPC ESC k C-x 2 C-x b * s TAB <return>
C-l a RET C-a ESC : C-y <return> C-e i RET C-x o C-n
ESC k C-x o C-b ESC : C-y <return> C-x o C-x 1 C-p
C-p C-p C-p C-k C-l C-p C-p C-p C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-e C-x C-e C-a C-p C-p C-p C-p C-SPC
C-n C-n C-x C-s ESC x r e p o r t SPC SPC SPC b SPC
<return>
Recent messages:
gothic
mincho
Mark set
Transient-mark-mode temporarily enabled
t [2 times]
"-ricoh-ms gothic-medium-r-normal--41-396-74-75-p-247-iso8859-1"
Mark activated
Updated /home/kazu/xxx.el
Making completion list...
Loading emacsbug...done
- Japanese TTF handling,
山本和彦 <=