unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: Miles Bader <miles@gnu.org>
Cc: kasahara@nc.kyushu-u.ac.jp, emacs-devel@gnu.org
Subject: Re: X fonts selection weirdness
Date: Wed, 25 Jun 2008 20:31:56 +0900	[thread overview]
Message-ID: <E1KBTEC-0006aO-Pu@etlken.m17n.org> (raw)
In-Reply-To: <buoskv254pv.fsf@dhapc248.dev.necel.com> (message from Miles Bader on Wed, 25 Jun 2008 16:55:08 +0900)

In article <buoskv254pv.fsf@dhapc248.dev.necel.com>, Miles Bader <miles.bader@necel.com> writes:

> Kenichi Handa <handa@m17n.org> writes:
> > The above should work, but I'm now thinking about
> > introducing non-default-font-script-list:
..
> > Documentation:
> > List of scripts not to display by the default font.
> > Usually, the font specified for ASCII characters is also used
> > to display a non-ASCII character if the font supports that character.
> > But, if a character belongs to one of these scripts, a font for it is
> > determined by looking up the current fontset and the default fontset.

> Why would you do that though?

> If the user choose a default font capable of displaying one of those
> charsets, it seems like he would _want_ the default font to be used!

Not for non-Latin scripts, especially CJK and those require
CTL (Complex Text Layout).  Usually the default font, even
if it claims that it has the specific character, the design
is not good or doesn't contain proper OTF tables.

Jason Rumney <jasonr@gnu.org> writes:

> Conversely, if the user has explicitly specified fonts in a fontset,
> then they expect those fonts to be used, not just for specific scripts.

Yes.  As written in the docstring,
non-default-font-script-list doesn't prevent such a case.

Currently, if a user specifies a font (not fontset), a new
fontset is created, and in it, all Latin characters are
mapped to the specified font, and the iso10646-1 version of
that font is set in the fallback font of the fontset.

So, if a user specifies XXX-iso8859-1, XXX-iso10646-1 is
used for all characters supported by that font.  This works
well for most characters except for those in the above
scripts.  Current idea of mine is to, instead of setting
XXX-iso10646-1 to the fallback font, map all characters
(except for latin-1 and those belongs to the above scripts)
to XXX-iso10646-1.

---
Kenichi Handa
handa@ni.aist.go.jp




  parent reply	other threads:[~2008-06-25 11:31 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-24  3:42 X fonts selection weirdness Yoshiaki Kasahara
2008-06-24  4:21 ` Miles Bader
2008-06-24  6:20   ` Yoshiaki Kasahara
2008-06-24  4:53 ` Kenichi Handa
2008-06-24  5:57   ` Yoshiaki Kasahara
2008-06-24  7:02     ` Kenichi Handa
2008-06-24  9:08       ` Yoshiaki Kasahara
2008-06-25  7:47         ` Kenichi Handa
2008-06-25  7:55           ` Miles Bader
2008-06-25  8:05             ` Jason Rumney
2008-06-25 11:31             ` Kenichi Handa [this message]
2008-06-25 13:45               ` Miles Bader
2008-06-25 14:04                 ` Miles Bader
2008-06-26 11:40                 ` Kenichi Handa
2008-06-26 21:20               ` Richard M Stallman
2008-06-27  0:32                 ` Kenichi Handa
2008-06-27 15:38                   ` Richard M Stallman
2008-06-25  8:15           ` David Kastrup
2008-07-09  1:42             ` Kenichi Handa
2008-07-15  3:34               ` Yoshiaki Kasahara
2008-06-26  7:39           ` Yoshiaki Kasahara
2008-06-24 12:42       ` Stefan Monnier
2008-06-24 15:10         ` Kenichi Handa
2008-06-24 18:46           ` Stefan Monnier
2008-06-25  0:36             ` 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=E1KBTEC-0006aO-Pu@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=kasahara@nc.kyushu-u.ac.jp \
    --cc=miles@gnu.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 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).