From: Robert Pluim <rpluim@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Jesse Sheidlower <jester@panix.com>, 51277@debbugs.gnu.org
Subject: bug#51277: 27.1; menu-set-font not loading correct font
Date: Thu, 21 Oct 2021 17:37:55 +0200 [thread overview]
Message-ID: <87k0i61j8s.fsf@gmail.com> (raw)
In-Reply-To: <877de6h6u5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 21 Oct 2021 14:59:14 +0200")
>>>>> On Thu, 21 Oct 2021 14:59:14 +0200, Lars Ingebrigtsen <larsi@gnus.org> said:
Lars> Robert Pluim <rpluim@gmail.com> writes:
Lars> then I get something that looks very wrong indeed. Anybody know a
Lars> program that understands these things?
>>
>> FC_DEBUG=1 xfce4-terminal --font "Operator Mono SSm:weight=book"
>>
>> will get you fontconfig debug telling you which actual font is
>> used.
Lars> Yeah, but surely there must be some other program (other than Emacs)
Lars> that actually uses this syntax for specifying fonts? I thought it was
Lars> supposed to be... "the way"...
Dunno. Specifying fonts on the command line is apparently passé.
>> gedit rounds down to the nearest multiple of 100, which equates to >=
Lars> Huh.
>> I guess the root cause of all of this is that weʼre mapping
>> PangoWeights to symbolic constants, which we then pass to
>> fontconfig. Perhaps we could arrange to pass the weights directly?
Lars> Indeed, the Pango round trip through symbols is inherently breakable. I
Lars> mean, the Gtk chooser knows exactly what font I've selected -- but is
Lars> there any way to get it to cough up that instead of the Pango weights?
I donʼt think so: Pango is supposed to abstract away from all that.
Lars> I've looked at the documentation
Lars> https://docs.gtk.org/Pango/struct.FontDescription.html
Lars> and nothing really jumped out at me. I mean, in this case, Pango
Lars> reports a weight of 330 for book... but the actual weight in the file is:
Lars> weight: 53(f)(s)
Lars> So after mapping to symbols and back again, we'll never find that font
Lars> (because "book" is at 80).
Lars> But... what does (f)(s) mean here?
Type double with a strong binding. I once knew what the distinction is
between strong/weak, but like all things fontconfig that knowledge
tends to disappear.
Robert
--
next prev parent reply other threads:[~2021-10-21 15:37 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-18 22:08 bug#51277: 27.1; menu-set-font not loading correct font Jesse Sheidlower
2021-10-19 11:08 ` Eli Zaretskii
[not found] ` <YW64Fi5/BIFRQ0R5@panix.com>
2021-10-19 12:43 ` Eli Zaretskii
2021-10-19 13:08 ` Jesse Sheidlower
2021-10-19 15:58 ` Eli Zaretskii
2021-10-19 16:47 ` Jesse Sheidlower
2021-10-19 17:29 ` Eli Zaretskii
2021-10-19 18:08 ` Jesse Sheidlower
2021-10-19 18:14 ` Eli Zaretskii
2021-10-19 18:17 ` Jesse Sheidlower
2021-10-20 8:50 ` Robert Pluim
2021-10-20 11:30 ` Jesse Sheidlower
2021-10-20 12:36 ` Eli Zaretskii
2021-10-20 15:02 ` Robert Pluim
2021-10-20 15:12 ` Lars Ingebrigtsen
2021-10-20 15:20 ` Robert Pluim
2021-10-20 16:22 ` Eli Zaretskii
2021-10-21 2:13 ` Lars Ingebrigtsen
2021-10-21 2:11 ` Lars Ingebrigtsen
2021-10-21 7:40 ` Robert Pluim
2021-10-21 12:59 ` Lars Ingebrigtsen
2021-10-21 15:37 ` Robert Pluim [this message]
2021-10-22 14:27 ` Lars Ingebrigtsen
2021-10-20 12:31 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k0i61j8s.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=51277@debbugs.gnu.org \
--cc=jester@panix.com \
--cc=larsi@gnus.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 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.