unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: sorganov@gmail.com, 40097@debbugs.gnu.org
Subject: bug#40097: 28.0.50; Preferred font ignored for specific charset
Date: Wed, 18 Mar 2020 17:28:47 +0100	[thread overview]
Message-ID: <m2zhcdaaps.fsf@gmail.com> (raw)
In-Reply-To: <83lfnxg2ik.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 18 Mar 2020 16:29:23 +0200")

>>>>> On Wed, 18 Mar 2020 16:29:23 +0200, Eli Zaretskii <eliz@gnu.org> said:

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

ftfont.c:

    { "windows-1251", { 0x0401, 0x0490 }, "ru"},

Thread 1 "emacs" hit Breakpoint 3, ftfont_get_charset (registry=XIL(0x394540)) at ftfont.c:486
486	  for (i = j = 0; i < SBYTES (SYMBOL_NAME (registry)); i++, j++)
(gdb) pp registry
microsoft-cp1251
(gdb) 

So correcting the name of the registry in ftfont.c fixes this. Thanks
for the hint, Eli.

Robert





  reply	other threads:[~2020-03-18 16:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-17  4:31 bug#40097: 28.0.50; Preferred font ignored for specific charset Sergey Organov
2020-03-17 15:24 ` Eli Zaretskii
2020-03-17 16:12   ` Sergey Organov
2020-03-17 16:35     ` Eli Zaretskii
2020-03-18  4:43       ` Sergey Organov
2020-03-18 14:35         ` Eli Zaretskii
2020-03-18 15:10           ` Sergey Organov
2020-03-18 11:07       ` Robert Pluim
2020-03-18 14:29         ` Eli Zaretskii
2020-03-18 16:28           ` Robert Pluim [this message]
2020-03-18 18:18             ` Eli Zaretskii
2020-03-18 20:47               ` Robert Pluim
2020-03-19  3:25                 ` Eli Zaretskii
2020-03-19  8:26                   ` Robert Pluim
2020-03-19 11:12                     ` Sergey Organov

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=m2zhcdaaps.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=40097@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=sorganov@gmail.com \
    /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).