unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@gnu.org>
To: Juri Linkov <juri@jurta.org>
Cc: 4895@debbugs.gnu.org, cmr.pent@gmail.com, Kenichi Handa <handa@m17n.org>
Subject: bug#4895: 23.1; Incorrect font selected
Date: Mon, 09 Jul 2012 13:26:55 +0800	[thread overview]
Message-ID: <87wr2d33og.fsf@gnu.org> (raw)
In-Reply-To: <87hbt1siju.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 11 Nov 2009 12:45:09 +0200")

Juri Linkov <juri@jurta.org> writes:

>>> 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.
>>
>> I'm not sure.  At least, a while ago, bitmap fonts of legacy
>> registries (e.g. iso8859-X, koi8, etc) are better than
>> unicode bitmap fonts.  I think using cp1251 fonts for
>> cp1251-encoded file is a good default even now.  First of
>> all, if unicode is dominating by now, the chance of reading
>> cp1251 files should be rare.
>
> Unfortunately, cp1251 is still common in the documents created on
> Windows.  Opening such documents in Emacs on GNU/Linux often results
> in a very ugly look, especially when cp1251 text is surrounded
> by Latin or Unicode characters.  Unicode fonts are well developed and 
> maintained unlike legacy cp1251 fonts that are less relevant nowadays.

Presumably, unicode fonts should have even better coverage now than
three years ago, when this discussion first took place.  Any objections
to making the switch?

Also, where in the code does this

>> 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".

occur?  I took a quick look at the documentation, e.g. the docstring of
new-fontset, and couldn't find the explanation of how the font-selector
chooses the font to use from the list of font specifications.  If the
list of font specifications is not given in order of priority, that
should be clearly explained somewhere.





  reply	other threads:[~2012-07-09  5:26 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   ` Андрей Парамонов
2009-11-10  8:10     ` Kenichi Handa
2009-11-11 10:45       ` Juri Linkov
2012-07-09  5:26         ` Chong Yidong [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wr2d33og.fsf@gnu.org \
    --to=cyd@gnu.org \
    --cc=4895@debbugs.gnu.org \
    --cc=cmr.pent@gmail.com \
    --cc=handa@m17n.org \
    --cc=juri@jurta.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).