unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: kasahara@nc.kyushu-u.ac.jp, emacs-devel@gnu.org
Subject: Re: set-fontset-font and preferred charset?
Date: Mon, 06 Jul 2009 21:17:41 +0900	[thread overview]
Message-ID: <tl7skhahuoq.fsf@m17n.org> (raw)
In-Reply-To: <wlzlbmw5ko.wl%mituharu@math.s.chiba-u.ac.jp> (message from YAMAMOTO Mitsuharu on Fri, 03 Jul 2009 17:09:43 +0900)

In article <wlzlbmw5ko.wl%mituharu@math.s.chiba-u.ac.jp>, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> writes:

>>>>>> On Fri, 03 Jul 2009 16:21:40 +0900, Kenichi Handa <handa@m17n.org> said:
> > So, if he uses 23.2 trunk code, there's no need of extra setting.

> > Perhaps, I should add that code for 23.1 too because it can be
> > considered as a bug that Emacs 23.1 dislays several characters as
> > half width by M-x list-charset-chars RET japanese-jisx0208 RET.

> I'm not sure if it is an intended behavior or a bug, but even with the
> trunk code, M-x list-charset-chars RET japanese-jisx0208 RET shows
> latin-1 characters such as PLUS-MINUS SIGN and MULTIPLICATION SIGN in
> half width.

Oops, I've overlooked that problem.  Emacs searches for a
font for C in this order:

(1) search a font-group for C in the current fontset.
(2) search a font-group for C in the default fontset.
(3) search a fallback font-group of the current fontset.
(4) search a fallback font-group of the default fontset.

When a user specify a font (not fontset) as the default
font, Emacs creates an fontset based on that font, and if
the font is iso8859-1, the created fontset uses that font
for iso-8859-1 characters.  So, at the step (1) above, the
default font is found for all iso-8859-1 characters although
the preferable font should be found at the step (2).

But, I'm now improving the font-searching routine for 23.2.
One of the change I have in my mind is to merge the steps
(1) and (2) (and (3) and (4)) while removing the duplicated
font specifications.  Once that is done, the above problem
will be solved eventually.

---
Kenichi Handa
handa@m17n.org




  reply	other threads:[~2009-07-06 12:17 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 [this message]
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
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=tl7skhahuoq.fsf@m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=kasahara@nc.kyushu-u.ac.jp \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).