GNU bug report logs - #40097
28.0.50; Preferred font ignored for specific charset

Previous Next

Package: emacs;

Reported by: Sergey Organov <sorganov <at> gmail.com>

Date: Tue, 17 Mar 2020 04:32:01 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 27.1

Done: Robert Pluim <rpluim <at> gmail.com>

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: Robert Pluim <rpluim <at> gmail.com>
Cc: handa <at> gnu.org, sorganov <at> gmail.com, 40097 <at> debbugs.gnu.org
Subject: bug#40097: 28.0.50; Preferred font ignored for specific charset
Date: Wed, 18 Mar 2020 16:29:23 +0200
> From: Robert Pluim <rpluim <at> gmail.com>
> Cc: Sergey Organov <sorganov <at> gmail.com>,  Kenichi Handa <handa <at> gnu.org>,
>   40097 <at> debbugs.gnu.org
> Date: Wed, 18 Mar 2020 12:07:54 +0100
> 
> Ah, now I see where this is coming from: I was looking down in font.c,
> but this is a fontset.c feature.

Yes.

> Iʼm not sure how useful it is, I donʼt think fontconfig has any notion
> of 'charset' beyond 'does this font support this Unicode character'.

Indeed; and you will see in ftfont.c that ftfont_list (or, rather, one
of the subroutines it calls) concocts a "charset" by using the few
representative characters from fc_charset_table, and then asks
Fontconfig to list fonts which support those characters (at least
that's my reading of the code).  Which is why I'm puzzled how come
DejaVu Sans Mono is not in the list and we proceed to the xfont
backend, because I'm quite sure DejaVu Sans does support the Cyrillic
characters that represent windows-1251.  If you can tell what I'm
missing here, maybe we could make some progress even without changing
the design.




This bug report was last modified 5 years and 69 days ago.

Previous Next


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