[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#4895: 23.1; Incorrect font selected
From: |
Андрей Парамонов |
Subject: |
bug#4895: 23.1; Incorrect font selected |
Date: |
Tue, 10 Nov 2009 09:15:33 +0300 |
Hello!
2009/11/10 Kenichi Handa <handa@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