all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oliver Scholz <alkibiades@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: `set-fontset-font' and ascii characters
Date: Sun, 25 May 2003 14:17:34 +0200	[thread overview]
Message-ID: <87isrzb4pt.fsf@ID-87814.user.dfncis.de> (raw)
In-Reply-To: <200305070112.KAA22618@etlken.m17n.org> (Kenichi Handa's message of "Wed, 7 May 2003 10:12:13 +0900 (JST)")

Kenichi Handa <handa@m17n.org> writes:

> In article <u1xzctcdp.fsf@ID-87814.user.dfncis.de>, Oliver Scholz <alkibiades@gmx.de> writes:
>> If that is going to be reworked (I'd like to help if I can and if you
>> want), then maybe it is sufficient to put a fence around the problem
>> for now? I.e. raise an error for (set-fontset-font FONTSET 'ascii
>> CONS-CELL). That's what I do now in my version of fontset.c. For the
>> purpose of making fontsets customizable it is sufficient--I think--if
>> I can set the ASCII font with (set-fontset-font FONTSET 'ascii
>> FONTNAME).
>
> Hmmm, ok, I agree.
[...]

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?

It would, of course, be easy to change `set-fontset-font' to generate
a fontname string from such a cons cell, so that:
("misc-fixed" . "iso8859-1") ==> "-misc-fixed-*-iso8859-1". But as
far as I understand the code, this is not the way it is supposed to
work for non-ASCII fonts, therefore I ask.

    Oliver
-- 
6 Prairial an 211 de la Révolution
Liberté, Egalité, Fraternité!

  reply	other threads:[~2003-05-25 12:17 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 [this message]
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=87isrzb4pt.fsf@ID-87814.user.dfncis.de \
    --to=alkibiades@gmx.de \
    --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.