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: Eli Zaretskii <eliz <at> gnu.org>
To: Chong Yidong <cyd <at> gnu.org>
Cc: juri <at> jurta.org, 4895 <at> debbugs.gnu.org, cmr.pent <at> gmail.com, handa <at> m17n.org
Subject: bug#4895: 23.1; Incorrect font selected
Date: Mon, 09 Jul 2012 19:41:20 +0300
> From: Chong Yidong <cyd <at> gnu.org>
> Date: Mon, 09 Jul 2012 13:26:55 +0800
> Cc: 4895 <at> debbugs.gnu.org, cmr.pent <at> gmail.com, Kenichi Handa <handa <at> m17n.org>
> 
> 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?

decode_coding calls produce_annotation that calls produce_charset,
which puts the 'charset' text property on the decoded text.

Then font_for_char uses this property to get the charset ID with which
it calls fontset_font, which in turn calls fontset_find_font, which
prefers fonts whose repertory matches that ID.

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

The documentation of fontset stuff could use a lot of improvement.




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.