all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
To: handa@m17n.org
Cc: emacs-devel@gnu.org
Subject: Re: set-fontset-font and preferred charset?
Date: Thu, 09 Jul 2009 11:40:41 +0900 (JST)	[thread overview]
Message-ID: <20090709.114041.738341096801775186.kasahara@nc.kyushu-u.ac.jp> (raw)
In-Reply-To: <tl7my7eejmr.fsf@m17n.org>

On Thu, 09 Jul 2009 10:21:32 +0900,
	Kenichi Handa <handa@m17n.org> said:

> In article <20090708.171340.824917111869309420.kasahara@nc.kyushu-u.ac.jp>, Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> writes:
> 
>> Is there any workaround for the problem for now ? At least I want
>> MULTIPLICATION SIGN to be full width...
> 
> Please try this.
> 
> (if (display-graphic-p)
>     (set-fontset-font (face-attribute 'default :fontset)
> 		      '(#x80 . #xFFFF) '(nil . "jisx0208.1983-0") 
> 		      nil 'append))

It fixed displaying characters with japanese-jisx0208 text-property.
Characters without such a text-property were still shown as half
width.  On the other hand, greek/cyrillic characters with proper
text-property were shown as full width...  Maybe I should wait until
the new font selection code is implemented.

For example, when I find a new text file and type "×", it is shown as
half width even if its file-coding-system is iso-2022-jp.  After save
the file and find it again, it is shown as full width.  But when I
input an additional "×" using "japanese" input method (using C-\), it
is shown as half width until I finalize the character.  Also a
character inserted at the very beginning of the buffer won't receive a
japanese-jisx0208 text-property and becomes half width.

My preference is "full width as a default" even when there is no
text-property such as in *scratch* and a mini-buffer (because I'm a
Japapanese using Japanese input method).  Maybe it causes some
(unicode?) text mistakenly shown as full width, but I can torelate
it...

Even when there is no text-property, C-u C-x = seems to shows correct
"preferred charset" in many cases.  I'm wondering what is the meaning
and purpose of preferred charset, how it is decided, and why it is not
matched with the font registry.  As discussed in another thread,
fontsets/charsets are pretty difficult to understand for me...

Regards,
-- 
Yoshiaki Kasahara
Research Institute for Information Technology, Kyushu University
kasahara@nc.kyushu-u.ac.jp




  reply	other threads:[~2009-07-09  2:40 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-03  5:15 set-fontset-font and preferred charset? Yoshiaki Kasahara
2009-07-03  5:53 ` Kenichi Handa
2009-07-03  6:24   ` Werner LEMBERG
2009-07-03  7:21     ` Kenichi Handa
2009-07-03  8:09       ` YAMAMOTO Mitsuharu
2009-07-06 12:17         ` Kenichi Handa
2009-07-03  9:05       ` Yoshiaki Kasahara
2009-07-08  7:44         ` Kenichi Handa
2009-07-08  8:09           ` YAMAMOTO Mitsuharu
2009-07-08  8:48             ` YAMAMOTO Mitsuharu
2009-07-08 11:29               ` Kenichi Handa
2009-07-09  0:00                 ` YAMAMOTO Mitsuharu
2009-07-09  1:06                   ` Kenichi Handa
2009-07-08  8:13           ` Yoshiaki Kasahara
2009-07-09  1:21             ` Kenichi Handa
2009-07-09  2:40               ` Yoshiaki Kasahara [this message]
2009-07-09  3:55                 ` Kenichi Handa
2009-07-09  4:32                   ` Yoshiaki Kasahara
2009-07-09  4:50                     ` Kenichi Handa
2009-07-09  5:06                       ` Yoshiaki Kasahara
2009-07-09 12:00                         ` Kenichi Handa
2009-07-10  2:52                           ` Yoshiaki Kasahara
2009-07-10  4:05                             ` Kenichi Handa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090709.114041.738341096801775186.kasahara@nc.kyushu-u.ac.jp \
    --to=kasahara@nc.kyushu-u.ac.jp \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.