all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: `set-fontset-font' and ascii characters
Date: Fri, 2 May 2003 08:53:17 +0900 (JST)	[thread overview]
Message-ID: <200305012353.IAA15973@etlken.m17n.org> (raw)
In-Reply-To: <uvfwuh1x1.fsf@ID-87814.user.dfncis.de> (message from Oliver Scholz on Thu, 01 May 2003 22:01:14 +0200)

In article <uvfwuh1x1.fsf@ID-87814.user.dfncis.de>, Oliver Scholz <alkibiades@gmx.de> writes:
> Uh, sorry, I was confused. Upon further reading I realize now that it
> is wrong to include xterm.h. Somehow I thought that xterm.c contains
> only generic functions.

> Currently fontset.c applies the function x_set_font by means of the
> variable set_frame_fontset_func, which is set in xfns.c, macfns.c and
> w32fns.c to x_set_font. So, would it be a proper way to use
> x_new_font_set_force by doing something similar with a new variable,
> say force_frame_fontset_func?

Yes.  I tried to make fontset.c independent on a window
system.

By the way, I re-consider the problem of chaning the fontset
of the default face.

You wrote:
> Now, if an ASCII font was changed, Fset_fontset_font checks all frames
> whether FONTSET is their frame fontset and forces a resizing of all
> frames that have. This is done by the new function
> x_new_fontset_force, which is like x_new_fontset, except that it does
> its works even if new fontset = old fontset. (This is done by
> factoring out a new function x_set_fontset_internal out of x_set_fontset.)

Isn't it easier to call Finternal_set_lisp_face_attribute on
all faces that has FONTSET?  That function handles the
default face correctly.

Vface_new_frame_defaults holds all named faces, the format is
((FACE . LFACE) ...).  LFACE[LFACE_FONT] gives the font or
fontset name of FACE.

This may work also in the case of changing non-ASCII font.

If this method works, the resulting code becomes simpler.
We can get rid of these functions:
 clear_fontset_elements, free_realized_multibyte_face

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

  reply	other threads:[~2003-05-01 23:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-27 10:22 `set-fontset-font' and ascii characters Oliver Scholz
2003-05-01  8:10 ` Kenichi Handa
2003-05-01 17:48   ` Oliver Scholz
2003-05-01 20:01     ` Oliver Scholz
2003-05-01 23:53       ` Kenichi Handa [this message]
2003-05-02  0:06         ` Kenichi Handa
2003-05-02  0:39         ` Oliver Scholz
2003-05-02  1:05           ` Kenichi Handa
2003-05-02 23:16             ` Oliver Scholz
2003-05-03  2:48               ` Kenichi Handa
2003-05-03 22:24                 ` Oliver Scholz
2003-05-05  8:33                   ` Kenichi Handa
2003-05-06 13:48                     ` Oliver Scholz
2003-05-07  1:12                       ` Kenichi Handa
2003-05-25 12:17                         ` Oliver Scholz
2003-06-10  2:16                           ` Kenichi Handa
2003-06-10  2:47                             ` Stefan Monnier
2003-05-02  7:06   ` Richard Stallman

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=200305012353.IAA15973@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@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 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.