all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: schwab@suse.de, monnier+gnu/emacs@rum.cs.yale.edu, emacs-devel@gnu.org
Subject: Re: Fontset problem
Date: Fri, 27 Sep 2002 10:46:38 +0900 (JST)	[thread overview]
Message-ID: <200209270146.KAA14043@etlken.m17n.org> (raw)
In-Reply-To: <200209261448.g8QEmU915967@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu)

In article <200209261448.g8QEmU915967@rum.cs.yale.edu>, "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu> writes:
> Faces have both a `font' property (which specifies a fontset or
> a specific font) and a `family' property.
> Typically the `font' is set once and for all in the `default' face
> and is not touched by any other face: they set their `family'
> property instead.

> For some reason, the `default' face initializes its `family' property
> not to `unspecified' but to the name of the `font', which will thus
> stupidly override any other family setting in the fontset.  I think
> that's the bug.

I don't think so.  The font related properties of the
`default' face is decided by a font Emacs uses for a frame,
and that font specifies all font related properties.  That
way, it is assured that the other faces inheriting font
realted properties from the `default' face use the same
font.   I think that is the design policy of xfaces.c.

The current problem is that the role of family part
sepecified in a fontset is not clear; is it just giving a
fallback default, or is it to override the normal font
selection mechanism?

Previously, as people didn't have that many non-Latin-1
fonts, the above was not that big problem because the face
family almost always failed (especially for CJK fonts), thus
the fontset family was used if specified.

But, now, there are many variations of non-Latin-1 fonts,
and incomplete iso10646 fonts make the situation worse.  So,
until we implement a better font selection mechanism for
multibyte characters, people need a way to override the
current font selection mechanism.  First of all, such family
names as courier, times, etc are applicable only to Latin
fonts.

I agree that my latest change is not a complete solution,
but it's a quick workaround to solve the current problem.
People who are satisfied with the current font selector
don't have to specify a family part in a fontset.  So, if it
is specified, I think it is better to regard it a sign of a
request to override the current font selector.

---
Ken'ichi HANDA
handa@m17n.org

      reply	other threads:[~2002-09-27  1:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-03 13:44 Fontset problem Andreas Schwab
2002-09-06 13:01 ` Kenichi Handa
2002-09-06 13:43   ` Andreas Schwab
2002-09-26  8:10     ` Kenichi Handa
2002-09-26 13:35       ` Andreas Schwab
2002-09-26 14:06       ` Stefan Monnier
2002-09-26 14:20         ` Andreas Schwab
2002-09-26 14:32           ` Stefan Monnier
2002-09-26 14:39             ` Andreas Schwab
2002-09-26 14:40               ` Stefan Monnier
2002-09-26 14:42                 ` Andreas Schwab
2002-09-26 14:48                   ` Stefan Monnier
2002-09-27  1:46                     ` Kenichi Handa [this message]

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=200209270146.KAA14043@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier+gnu/emacs@rum.cs.yale.edu \
    --cc=schwab@suse.de \
    /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.