From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: `set-fontset-font' and ascii characters
Date: Mon, 5 May 2003 17:33:37 +0900 (JST) [thread overview]
Message-ID: <200305050833.RAA20149@etlken.m17n.org> (raw)
In-Reply-To: <87bryj8y94.fsf@ID-87814.user.dfncis.de> (message from Oliver Scholz on Sun, 04 May 2003 00:24:23 +0200)
In article <87bryj8y94.fsf@ID-87814.user.dfncis.de>, Oliver Scholz <alkibiades@gmx.de> writes:
> I found a bug. Emacs crashes, if you evaluated the following code with
> my patch applied:
> (progn
> (set-face-font 'default "fontset-default")
> (set-fontset-font "fontset-default"
> 'ascii
> '("helvetica" . "iso8859-1")))
> The critical fault seems to take place in `set_lface_from_font_name'
> in xfaces.c (called from `Finternal_set_lisp_face_attribute'):
> if (fontset >= 0)
> font_name = SDATA (fontset_ascii (fontset));
Oops. Currently, a fontset should have a font name
(i.e. string, not cons of (FAMILY . REGISTRY)) for ascii.
So, if (FAMILY . REGISTRY) is specified, it mast be
transformed to "-FAMILY-*-REGISTRY". If FAMILY doesn't
contain '-', "*-" must be prepended to FAMILY in advance.
If REGISTRY doesn't contain '-', "-*" must be appended to
REGISTRY in advance.
One more thing to note. Currently all ascii characters
should have the same font in a fontset. So, for instance,
(set-fontset-font FONTSET '(?a . ?z) FONT_NAME) must be
inhibited or treated as (set-fontset-font FONTSET 'ascii
FONT_NAME).
These are the dirty parts originating in a bad interaction
between face and fontset. Clearing them out is in my todo
list for a long time, but I've never had time to work on it.
---
Ken'ichi HANDA
handa@m17n.org
next prev parent reply other threads:[~2003-05-05 8:33 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
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 [this message]
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=200305050833.RAA20149@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.