all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Андрей Парамонов" <cmr.pent@gmail.com>
To: Kenichi Handa <handa@m17n.org>
Cc: 4895@emacsbugs.donarmstrong.com
Subject: bug#4895: 23.1; Incorrect font selected
Date: Tue, 10 Nov 2009 09:15:33 +0300	[thread overview]
Message-ID: <5f0660120911092215v48f00477l5f2c68855507ab4b@mail.gmail.com> (raw)
In-Reply-To: <tl73a4n411z.fsf@m17n.org>

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





  reply	other threads:[~2009-11-10  6:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-09 19:19 bug#4895: 23.1; Incorrect font selected Andrey Paramonov
2009-11-10  1:32 ` Kenichi Handa
2009-11-10  6:15   ` Андрей Парамонов [this message]
2009-11-10  8:10     ` Kenichi Handa
2009-11-11 10:45       ` Juri Linkov
2012-07-09  5:26         ` Chong Yidong
2012-07-09  8:10           ` Juri Linkov
2012-07-09 16:41           ` Eli Zaretskii

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=5f0660120911092215v48f00477l5f2c68855507ab4b@mail.gmail.com \
    --to=cmr.pent@gmail.com \
    --cc=4895@emacsbugs.donarmstrong.com \
    --cc=handa@m17n.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.