all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Robert Pluim <rpluim@gmail.com>
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 16:29:23 +0200	[thread overview]
Message-ID: <83lfnxg2ik.fsf@gnu.org> (raw)
In-Reply-To: <m24kulc451.fsf@gmail.com> (message from Robert Pluim on Wed, 18 Mar 2020 12:07:54 +0100)

> From: Robert Pluim <rpluim@gmail.com>
> Cc: Sergey Organov <sorganov@gmail.com>,  Kenichi Handa <handa@gnu.org>,
>   40097@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.





  reply	other threads:[~2020-03-18 14:29 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 [this message]
2020-03-18 16:28           ` Robert Pluim
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

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

  git send-email \
    --in-reply-to=83lfnxg2ik.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=40097@debbugs.gnu.org \
    --cc=rpluim@gmail.com \
    --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 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.