emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `set-fontset-font' and ascii characters


From: Oliver Scholz
Subject: Re: `set-fontset-font' and ascii characters
Date: Sun, 25 May 2003 14:17:34 +0200
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (gnu/linux)

Kenichi Handa <address@hidden> writes:

> In article <address@hidden>, Oliver Scholz <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]