all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Robert Pluim <rpluim@gmail.com>
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 14:59:14 +0200	[thread overview]
Message-ID: <877de6h6u5.fsf@gnus.org> (raw)
In-Reply-To: <87wnm625cs.fsf@gmail.com> (Robert Pluim's message of "Thu, 21 Oct 2021 09:40:19 +0200")

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.

Yeah, but surely there must be some other program (other than Emacs)
that actually uses this syntax for specifying fonts?  I thought it was
supposed to be...  "the way"...

> gedit rounds down to the nearest multiple of 100, which equates to >=

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?

Indeed, the Pango round trip through symbols is inherently breakable.  I
mean, the Gtk chooser knows exactly what font I've selected -- but is
there any way to get it to cough up that instead of the Pango weights?

I've looked at the documentation

https://docs.gtk.org/Pango/struct.FontDescription.html

and nothing really jumped out at me.  I mean, in this case, Pango
reports a weight of 330 for book...  but the actual weight in the file is: 

        weight: 53(f)(s)

So after mapping to symbols and back again, we'll never find that font
(because "book" is at 80).

But...  what does (f)(s) mean here?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2021-10-21 12:59 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 [this message]
2021-10-21 15:37                                   ` Robert Pluim
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=877de6h6u5.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=51277@debbugs.gnu.org \
    --cc=jester@panix.com \
    --cc=rpluim@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.