GNU bug report logs - #4895
23.1; Incorrect font selected

Previous Next

Package: emacs;

Reported by: cmr.Pent <at> gmail.com

Date: Mon, 9 Nov 2009 19:25:05 UTC

Severity: normal

Merged with 4365, 11889

Found in version 23.4

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Андрей Парамонов <cmr.pent <at> gmail.com>
To: Kenichi Handa <handa <at> m17n.org>
Cc: 4895 <at> debbugs.gnu.org
Subject: bug#4895: 23.1; Incorrect font selected
Date: Tue, 10 Nov 2009 09:15:33 +0300
Hello!

2009/11/10 Kenichi Handa <handa <at> m17n.org>:
> This is because Emacs prefers a font whose registry matches
> with `charset' text property.
>
> In the above case, the default fontset has this entry for
> cyrillic:
>
>     (cyrillic ,(font-spec :registry "iso10646-1" :script 'cyrillic)
>               (nil . "ISO8859-5")
>               (nil . "microsoft-cp1251")
>               (nil . "koi8-r"))
>
> and when you read a file with cp1251, the charset property
> `cp1251' is put on the buffer text.  Thus the font-selector
> prefers a font whose registry is "microsoft-cp1251".
>
> If you prefer cyrillic characters to be displayed by the
> default font, you can do this in .emacs:
>
> (set-fontset-font "fontset-default" 'cyrillic
>                  (font-spec :registry "iso10646-1" :script 'cyrillic))
>

Thanks for the explanation. Do you think it's still valid not to
prefer unicode fonts to fonts with specific registries? I believe the
unicode is dominating by now, at least for european languages.

Andrey Paramonov



This bug report was last modified 13 years and 36 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.