From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#51277: 27.1; menu-set-font not loading correct font Date: Thu, 21 Oct 2021 17:37:55 +0200 Message-ID: <87k0i61j8s.fsf@gmail.com> References: <83a6j5chh9.fsf@gnu.org> <837de9c8hf.fsf@gnu.org> <83y26oc491.fsf@gnu.org> <83v91sc25x.fsf@gnu.org> <87zgr42i78.fsf@gmail.com> <83cznzc1p8.fsf@gnu.org> <87ee8f3fk0.fsf@gmail.com> <87ee8fktxv.fsf@gnus.org> <87wnm625cs.fsf@gmail.com> <877de6h6u5.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10316"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jesse Sheidlower , 51277@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 21 17:48:33 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdaIz-0002Sm-0N for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Oct 2021 17:48:33 +0200 Original-Received: from localhost ([::1]:58270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdaIx-0000vY-UZ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Oct 2021 11:48:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mda9n-0001mF-0d for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2021 11:39:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46841) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mda9m-00011K-ML for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2021 11:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mda9m-0004Me-FT for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2021 11:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Oct 2021 15:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51277 X-GNU-PR-Package: emacs Original-Received: via spool by 51277-submit@debbugs.gnu.org id=B51277.163483068516704 (code B ref 51277); Thu, 21 Oct 2021 15:39:02 +0000 Original-Received: (at 51277) by debbugs.gnu.org; 21 Oct 2021 15:38:05 +0000 Original-Received: from localhost ([127.0.0.1]:58387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mda8r-0004LM-Hi for submit@debbugs.gnu.org; Thu, 21 Oct 2021 11:38:05 -0400 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:39704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mda8o-0004Kp-Np for 51277@debbugs.gnu.org; Thu, 21 Oct 2021 11:38:03 -0400 Original-Received: by mail-wr1-f42.google.com with SMTP id r18so155888wrg.6 for <51277@debbugs.gnu.org>; Thu, 21 Oct 2021 08:38:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=tCUU7FKwglByhaiwyiMDbspMIp7FaAwYUXjKxkbQKqo=; b=mbgNpJdhgq2z/N5zFID84ogl40GB6hnirKRjyrsIqCXEv92YfYdT1tEYntfm5kHn6n 7EFDvhdrr+YpI6tA0sbc0BQQduxmdCKdIh82fP+m0ZIReSFMN3p4mZtv+dr6seiwt7tb 0+AE8868e7guVppRrlRFVVxJYF23FFyrffiI3RLwdolTNHxoWFLjSVqRO8QO7E6PJhTh wNQ1HjZIxQ7CFgqNLcbrtiGVAIqDthCahanvrHLMcFiyfiFK2uSp0GBQLz+gfnT+CgDH W7OE76tflhoyaPKFizXAPYdzKCtr47D+p5Jqz0YaORpJAhUDhy0AJS/lPboqEcMD0s1K 09xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=tCUU7FKwglByhaiwyiMDbspMIp7FaAwYUXjKxkbQKqo=; b=2O8tvlJGFi3IFXbhCBnvhbFJadDkNxBh5Yut5mjdYm3cW7+e5xXTmcwkKSjJ0uTvAn 1rLnmWfaToX89Iu/xqocGg+f74SNotfwRgBVvK0L6auxoIF6P007g1Pxfj1JVk4IN8TI EVo/zYdXMuV3Fiun6yuVI0ygNNx6+WVaOAd+7LdMxjkn2nDK6Yu4s62AFxi2CilzV3RL 0elCfs99aWFBB2qNh3z7FaIbLoG6jOmywBxlQWy0WHLjw9qIiNC6il55bkTLO/KL3xWx uvz8PAYDaciWS6AbJKZksIv+ARculKWWMtwxg9H3kAttKxudeb5UHWgs4qWhOkguejR7 Y3Mw== X-Gm-Message-State: AOAM5336riXoLHh8XMdKuQVtS+T2Nub/xzlcCcuvlJg13TzqQ0lOyIzm Zt0ELjXSbMBgY1q4V5GeVfiry0/P9VE= X-Google-Smtp-Source: ABdhPJwrwKmfzT8IgYUQz0cbAqWa/Ns761pfdS0kX5Hf3t/AGJeylXaE5DU4lsZGyHopAfbjTOESuw== X-Received: by 2002:a5d:524c:: with SMTP id k12mr7950392wrc.88.1634830676597; Thu, 21 Oct 2021 08:37:56 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id w1sm8043457wmc.19.2021.10.21.08.37.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 08:37:56 -0700 (PDT) In-Reply-To: <877de6h6u5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 21 Oct 2021 14:59:14 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217771 Archived-At: >>>>> On Thu, 21 Oct 2021 14:59:14 +0200, Lars Ingebrigtsen said: Lars> Robert Pluim writes: Lars> then I get something that looks very wrong indeed. Anybody know a Lars> program that understands these things? >>=20 >> FC_DEBUG=3D1 xfce4-terminal --font "Operator Mono SSm:weight=3Dbook" >>=20 >> will get you fontconfig debug telling you which actual font is >> used. Lars> Yeah, but surely there must be some other program (other than Ema= cs) Lars> that actually uses this syntax for specifying fonts? I thought i= t was Lars> supposed to be... "the way"... Dunno. Specifying fonts on the command line is apparently pass=C3=A9. >> gedit rounds down to the nearest multiple of 100, which equates to >= =3D Lars> Huh. >> I guess the root cause of all of this is that we=CA=BCre 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 breaka= ble. I Lars> mean, the Gtk chooser knows exactly what font I've selected -- bu= t is Lars> there any way to get it to cough up that instead of the Pango wei= ghts? I don=CA=BCt 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:=20 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 --=20