From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: `set-fontset-font' and ascii characters
Date: Tue, 10 Jun 2003 11:16:18 +0900 (JST) [thread overview]
Message-ID: <200306100216.LAA10449@etlken.m17n.org> (raw)
In-Reply-To: <87isrzb4pt.fsf@ID-87814.user.dfncis.de> (message from Oliver Scholz on Sun, 25 May 2003 14:17:34 +0200)
I'm very sorry for this late response.
In article <87isrzb4pt.fsf@ID-87814.user.dfncis.de>, Oliver Scholz <alkibiades@gmx.de> writes:
> I changed my mind, while working on the customization
> stuff. I started to implement it according to your
> previous suggestions. But I realized that specifying a
> cons cell as FONTNAME argument to `set-fontset-font' does
> not seem to work with non-ASCII charsets either. I tested
> it with an Emacs without my modifications:
> (create-fontset-from-fontset-spec
> "-b&h-lucidatypewriter-medium-r-*-*-14-*-*-*-*-*-fontset-test")
> (set-face-font 'default "fontset-test")
> (set-fontset-font "fontset-test" 'latin-iso8859-1
> '("misc-fixed" . "iso8859-1"))
> Now when I type some umlauts like "äöü" Emacs still
> displays them in b&h-lucidatypewriter.
> But it works, when I specify a fontname:
> (set-fontset-font "fontset-test" 'latin-iso8859-1
> "-misc-fixed-*-iso8859-1")
> Am I missing something?
If a font name that doesn't conforms to full XLFD is
specified, the font name is used as is, otherwise, the
family field and registry field are extracted from the font
name. In the latter case, we faces the problem of which
family to prefer, a face family (b&h-lucidatypewriter) or a
fontset family (misc-fixed).
Currently, for a character of ASCII and Latin-1, emacs
prefers a face family, and for the other chars, emacs
prefers a fontset family. It's a very kludgy way, and
should be fixed somehow, but currently I don't have a time
to think about it and I don't remember now why the code is
like that. :-(
Please see the code of choose_face_font and try_font_list.
In choose_face_font, if you change the call of try_font_list
as this:
nfonts = try_font_list (f, attrs, XCAR (pattern), XCDR (pattern), &fonts,
SINGLE_BYTE_CHAR_P (c));
the fontset family should be prefered. Could you please try it?
---
Ken'ichi HANDA
handa@m17n.org
next prev parent reply other threads:[~2003-06-10 2:16 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
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 [this message]
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=200306100216.LAA10449@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.