From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 18 18:08:59 2021 Received: (at submit) by debbugs.gnu.org; 18 Oct 2021 22:08:59 +0000 Received: from localhost ([127.0.0.1]:48788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcaoU-0003iA-Fz for submit@debbugs.gnu.org; Mon, 18 Oct 2021 18:08:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:59300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcaoN-0003hx-To for submit@debbugs.gnu.org; Mon, 18 Oct 2021 18:08:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcaoN-0000lj-KO for bug-gnu-emacs@gnu.org; Mon, 18 Oct 2021 18:08:51 -0400 Received: from mailbackend.panix.com ([166.84.1.89]:44788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcaoL-000242-G3 for bug-gnu-emacs@gnu.org; Mon, 18 Oct 2021 18:08:51 -0400 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 4HY9xr24cyz3rJ0 for ; Mon, 18 Oct 2021 18:08:48 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1634594928; bh=2zcAGtenPlgnVaUfExqMou23ysk96oMtdEtQl7HewU4=; h=Date:From:To:Subject; b=qKvUPn0MIb8Y9J4UKaeK8LRL8WboyvkDwuNXuMQYvuV37hbkaPrBIyFMUtfBkcu8h wYZI3z3mmor3fthIcpfskKxwFXT79bYlSe2TFAQSO3bk1GEXESOc+8GrCkqls+ctux DQSoCc9NWH9AlwBFrYKOLOJfaZqMu1x6tq4mjbfc= Received: by panix2.panix.com (Postfix, from userid 834) id 4HY9xr2w6rz1ZTX; Mon, 18 Oct 2021 18:08:48 -0400 (EDT) Date: Mon, 18 Oct 2021 18:08:48 -0400 From: Jesse Sheidlower To: bug-gnu-emacs@gnu.org Subject: 27.1; menu-set-font not loading correct font Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=166.84.1.89; envelope-from=jester@panix.com; helo=mailbackend.panix.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --text follows this line-- menu-set-font is not loading the correct file that corresponds to the font I choose. recipe: --- emacs -Q M-x menu-set-font [navigate the menu to choose 'Operator Mono SSm Book'; the font then changes to a bold font, not to Operator Mono SSm Book] M-x describe-font [The "name" and "full name" fields show that I have selected a 'normal' font; however, the "file name" field shows that Emacs has loaded OperatorMonoSSm-Bold.otf, i.e. the "bold" version, even though the "book" version is available on the system and was in fact rendered correctly in the menu displayed by menu-set-font.] --- There is a description of this bug, with pictures of the process, at https://www.reddit.com/r/emacs/comments/kykma4/menusetfont_not_loading_correct_font/ Another user reported the same problem. In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-27, modified by Debian built on x86-conova-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-cairo --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -ffile-prefix-map=/build/emacs-LlFm6W/emacs-27.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 45158 9171) (symbols 48 6002 1) (strings 32 15472 2198) (string-bytes 1 503918) (vectors 16 10083) (vector-slots 8 129779 11566) (floats 8 20 45) (intervals 56 255 0) (buffers 1000 12)) From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 19 07:08:59 2021 Received: (at 51277) by debbugs.gnu.org; 19 Oct 2021 11:08:59 +0000 Received: from localhost ([127.0.0.1]:49621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcmzL-0001PR-0Z for submit@debbugs.gnu.org; Tue, 19 Oct 2021 07:08:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcmzI-0001PB-LN for 51277@debbugs.gnu.org; Tue, 19 Oct 2021 07:08:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49262) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcmzD-00041u-CJ; Tue, 19 Oct 2021 07:08:51 -0400 Received: from [87.69.77.57] (port=4407 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcmzC-00025X-V9; Tue, 19 Oct 2021 07:08:51 -0400 Date: Tue, 19 Oct 2021 14:08:59 +0300 Message-Id: <83v91tclv8.fsf@gnu.org> From: Eli Zaretskii To: Jesse Sheidlower In-Reply-To: (message from Jesse Sheidlower on Mon, 18 Oct 2021 18:08:48 -0400) Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51277 Cc: 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Mon, 18 Oct 2021 18:08:48 -0400 > From: Jesse Sheidlower > > emacs -Q > > M-x menu-set-font > > [navigate the menu to choose 'Operator Mono SSm Book'; the font then > changes to a bold font, not to Operator Mono SSm Book] > > M-x describe-font > > [The "name" and "full name" fields show that I have selected a 'normal' > font; however, the "file name" field shows that Emacs has loaded > OperatorMonoSSm-Bold.otf, i.e. the "bold" version, even though the > "book" version is available on the system and was in fact rendered > correctly in the menu displayed by menu-set-font.] What happens if you invoke Emacs like this: emacs -Q -fn 'Operator Mono SSm' and then type this: M-x (set-face-attribute 'default nil :weight 'book) RET Does that produce the expected effect? > There is a description of this bug, with pictures of the process, at > https://www.reddit.com/r/emacs/comments/kykma4/menusetfont_not_loading_correct_font/ > > Another user reported the same problem. Sounds like some problem with that font. Does this work correctly with other fonts that have the "book" variant? From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 19 08:43:46 2021 Received: (at 51277) by debbugs.gnu.org; 19 Oct 2021 12:43:46 +0000 Received: from localhost ([127.0.0.1]:49806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcoT4-0005vG-BY for submit@debbugs.gnu.org; Tue, 19 Oct 2021 08:43:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcoT2-0005v1-2A for 51277@debbugs.gnu.org; Tue, 19 Oct 2021 08:43:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52402) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcoSw-00028q-Cv; Tue, 19 Oct 2021 08:43:38 -0400 Received: from [87.69.77.57] (port=2317 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcoSv-0002uz-RE; Tue, 19 Oct 2021 08:43:38 -0400 Date: Tue, 19 Oct 2021 15:43:46 +0300 Message-Id: <83a6j5chh9.fsf@gnu.org> From: Eli Zaretskii To: Jesse Sheidlower In-Reply-To: (message from Jesse Sheidlower on Tue, 19 Oct 2021 08:20:38 -0400) Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font References: <83v91tclv8.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51277 Cc: 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [Please use Reply All to reply, so that the discussion gets recorded on the bug tracker.] > Date: Tue, 19 Oct 2021 08:20:38 -0400 > From: Jesse Sheidlower > > > What happens if you invoke Emacs like this: > > > > emacs -Q -fn 'Operator Mono SSm' > > > > and then type this: > > > > M-x (set-face-attribute 'default nil :weight 'book) RET > > > > Does that produce the expected effect? > > Depends on what I should expect! You should expect to see the "book" variant of the font. Isn't that what you wanted? > At the first command, Emacs starts with the bold variant; running the second command returns '[No match]', and we stay in the bold variant. Sorry, I meant to say "M-:" instead of "M-x". It was a typo. > > Sounds like some problem with that font. Does this work correctly > > with other fonts that have the "book" variant? > > No, it doesn't, but the only other font I have with a "book" variant happens to be from the same foundry. Hoefler Decimal Book in fact opens the file for Decimal-XBlack, even though there is a file for Decimal-Book. > > I did ask someone at Hoefler Type Foundry about this, and they said they weren't aware of anything that could be causing it. Then I suggest to try with some other fonts. > I don't know how Emacs does this under the hood No one does, unfortunately. > but the fact that menu-set-font does correctly display all the variants with their correct names, but then loads something different, suggested that there might be a problem with Emacs (which is why I filed a bug report, instead of just assuming that I'm the one fucking something up). No, that doesn't necessarily mean anything. the font selection dialog is something implemented in GTK, I believe, and it just shows the fonts that GTK knows about. When Emacs tries to use that font, it could find some problems with it, and that could lead to what you see. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 19 09:08:23 2021 Received: (at 51277) by debbugs.gnu.org; 19 Oct 2021 13:08:23 +0000 Received: from localhost ([127.0.0.1]:49848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcoqs-0006ZS-Rp for submit@debbugs.gnu.org; Tue, 19 Oct 2021 09:08:23 -0400 Received: from mailbackend.panix.com ([166.84.1.89]:58083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcoqq-0006ZK-R8 for 51277@debbugs.gnu.org; Tue, 19 Oct 2021 09:08:21 -0400 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 4HYYvm4Btqz4PJB; Tue, 19 Oct 2021 09:08:20 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1634648900; bh=9hrDZLB4CZkxMQqg5BQvKjktcIGJEIzXw888iOXB2kg=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=c40+D6heoLDzAhD9nUAxU+ksLw/CS2Ykm3EsEqBDig/RrBKgkIU7F5udag0H+w8/A BiwC0HXkYf7jFnO6SF+QQxHIqkmU036SGQTtZE/N06aNU57oa8UZw6Lbzp3HY2Bgl6 ds9ocIm7EWBu5szM5BWAkFIrTayeF0s6UUE6hnc0= Received: by panix2.panix.com (Postfix, from userid 834) id 4HYYvm54rLz1ZVd; Tue, 19 Oct 2021 09:08:20 -0400 (EDT) Date: Tue, 19 Oct 2021 09:08:20 -0400 From: Jesse Sheidlower To: Eli Zaretskii Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font Message-ID: References: <83v91tclv8.fsf@gnu.org> <83a6j5chh9.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83a6j5chh9.fsf@gnu.org> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51277 Cc: 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Tue, Oct 19, 2021 at 03:43:46PM +0300, Eli Zaretskii wrote: > [Please use Reply All to reply, so that the discussion gets recorded > on the bug tracker.] Sorry about that. > > Date: Tue, 19 Oct 2021 08:20:38 -0400 > > From: Jesse Sheidlower > > > > > What happens if you invoke Emacs like this: > > > > > > emacs -Q -fn 'Operator Mono SSm' > > > > > > and then type this: > > > > > > M-x (set-face-attribute 'default nil :weight 'book) RET > > > > > > Does that produce the expected effect? > > > > Depends on what I should expect! > > You should expect to see the "book" variant of the font. Isn't that > what you wanted? Yes, and forgive me for a poor attempt at humor--I was joking about whether I should expect it to be broken in the same way the original was. > > At the first command, Emacs starts with the bold variant; running the second command returns '[No match]', and we stay in the bold variant. > > Sorry, I meant to say "M-:" instead of "M-x". It was a typo. OK, in this case, yes, it produces the, um, desired effect: Emacs displays with the "Book", rather than the "Bold", version of that font. > > > Sounds like some problem with that font. Does this work correctly > > > with other fonts that have the "book" variant? > > > > No, it doesn't, but the only other font I have with a "book" variant happens to be from the same foundry. Hoefler Decimal Book in fact opens the file for Decimal-XBlack, even though there is a file for Decimal-Book. > > > > I did ask someone at Hoefler Type Foundry about this, and they said they weren't aware of anything that could be causing it. > > Then I suggest to try with some other fonts. Yes, it works correctly with certain other fonts. For example, DejaVu Sans Mono Book is correctly displayed by menu-set-font and correctly loaded by Emacs. I do note that the filename of the "Book" variant of DejaVu Sans Mono does not contain the word "Book"; the filename is simply DejaVuSans.ttf. I don't know if that's relevant. > > I don't know how Emacs does this under the hood > > No one does, unfortunately. > > > but the fact that menu-set-font does correctly display all the variants with their correct names, but then loads something different, suggested that there might be a problem with Emacs (which is why I filed a bug report, instead of just assuming that I'm the one fucking something up). > > No, that doesn't necessarily mean anything. the font selection dialog > is something implemented in GTK, I believe, and it just shows the > fonts that GTK knows about. When Emacs tries to use that font, it > could find some problems with it, and that could lead to what you see. Huh, OK. Given that the recipe "emacs -Q -fn 'Operator Mono SSm'" followed by "M-: (set-face-attribute 'default nil :weight 'book) RET" does produce the desired result, does that tell us anything useful about what's going on, to either fix Emacs or to communicate something with Hoefler about fixing their font? Thank you. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 19 11:58:03 2021 Received: (at 51277) by debbugs.gnu.org; 19 Oct 2021 15:58:03 +0000 Received: from localhost ([127.0.0.1]:51708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcrV4-0004pY-QJ for submit@debbugs.gnu.org; Tue, 19 Oct 2021 11:58:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcrV3-0004oy-Jr for 51277@debbugs.gnu.org; Tue, 19 Oct 2021 11:58:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57432) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcrUy-0004zF-84; Tue, 19 Oct 2021 11:57:56 -0400 Received: from [87.69.77.57] (port=2449 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcrUw-0006bw-BY; Tue, 19 Oct 2021 11:57:56 -0400 Date: Tue, 19 Oct 2021 18:58:04 +0300 Message-Id: <837de9c8hf.fsf@gnu.org> From: Eli Zaretskii To: Jesse Sheidlower In-Reply-To: (message from Jesse Sheidlower on Tue, 19 Oct 2021 09:08:20 -0400) Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font References: <83v91tclv8.fsf@gnu.org> <83a6j5chh9.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51277 Cc: 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 19 Oct 2021 09:08:20 -0400 > From: Jesse Sheidlower > Cc: 51277@debbugs.gnu.org > > > Sorry, I meant to say "M-:" instead of "M-x". It was a typo. > > OK, in this case, yes, it produces the, um, desired effect: Emacs > displays with the "Book", rather than the "Bold", version of that font. OK, so at least you have a workaround for this strange problem. > Yes, it works correctly with certain other fonts. For example, DejaVu > Sans Mono Book is correctly displayed by menu-set-font and correctly > loaded by Emacs. > > I do note that the filename of the "Book" variant of DejaVu Sans Mono > does not contain the word "Book"; the filename is simply DejaVuSans.ttf. > I don't know if that's relevant. I don't think it is, no. > Given that the recipe "emacs -Q -fn 'Operator Mono SSm'" followed by > "M-: (set-face-attribute 'default nil :weight 'book) RET" does produce > the desired result, does that tell us anything useful about what's going > on, to either fix Emacs or to communicate something with Hoefler about > fixing their font? It puzzles me, I expected that set-face-attribute won't work as well. Now I don't know what to think. Hmm... maybe the font processing log will give a clue? In "emacs -Q", do M-: (setq font-log nil) RET then repeat the recipe with selecting that problematic font, and after that go to *scratch* and type (pp font-log) C-j where C-j should be typed with cursor after the closing paren of "(pp font-log)". Then post the result here. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 19 12:47:43 2021 Received: (at 51277) by debbugs.gnu.org; 19 Oct 2021 16:47:43 +0000 Received: from localhost ([127.0.0.1]:51832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcsH8-0006Gb-18 for submit@debbugs.gnu.org; Tue, 19 Oct 2021 12:47:43 -0400 Received: from mailbackend.panix.com ([166.84.1.89]:33471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcsH6-0006GK-4d for 51277@debbugs.gnu.org; Tue, 19 Oct 2021 12:47:41 -0400 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 4HYfmq5mDbz2p7b; Tue, 19 Oct 2021 12:47:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1634662059; bh=E3i2u/XAT4O5JiiKABwE8UV3QYQRl5SylNeWE0B24Io=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=onpTv6/DF2usuSzrOFhyDPx86H+xdSehGfXGHhco1mkmt1cAnZRiqgKZ60njUk1WY y2jbduIR86fLVxkt9cGJrdPAnhDiVrdREJJaMMMkhrjLPbIvIYha4YzqO4XXqfXgdR 9iUq/+ozGPOjRs7bvQGA901ye+nOmMIoxjoiCbBo= Received: by panix2.panix.com (Postfix, from userid 834) id 4HYfmr01yVz1ZVd; Tue, 19 Oct 2021 12:47:39 -0400 (EDT) Date: Tue, 19 Oct 2021 12:47:39 -0400 From: Jesse Sheidlower To: Eli Zaretskii Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font Message-ID: References: <83v91tclv8.fsf@gnu.org> <83a6j5chh9.fsf@gnu.org> <837de9c8hf.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <837de9c8hf.fsf@gnu.org> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51277 Cc: 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Tue, Oct 19, 2021 at 06:58:04PM +0300, Eli Zaretskii wrote: > > > Given that the recipe "emacs -Q -fn 'Operator Mono SSm'" followed by > > "M-: (set-face-attribute 'default nil :weight 'book) RET" does produce > > the desired result, does that tell us anything useful about what's going > > on, to either fix Emacs or to communicate something with Hoefler about > > fixing their font? > > It puzzles me, I expected that set-face-attribute won't work as well. > Now I don't know what to think. Hmm... maybe the font processing log > will give a clue? In "emacs -Q", do > > M-: (setq font-log nil) RET > > then repeat the recipe with selecting that problematic font, and after > that go to *scratch* and type > > (pp font-log) C-j > > where C-j should be typed with cursor after the closing paren of > "(pp font-log)". Then post the result here. OK, just to clarify, I ran this command immediately after selecting the "Book" font from menu-set-font, and incorrectly getting the bold font. I did not then run the set-face-attribute command discussed above. The result was: (pp font-log) ((sort-by "-*-bold-normal-normal-*-22-*" "ftcrhb:-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1") (list "-H&Co-Operator Mono SSm-*-iso8859-1" ["-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-italic-normal-*-m-0-iso10646-1"]) (xfont-list "-H&Co-Operator Mono SSm-*-*-*-*-*-*-*-*-*-*-iso8859-1" nil) (open "-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1" "ftcrhb:-H&Co-Operator Mono SSm-normal-normal-normal-*-22-*-m-0-iso10646-1") (sort-by "-*-bold-normal-normal-*-22-*" "ftcrhb:-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1") (list "-H&Co-Operator Mono SSm-*-iso8859-1" ["-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-italic-normal-*-m-0-iso10646-1"]) (sort-by "-*-normal-normal-normal-*-20-*" "ftcrhb:-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1") (list "-*-Sans Serif-*-iso8859-1" ["-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-normal-oblique-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-bold-normal-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-bold-oblique-normal-*-0-iso10646-1"]) (list "-H&Co-Sans Serif-*-ascii-0" nil) (list "-H&Co-Sans Serif-*-iso8859-1" nil) (sort-by "-*-normal-normal-normal-*-22-*" "ftcrhb:-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1") (list "-*-Sans Serif-*-iso8859-1" ["-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-normal-oblique-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-bold-normal-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-bold-oblique-normal-*-0-iso10646-1"]) (list "-H&Co-Sans Serif-*-ascii-0" nil) (list "-H&Co-Sans Serif-*-iso8859-1" nil) (sort-by "-*-light-normal-normal-*-22-*" "ftcrhb:-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1") (list "-H&Co-Operator Mono SSm-*-iso8859-1" ["-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-italic-normal-*-m-0-iso10646-1"]) (open "-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1" "ftcrhb:-Bits-Bitstream Vera Sans-normal-normal-normal-*-20-*-0-iso10646-1") (sort-by "-*-normal-normal-normal-*-20-*" "ftcrhb:-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1") (list "-*-Sans Serif-*-iso8859-1" ["-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-normal-oblique-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-bold-normal-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-bold-oblique-normal-*-0-iso10646-1"]) (list "-H&Co-Sans Serif-*-ascii-0" nil) (list "-H&Co-Sans Serif-*-iso8859-1" nil) (open "-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1" "ftcrhb:-Bits-Bitstream Vera Sans-normal-normal-normal-*-22-*-0-iso10646-1") (sort-by "-*-normal-normal-normal-*-22-*" "ftcrhb:-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1") (list "-*-Sans Serif-*-iso8859-1" ["-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-normal-oblique-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-bold-normal-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-bold-oblique-normal-*-0-iso10646-1"]) (xfont-list "-*-Sans Serif-*-*-*-*-*-*-*-*-*-*-iso8859-1" nil) (ftfont-list "-*-Sans Serif-*-iso8859-1" ("-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-normal-oblique-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-bold-normal-normal-*-0-iso10646-1" "-Bits-Bitstream Vera Sans-bold-oblique-normal-*-0-iso10646-1")) (list "-H&Co-Sans Serif-*-ascii-0" nil) (xfont-list "-H&Co-Sans Serif-*-*-*-*-*-*-*-*-*-*-ascii-0" nil) (ftfont-list "-H&Co-Sans Serif-*-ascii-0" nil) (list "-H&Co-Sans Serif-*-iso8859-1" nil) (xfont-list "-H&Co-Sans Serif-*-*-*-*-*-*-*-*-*-*-iso8859-1" nil) (ftfont-list "-H&Co-Sans Serif-*-iso8859-1" nil) (open "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "ftcrhb:-H&Co-Operator Mono SSm-light-normal-normal-*-22-*-m-0-iso10646-1") (sort-by "-*-light-normal-normal-*-22-*" "ftcrhb:-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1") (list "-H&Co-Operator Mono SSm-*-iso8859-1" ["-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-italic-normal-*-m-0-iso10646-1"]) (xfont-list "-H&Co-Operator Mono SSm-*-*-*-*-*-*-*-*-*-*-iso8859-1" nil) (ftfont-list "-H&Co-Operator Mono SSm-*-iso8859-1" ("-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-italic-normal-*-m-0-iso10646-1")) (open "-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1" "ftcrhb:-H&Co-Operator Mono SSm-normal-normal-normal-*-22-*-m-0-iso10646-1") (list "-*-Operator Mono SSm-normal-normal-*-iso8859-1" ["-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1"]) (xfont-list "-*-Operator Mono SSm-*-*-*-*-*-*-*-*-*-*-iso8859-1" nil) (ftfont-list "-*-Operator Mono SSm-*-iso8859-1" ("-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-italic-normal-*-m-0-iso10646-1")) (list "-Bits-Operator Mono SSm-normal-normal-*-ascii-0" nil) (xfont-list "-Bits-Operator Mono SSm-*-*-*-*-*-*-*-*-*-*-ascii-0" nil) (ftfont-list "-Bits-Operator Mono SSm-*-ascii-0" nil) (list "-Bits-Operator Mono SSm-normal-normal-*-iso8859-1" nil) (xfont-list "-Bits-Operator Mono SSm-*-*-*-*-*-*-*-*-*-*-iso8859-1" nil) (ftfont-list "-Bits-Operator Mono SSm-*-iso8859-1" nil)) "((sort-by \"-*-bold-normal-normal-*-22-*\" \"ftcrhb:-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1\") (list \"-H&Co-Operator Mono SSm-*-iso8859-1\" [\"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-normal-italic-normal-*-m-0-iso10646-1\"]) (xfont-list \"-H&Co-Operator Mono SSm-*-*-*-*-*-*-*-*-*-*-iso8859-1\" nil) (open \"-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1\" \"ftcrhb:-H&Co-Operator Mono SSm-normal-normal-normal-*-22-*-m-0-iso10646-1\") (sort-by \"-*-bold-normal-normal-*-22-*\" \"ftcrhb:-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1\") (list \"-H&Co-Operator Mono SSm-*-iso8859-1\" [\"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-normal-italic-normal-*-m-0-iso10646-1\"]) (sort-by \"-*-normal-normal-normal-*-20-*\" \"ftcrhb:-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1\") (list \"-*-Sans Serif-*-iso8859-1\" [\"-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-normal-oblique-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-bold-normal-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-bold-oblique-normal-*-0-iso10646-1\"]) (list \"-H&Co-Sans Serif-*-ascii-0\" nil) (list \"-H&Co-Sans Serif-*-iso8859-1\" nil) (sort-by \"-*-normal-normal-normal-*-22-*\" \"ftcrhb:-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1\") (list \"-*-Sans Serif-*-iso8859-1\" [\"-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-normal-oblique-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-bold-normal-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-bold-oblique-normal-*-0-iso10646-1\"]) (list \"-H&Co-Sans Serif-*-ascii-0\" nil) (list \"-H&Co-Sans Serif-*-iso8859-1\" nil) (sort-by \"-*-light-normal-normal-*-22-*\" \"ftcrhb:-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\") (list \"-H&Co-Operator Mono SSm-*-iso8859-1\" [\"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-normal-italic-normal-*-m-0-iso10646-1\"]) (open \"-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1\" \"ftcrhb:-Bits-Bitstream Vera Sans-normal-normal-normal-*-20-*-0-iso10646-1\") (sort-by \"-*-normal-normal-normal-*-20-*\" \"ftcrhb:-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1\") (list \"-*-Sans Serif-*-iso8859-1\" [\"-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-normal-oblique-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-bold-normal-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-bold-oblique-normal-*-0-iso10646-1\"]) (list \"-H&Co-Sans Serif-*-ascii-0\" nil) (list \"-H&Co-Sans Serif-*-iso8859-1\" nil) (open \"-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1\" \"ftcrhb:-Bits-Bitstream Vera Sans-normal-normal-normal-*-22-*-0-iso10646-1\") (sort-by \"-*-normal-normal-normal-*-22-*\" \"ftcrhb:-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1\") (list \"-*-Sans Serif-*-iso8859-1\" [\"-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-normal-oblique-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-bold-normal-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-bold-oblique-normal-*-0-iso10646-1\"]) (xfont-list \"-*-Sans Serif-*-*-*-*-*-*-*-*-*-*-iso8859-1\" nil) (ftfont-list \"-*-Sans Serif-*-iso8859-1\" (\"-Bits-Bitstream Vera Sans-normal-normal-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-normal-oblique-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-bold-normal-normal-*-0-iso10646-1\" \"-Bits-Bitstream Vera Sans-bold-oblique-normal-*-0-iso10646-1\")) (list \"-H&Co-Sans Serif-*-ascii-0\" nil) (xfont-list \"-H&Co-Sans Serif-*-*-*-*-*-*-*-*-*-*-ascii-0\" nil) (ftfont-list \"-H&Co-Sans Serif-*-ascii-0\" nil) (list \"-H&Co-Sans Serif-*-iso8859-1\" nil) (xfont-list \"-H&Co-Sans Serif-*-*-*-*-*-*-*-*-*-*-iso8859-1\" nil) (ftfont-list \"-H&Co-Sans Serif-*-iso8859-1\" nil) (open \"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"ftcrhb:-H&Co-Operator Mono SSm-light-normal-normal-*-22-*-m-0-iso10646-1\") (sort-by \"-*-light-normal-normal-*-22-*\" \"ftcrhb:-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\") (list \"-H&Co-Operator Mono SSm-*-iso8859-1\" [\"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-normal-italic-normal-*-m-0-iso10646-1\"]) (xfont-list \"-H&Co-Operator Mono SSm-*-*-*-*-*-*-*-*-*-*-iso8859-1\" nil) (ftfont-list \"-H&Co-Operator Mono SSm-*-iso8859-1\" (\"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-normal-italic-normal-*-m-0-iso10646-1\")) (open \"-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1\" \"ftcrhb:-H&Co-Operator Mono SSm-normal-normal-normal-*-22-*-m-0-iso10646-1\") (list \"-*-Operator Mono SSm-normal-normal-*-iso8859-1\" [\"-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1\"]) (xfont-list \"-*-Operator Mono SSm-*-*-*-*-*-*-*-*-*-*-iso8859-1\" nil) (ftfont-list \"-*-Operator Mono SSm-*-iso8859-1\" (\"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1\" \"-H&Co-Operator Mono SSm-normal-italic-normal-*-m-0-iso10646-1\")) (list \"-Bits-Operator Mono SSm-normal-normal-*-ascii-0\" nil) (xfont-list \"-Bits-Operator Mono SSm-*-*-*-*-*-*-*-*-*-*-ascii-0\" nil) (ftfont-list \"-Bits-Operator Mono SSm-*-ascii-0\" nil) (list \"-Bits-Operator Mono SSm-normal-normal-*-iso8859-1\" nil) (xfont-list \"-Bits-Operator Mono SSm-*-*-*-*-*-*-*-*-*-*-iso8859-1\" nil) (ftfont-list \"-Bits-Operator Mono SSm-*-iso8859-1\" nil)) " From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 19 13:29:46 2021 Received: (at 51277) by debbugs.gnu.org; 19 Oct 2021 17:29:46 +0000 Received: from localhost ([127.0.0.1]:51887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcsvp-0007Hz-HJ for submit@debbugs.gnu.org; Tue, 19 Oct 2021 13:29:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcsvZ-0007HK-Gm for 51277@debbugs.gnu.org; Tue, 19 Oct 2021 13:29:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60652) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcsvT-0005Xf-JV; Tue, 19 Oct 2021 13:29:23 -0400 Received: from [87.69.77.57] (port=4160 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcsvT-0000dE-4T; Tue, 19 Oct 2021 13:29:23 -0400 Date: Tue, 19 Oct 2021 20:29:30 +0300 Message-Id: <83y26oc491.fsf@gnu.org> From: Eli Zaretskii To: Jesse Sheidlower In-Reply-To: (message from Jesse Sheidlower on Tue, 19 Oct 2021 12:47:39 -0400) Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font References: <83v91tclv8.fsf@gnu.org> <83a6j5chh9.fsf@gnu.org> <837de9c8hf.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51277 Cc: 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 19 Oct 2021 12:47:39 -0400 > From: Jesse Sheidlower > Cc: 51277@debbugs.gnu.org > > > (pp font-log) C-j > > > > where C-j should be typed with cursor after the closing paren of > > "(pp font-log)". Then post the result here. > > OK, just to clarify, I ran this command immediately after selecting the "Book" font from menu-set-font, and incorrectly getting the bold font. I did not then run the set-face-attribute command discussed above. The result was: > > > (pp font-log) > ((sort-by "-*-bold-normal-normal-*-22-*" "ftcrhb:-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1") > (list "-H&Co-Operator Mono SSm-*-iso8859-1" > ["-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-italic-normal-*-m-0-iso10646-1"]) Thanks, the only thing I find strange here is that Emacs never tries to look for "book" font, nor even under one of its aliases. Another thing I see is that you have 3 active font backends: xfont, ftfont, and fcrhb. Maybe that has something to do with the issue... From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 19 14:08:47 2021 Received: (at 51277) by debbugs.gnu.org; 19 Oct 2021 18:08:47 +0000 Received: from localhost ([127.0.0.1]:51932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mctXb-0008IW-4j for submit@debbugs.gnu.org; Tue, 19 Oct 2021 14:08:47 -0400 Received: from mailbackend.panix.com ([166.84.1.89]:10770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mctXY-0008IN-6z for 51277@debbugs.gnu.org; Tue, 19 Oct 2021 14:08:45 -0400 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 4HYhZM66jjz2wF7; Tue, 19 Oct 2021 14:08:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1634666923; bh=yhMcszkudSrhHZ4eg7N7rmfXJuUKKDQFiHJ3X5Rum/8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=eDMMVQGGlVkvBhLuqVt0qcV7OeyRBgWWFOZTk+ggZoqaQUh3C3J44PR+7keE8HTgb pOFagzFEDes9KOEgSzWBLAoFr8PHWiU1IbE4iMLNXyhiT3d/oPkrXB52FPzQNFuK1I /D3BlJRox++rcGcjuLSiTKPBCgJeA1M8zm1U2eFQ= Received: by panix2.panix.com (Postfix, from userid 834) id 4HYhZM6NM2z1ZVd; Tue, 19 Oct 2021 14:08:43 -0400 (EDT) Date: Tue, 19 Oct 2021 14:08:43 -0400 From: Jesse Sheidlower To: Eli Zaretskii Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font Message-ID: References: <83v91tclv8.fsf@gnu.org> <83a6j5chh9.fsf@gnu.org> <837de9c8hf.fsf@gnu.org> <83y26oc491.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83y26oc491.fsf@gnu.org> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51277 Cc: 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Tue, Oct 19, 2021 at 08:29:30PM +0300, Eli Zaretskii wrote: > > Date: Tue, 19 Oct 2021 12:47:39 -0400 > > From: Jesse Sheidlower > > Cc: 51277@debbugs.gnu.org > > > > > (pp font-log) C-j > > > > > > where C-j should be typed with cursor after the closing paren of > > > "(pp font-log)". Then post the result here. > > > > OK, just to clarify, I ran this command immediately after selecting the "Book" font from menu-set-font, and incorrectly getting the bold font. I did not then run the set-face-attribute command discussed above. The result was: > > > > > > (pp font-log) > > ((sort-by "-*-bold-normal-normal-*-22-*" "ftcrhb:-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1") > > (list "-H&Co-Operator Mono SSm-*-iso8859-1" > > ["-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-italic-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-light-normal-normal-*-m-0-iso10646-1" "-H&Co-Operator Mono SSm-normal-italic-normal-*-m-0-iso10646-1"]) > > Thanks, the only thing I find strange here is that Emacs never tries > to look for "book" font, nor even under one of its aliases. > > Another thing I see is that you have 3 active font backends: xfont, > ftfont, and fcrhb. Maybe that has something to do with the issue... Is there a "best" one to use? And what's the correct sequence to test this in our current framework? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 19 14:14:42 2021 Received: (at 51277) by debbugs.gnu.org; 19 Oct 2021 18:14:42 +0000 Received: from localhost ([127.0.0.1]:51946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mctdK-0008RJ-7E for submit@debbugs.gnu.org; Tue, 19 Oct 2021 14:14:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mctd9-0008Qg-9d for 51277@debbugs.gnu.org; Tue, 19 Oct 2021 14:14:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34518) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mctd4-0006ZK-2I; Tue, 19 Oct 2021 14:14:26 -0400 Received: from [87.69.77.57] (port=2946 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mctd3-0001CP-Fq; Tue, 19 Oct 2021 14:14:25 -0400 Date: Tue, 19 Oct 2021 21:14:34 +0300 Message-Id: <83v91sc25x.fsf@gnu.org> From: Eli Zaretskii To: Jesse Sheidlower In-Reply-To: (message from Jesse Sheidlower on Tue, 19 Oct 2021 14:08:43 -0400) Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font References: <83v91tclv8.fsf@gnu.org> <83a6j5chh9.fsf@gnu.org> <837de9c8hf.fsf@gnu.org> <83y26oc491.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51277 Cc: 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 19 Oct 2021 14:08:43 -0400 > From: Jesse Sheidlower > Cc: 51277@debbugs.gnu.org > > > Another thing I see is that you have 3 active font backends: xfont, > > ftfont, and fcrhb. Maybe that has something to do with the issue... > > Is there a "best" one to use? That'd be fcrhb. > And what's the correct sequence to test this in our current framework? What would you like to test? From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 19 14:17:03 2021 Received: (at 51277) by debbugs.gnu.org; 19 Oct 2021 18:17:03 +0000 Received: from localhost ([127.0.0.1]:51961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mctfb-0001ju-6H for submit@debbugs.gnu.org; Tue, 19 Oct 2021 14:17:03 -0400 Received: from mailbackend.panix.com ([166.84.1.89]:14254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mctfZ-0001iF-LD for 51277@debbugs.gnu.org; Tue, 19 Oct 2021 14:17:02 -0400 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 4HYhlx2JsQz2wvf; Tue, 19 Oct 2021 14:17:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1634667421; bh=THrYyWNUHOS6j0FKA1HC2G3Y4cF3sejqX+qHgbEkako=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=uhaQWrw2IfvfL+v/D8wpA5Ml8WkjHduzjWu0nKDl3N5CqqtPLHPiDV8uI8IWkKQSC reSsL+QIfZx/YmVBVrv0H+27U9wEZWxaSFgOt5o4uqi/6GglxmRUZWtlaNpkf6hQct n5zINRw7y6Fsm+5Na0rcdnBNIhyHI54PvRzz8sjc= Received: by panix2.panix.com (Postfix, from userid 834) id 4HYhlx4DYyz1ZVd; Tue, 19 Oct 2021 14:17:01 -0400 (EDT) Date: Tue, 19 Oct 2021 14:17:01 -0400 From: Jesse Sheidlower To: Eli Zaretskii Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font Message-ID: References: <83v91tclv8.fsf@gnu.org> <83a6j5chh9.fsf@gnu.org> <837de9c8hf.fsf@gnu.org> <83y26oc491.fsf@gnu.org> <83v91sc25x.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83v91sc25x.fsf@gnu.org> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51277 Cc: 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Tue, Oct 19, 2021 at 09:14:34PM +0300, Eli Zaretskii wrote: > > Date: Tue, 19 Oct 2021 14:08:43 -0400 > > From: Jesse Sheidlower > > Cc: 51277@debbugs.gnu.org > > > > > Another thing I see is that you have 3 active font backends: xfont, > > > ftfont, and fcrhb. Maybe that has something to do with the issue... > > > > Is there a "best" one to use? > > That'd be fcrhb. > > > And what's the correct sequence to test this in our current framework? > > What would you like to test? Whether using a single font backend will allow Emacs to find the font I'm trying to select. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 04:50:44 2021 Received: (at 51277) by debbugs.gnu.org; 20 Oct 2021 08:50:44 +0000 Received: from localhost ([127.0.0.1]:52694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1md7J6-0003w8-9O for submit@debbugs.gnu.org; Wed, 20 Oct 2021 04:50:44 -0400 Received: from mail-wm1-f51.google.com ([209.85.128.51]:35790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1md7J5-0003vw-3O for 51277@debbugs.gnu.org; Wed, 20 Oct 2021 04:50:43 -0400 Received: by mail-wm1-f51.google.com with SMTP id n40-20020a05600c3ba800b0030da2439b21so9449707wms.0 for <51277@debbugs.gnu.org>; Wed, 20 Oct 2021 01:50:42 -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=SBPoD/MHF2a+6BsELhznhyNGsfsdc//I+68Fww3IRVE=; b=lvXm3pwDCqJrBENkbKKCNSWb6/zYdvxt9r8uYhKS8C0C17G9LbQv1Q8X9VrilOIewe TEBIHIZn9AVAU5DOmt53MatSf/CBXyVgtCAkjKUtqE1KH1NtTGZMp7EbM/9Tz60k7gpD +zff+d6oOhohLjJbezd+kAe47Wv27ive7lJUQvnRxWox7JgkUdGL9k2ZPSd4BiPfIqnJ ScJxYPDhh6H/pkCAQ27C2RfyTv98ylHOiDXfBTn3/wpbRFB4GnByYljSyEf9E2fiLOt2 y5nmzFcnfVdw9Q2Xt+R3e/f7e4tDKkDJ7ebxdMi6DUCCcZSKE85mqoyg/bsSSvHzH4rZ KQbw== 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=SBPoD/MHF2a+6BsELhznhyNGsfsdc//I+68Fww3IRVE=; b=BU8X4cnw0dZRlM6ujpKeMjd87X2Jz8Cyj7CHrgioBXQPUAEUpdE/oBPGd16K9aStly ui/seLaCegMffE9yC+7p1f4PiQuoPlREUNnQxw/SyAeSZyMLEzHMP+YSIiqOUyr5mDYQ WegPmjCgEZuxdUjT7boL0hm92vHXwKBUQY8X0oI0A12YmfN4kryJjKNKpUD71fv18ldW KPE3vtw+CpqC+2zgqtR60++uIZ/de7mJn8oLnmUMMKZXma629aOp2aJQ3emmpX4nqNkA iUs1AUTsyhGxscZAsf4gu7eQ0pG8Dr6AZa9Y6jqoSkpTxa0GDSZZctMOOh0FX+VvvbwN koOQ== X-Gm-Message-State: AOAM5307t7iIYxmRnYsOw/4Feg1PNTwhykutboVVtcUG1aREnZn3Hbbt W6Jm/YdWz/QHaFcvqtGpEL6h7p5KcrI= X-Google-Smtp-Source: ABdhPJwF6XwBVtBhBEzI2EKY29yVx8FvvRjVAj46rdEy47sG6WxlZvX0SytD1dQm0L8xQPLsdhSrGA== X-Received: by 2002:a1c:2282:: with SMTP id i124mr11520346wmi.164.1634719836752; Wed, 20 Oct 2021 01:50:36 -0700 (PDT) Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id u13sm1432212wri.50.2021.10.20.01.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 01:50:36 -0700 (PDT) From: Robert Pluim To: Jesse Sheidlower Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font References: <83v91tclv8.fsf@gnu.org> <83a6j5chh9.fsf@gnu.org> <837de9c8hf.fsf@gnu.org> <83y26oc491.fsf@gnu.org> <83v91sc25x.fsf@gnu.org> Date: Wed, 20 Oct 2021 10:50:35 +0200 In-Reply-To: (Jesse Sheidlower's message of "Tue, 19 Oct 2021 14:17:01 -0400") Message-ID: <87zgr42i78.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51277 Cc: Eli Zaretskii , 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Tue, 19 Oct 2021 14:17:01 -0400, Jesse Sheidlower said: Jesse> On Tue, Oct 19, 2021 at 09:14:34PM +0300, Eli Zaretskii wrote: >> > Date: Tue, 19 Oct 2021 14:08:43 -0400 >> > From: Jesse Sheidlower >> > Cc: 51277@debbugs.gnu.org >> >=20 >> > > Another thing I see is that you have 3 active font backends: xfo= nt, >> > > ftfont, and fcrhb. Maybe that has something to do with the issu= e... >> >=20 >> > Is there a "best" one to use? >>=20 >> That'd be fcrhb. >>=20 >> > And what's the correct sequence to test this in our current framew= ork? >>=20 >> What would you like to test? Jesse> Whether using a single font backend will allow Emacs to find the= font Jesse> I'm trying to select. If you want to test restricting emacs to a single font-backend, put something like the following in your .emacs (add-to-list 'default-frame-alist '(font-backend ftcrhb)) (and note that it=CA=BCs spelled 'ftcrhb', not 'fcrhb'). If the font is found with xfont or ftfont, but not with ftcrhb, that would be somewhat surprising, given that ftcrhb finds the 'bold' version. Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 07:30:23 2021 Received: (at 51277) by debbugs.gnu.org; 20 Oct 2021 11:30:23 +0000 Received: from localhost ([127.0.0.1]:52865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1md9nb-0004LB-E5 for submit@debbugs.gnu.org; Wed, 20 Oct 2021 07:30:23 -0400 Received: from mailbackend.panix.com ([166.84.1.89]:55134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1md9nZ-0004JC-Rh for 51277@debbugs.gnu.org; Wed, 20 Oct 2021 07:30:22 -0400 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 4HZ7hF2f4sz2lT3; Wed, 20 Oct 2021 07:30:21 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1634729421; bh=H5SeZJ/nYg0CDsi6tjwwHUk6C26S08hmj7JVvWFDzd8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=pmGmMHBnN8HaxyVFdLn51/T3mMcIJhOCAv+kLTNfqpZlMiaGl8rIctVyzfXYmmQLG RTaRKtYymV428fP88xBKnnmj5u3DH5AarYR7e0ChWpYhvICSoxOb2z7DxUdTwBZCMs V8qj/xjAHgbuaNv2vbshXOd/rBC1LwEwfdaDuS3g= Received: by panix2.panix.com (Postfix, from userid 834) id 4HZ7hF3YYtz1ZVt; Wed, 20 Oct 2021 07:30:21 -0400 (EDT) Date: Wed, 20 Oct 2021 07:30:21 -0400 From: Jesse Sheidlower To: Robert Pluim Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font Message-ID: References: <83a6j5chh9.fsf@gnu.org> <837de9c8hf.fsf@gnu.org> <83y26oc491.fsf@gnu.org> <83v91sc25x.fsf@gnu.org> <87zgr42i78.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87zgr42i78.fsf@gmail.com> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51277 Cc: Eli Zaretskii , 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Wed, Oct 20, 2021 at 10:50:35AM +0200, Robert Pluim wrote: > >>>>> On Tue, 19 Oct 2021 14:17:01 -0400, Jesse Sheidlower said: > > Jesse> On Tue, Oct 19, 2021 at 09:14:34PM +0300, Eli Zaretskii wrote: > >> > Date: Tue, 19 Oct 2021 14:08:43 -0400 > >> > From: Jesse Sheidlower > >> > Cc: 51277@debbugs.gnu.org > >> > > >> > > Another thing I see is that you have 3 active font backends: xfont, > >> > > ftfont, and fcrhb. Maybe that has something to do with the issue... > >> > > >> > Is there a "best" one to use? > >> > >> That'd be fcrhb. > >> > >> > And what's the correct sequence to test this in our current framework? > >> > >> What would you like to test? > > Jesse> Whether using a single font backend will allow Emacs to find the font > Jesse> I'm trying to select. > > If you want to test restricting emacs to a single font-backend, put > something like the following in your .emacs > > (add-to-list 'default-frame-alist '(font-backend ftcrhb)) > > (and note that itʼs spelled 'ftcrhb', not 'fcrhb'). > > If the font is found with xfont or ftfont, but not with ftcrhb, that > would be somewhat surprising, given that ftcrhb finds the 'bold' version. Thank you for this. I saw that that was a way to do it, but putting it in my .emacs conflicts with running emacs -Q. But assuming that it's OK at this point to run emacs without -Q, I did try it. There is no difference in the result: whether I restrict emacs to xfont, ftfont, or ftcrhb, it still loads the "Bold" file even when I select the "Book" version from menu-set-font. Where does this leave us? It does still seem like a bug (albeit one that apparently affects very few people). Jesse From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 08:31:47 2021 Received: (at 51277) by debbugs.gnu.org; 20 Oct 2021 12:31:47 +0000 Received: from localhost ([127.0.0.1]:52958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdAl1-0007k1-8m for submit@debbugs.gnu.org; Wed, 20 Oct 2021 08:31:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdAkz-0007jm-Nf for 51277@debbugs.gnu.org; Wed, 20 Oct 2021 08:31:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36994) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdAku-0006he-2m; Wed, 20 Oct 2021 08:31:40 -0400 Received: from [87.69.77.57] (port=2714 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdAkr-0002mD-Sh; Wed, 20 Oct 2021 08:31:38 -0400 Date: Wed, 20 Oct 2021 15:31:48 +0300 Message-Id: <83ee8fc1xn.fsf@gnu.org> From: Eli Zaretskii To: Robert Pluim In-Reply-To: <87zgr42i78.fsf@gmail.com> (message from Robert Pluim on Wed, 20 Oct 2021 10:50:35 +0200) Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font References: <83v91tclv8.fsf@gnu.org> <83a6j5chh9.fsf@gnu.org> <837de9c8hf.fsf@gnu.org> <83y26oc491.fsf@gnu.org> <83v91sc25x.fsf@gnu.org> <87zgr42i78.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51277 Cc: jester@panix.com, 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Robert Pluim > Cc: Eli Zaretskii , 51277@debbugs.gnu.org > Date: Wed, 20 Oct 2021 10:50:35 +0200 > > If you want to test restricting emacs to a single font-backend, put > something like the following in your .emacs > > (add-to-list 'default-frame-alist '(font-backend ftcrhb)) Or invoke Emacs like this: emacs -xrm Emacs.fontBackend:ftcrhb > (and note that itʼs spelled 'ftcrhb', not 'fcrhb'). Sorry about that. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 08:36:49 2021 Received: (at 51277) by debbugs.gnu.org; 20 Oct 2021 12:36:49 +0000 Received: from localhost ([127.0.0.1]:52963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdAps-0007rY-RY for submit@debbugs.gnu.org; Wed, 20 Oct 2021 08:36:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdApq-0007rM-Pb for 51277@debbugs.gnu.org; Wed, 20 Oct 2021 08:36:47 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37288) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdApk-0002w8-UC; Wed, 20 Oct 2021 08:36:41 -0400 Received: from [87.69.77.57] (port=3026 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdApk-0001ru-6C; Wed, 20 Oct 2021 08:36:40 -0400 Date: Wed, 20 Oct 2021 15:36:51 +0300 Message-Id: <83cznzc1p8.fsf@gnu.org> From: Eli Zaretskii To: Jesse Sheidlower In-Reply-To: (message from Jesse Sheidlower on Wed, 20 Oct 2021 07:30:21 -0400) Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font References: <83a6j5chh9.fsf@gnu.org> <837de9c8hf.fsf@gnu.org> <83y26oc491.fsf@gnu.org> <83v91sc25x.fsf@gnu.org> <87zgr42i78.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51277 Cc: rpluim@gmail.com, 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Wed, 20 Oct 2021 07:30:21 -0400 > From: Jesse Sheidlower > Cc: Eli Zaretskii , 51277@debbugs.gnu.org > > There is no difference in the result: whether I restrict emacs to xfont, > ftfont, or ftcrhb, it still loads the "Bold" file even when I select the > "Book" version from menu-set-font. > > Where does this leave us? It does still seem like a bug (albeit one that > apparently affects very few people). Are you familiar with debugging with Edebug and/or with running Emacs under GDB? If so, perhaps you could step into the relevant code and tell us what happens there with this font, so we could understand the root cause(s) of this. Or maybe someone else who can install that font and sees the problem could do that. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 11:02:33 2021 Received: (at 51277) by debbugs.gnu.org; 20 Oct 2021 15:02:33 +0000 Received: from localhost ([127.0.0.1]:55147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdD6v-00086b-9F for submit@debbugs.gnu.org; Wed, 20 Oct 2021 11:02:33 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:40754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdD6t-00081e-O2 for 51277@debbugs.gnu.org; Wed, 20 Oct 2021 11:02:32 -0400 Received: by mail-wm1-f52.google.com with SMTP id 186-20020a1c01c3000000b0030d8315b593so2380041wmb.5 for <51277@debbugs.gnu.org>; Wed, 20 Oct 2021 08:02:31 -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=5Zr927EUJ3V3xWMEccIuzxsvfmfvg7bUrLWysxqcKQw=; b=mfA4SrO0AwZ5SRWE17bOR5RDw/n9blnlybBBrMMRC0eqWtxh1Nq8JhPPcP0d2fGZJE LO+bZjm0oc3LB9UuQ9yJsLtuDpunzikARSweXO/I/G9WjwaEz/jFoKg7RTVpk9LU9z/5 RChF+s12Hy97iU9j+jg9g2Fkjxl73l3gEnVnq+yzTWYsQuX23J4bLTCSKUPzYphKJz0K txWZzpttCI0mftex8GRKkqXo8ObdWo8zF0Baw+Rd2FbRvESzaiu/XwULsu5KAxRSM1Sv hZ/Kq8UErl0K57120ETgvAbHVQBX8VkfE5ZqloNR4PzDy9fTeyJfsMW2XkleOmC8mVd1 MRcg== 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=5Zr927EUJ3V3xWMEccIuzxsvfmfvg7bUrLWysxqcKQw=; b=BnLbNFe/9AIZZZlGAyCf5ZmsFytFG9+VAy5wPSC8L0E7qAYYrK7d39GMSGGAqXhhZy /qPIJLI9+S1kxYwU3wRxSsCspAKP9d1MWMzFeyEJZakx+kZln/nhkNBFM/2aPOmZd0Ji j5s1+Dm8EzdtKOE6uhVv+rAaIXTl2zpNQooMIPVJDO1BsFJi9ojyHmxwgVF+fEfpE9or Vx9/R/4zwgJ4lTuK7W/vGXkER9tHvj08mMCMXSQJGLmC9+F8rXumnNe2z9WL78sALak6 UbbhxwMmgAgWHTX+iHTyTyg/bOjH8qLyOsmgVghSBE2pTvOSW5m9GFeZgqobg6ls1E3j BKLg== X-Gm-Message-State: AOAM530/JFOkOZyTs17o4dycGmTUQ81Ij1/FjbiNcU1q7XxkO0F7LSE/ V71A5X77xWLYekwGWwAYFtsFO1ikzV4= X-Google-Smtp-Source: ABdhPJwJJoxqRPthGC2PuRz+o/Cf0thKtkAjWX4G67wLRFLJy23OGAjQOxm9Htr4yZ1pSIpUqSOgBQ== X-Received: by 2002:a5d:630b:: with SMTP id i11mr264776wru.65.1634742145341; Wed, 20 Oct 2021 08:02:25 -0700 (PDT) Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id k27sm2152042wms.21.2021.10.20.08.02.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 08:02:24 -0700 (PDT) From: Robert Pluim To: Eli Zaretskii Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font 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> Date: Wed, 20 Oct 2021 17:02:23 +0200 In-Reply-To: <83cznzc1p8.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 20 Oct 2021 15:36:51 +0300") Message-ID: <87ee8f3fk0.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51277 Cc: Jesse Sheidlower , 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Wed, 20 Oct 2021 15:36:51 +0300, Eli Zaretskii said: >> Date: Wed, 20 Oct 2021 07:30:21 -0400 >> From: Jesse Sheidlower >> Cc: Eli Zaretskii , 51277@debbugs.gnu.org >>=20 >> There is no difference in the result: whether I restrict emacs to xf= ont, >> ftfont, or ftcrhb, it still loads the "Bold" file even when I select= the >> "Book" version from menu-set-font. >>=20 >> Where does this leave us? It does still seem like a bug (albeit one = that >> apparently affects very few people). Eli> Are you familiar with debugging with Edebug and/or with running Em= acs Eli> under GDB? If so, perhaps you could step into the relevant code a= nd Eli> tell us what happens there with this font, so we could understand = the Eli> root cause(s) of this. tl;dr font weight handling is a mess Eli> Or maybe someone else who can install that font and sees the probl= em Eli> could do that. I=CA=BCve installed the fonts in question, and I can reproduce the issue. What I see: - the GTK font selector lets us choose 'Operator Mono Book' - the resulting weight according to Pango is '330', which we map to 'normal' [1] Comparing that to what 'fc-match' tells us: $ fc-match 'operator mono:weight=3D330' FontsFree-Net-OperatorMono-Bold.ttf: "Operator Mono" "Bold" $ fc-match 'operator mono' FontsFree-Net-OperatorMono-Bold.ttf: "Operator Mono" "Bold" $ fc-match 'operator mono:style=3Dbook' FontsFree-Net-OperatorMono-Book.ttf: "Operator Mono" "Book" $ fc-match 'operator mono:light' FontsFree-Net-OperatorMono-Book.ttf: "Operator Mono" "Book" So I=CA=BCd be willing to point the finger at the font here, except that with gedit, when I select 'Operator Mono Book', I get the 'book' version, not 'bold'. I then cavalierly hardcoded the weight we request to '200', which results in us asking for 'light', and then we correctly use the 'Book' version of the font. This means we should adjust XG_WEIGHT_TO_SYMBOL. It currently assigns anything in the range <100-200] to 'light', which just seems wrong. It all depends whether the fixed values are the start or the end of the range, but would it not make more sense to have 'light' be used for the range [300-350> which corresponds to [PANGO_WEIGHT_LIGHT-PANGO_WEIGHT_SEMILIGHT> ? [2] Robert Footnotes: [1] According to the pango headers, 'book' =3D=3D 380 [2] I=CA=BCll note that 'w32_to_fc_weight' uses the various FW_* constants as the start of the respective range, not the end --=20 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 11:13:10 2021 Received: (at 51277) by debbugs.gnu.org; 20 Oct 2021 15:13:10 +0000 Received: from localhost ([127.0.0.1]:55203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdDHC-00009z-MX for submit@debbugs.gnu.org; Wed, 20 Oct 2021 11:13:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdDHB-00009l-0E for 51277@debbugs.gnu.org; Wed, 20 Oct 2021 11:13:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=r6CrJotyf0iVNE1NUe+zKMjP9lFA3cqAghD0kNmTaZk=; b=s/W62/JrfWMkEg/EmSG9+DQoXR DEXaksicec6pczG+3QqUhZXE8jXfKnlseR+gFygo9l4X2Ja6L46/BnqIeQrQlWkC7sCmgeV91exHR gXXreVnYKAAsAGhrsI0qRUn3ydt2AvERrx7o6TYFqwWURZ4bmRvY7Eks+VbqRC8/ClRM=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdDH1-0000QM-6g; Wed, 20 Oct 2021 17:13:01 +0200 From: Lars Ingebrigtsen To: Robert Pluim Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font 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> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEWhlEBJRSr////o CFXIAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAABLAAAASwAc4jpUgAAAAd0SU1FB+UKFA4XIsXrEIAA AADgSURBVCjPdZLRCgQhCEUVxneD/J+CejfI//+VtWxmdx9GmMHDvZlKAO+BdqKcXG/4U9AUqDEt oF+F0r/tR3kFfAXg0Ut5musi30Yzj6/CYz4CjJ7KA/XqkWxI0h+lpbTu4OXFBmukAL4AJwNyO6Db vsA/5QMrSI/trvoDDNz4htZS1kgzSascgF0HVw24xGQ03b1zrdV6juGv7OvIqe4Ta0E6B22lqBjV HqWzFDSxPQNQ8Q3aPNvz7Yhp1XONhwSg22xaiQ6WQoanUS8gdmz+p/UaQvBbux+7h55kou9v6gPB V0n+mfEx0AAAAFplWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAAB AAAAUgEoAAMAAAABAAEAAAITAAMAAAABAAEAAAAAAAAAAAEsAAAAAQAAASwAAAABYCqauwAAACV0 RVh0ZGF0ZTpjcmVhdGUAMjAyMS0xMC0yMFQxNDoyMzozNCswMDowMD7CA2EAAAAldEVYdGRhdGU6 bW9kaWZ5ADIwMjEtMTAtMjBUMTQ6MjM6MzQrMDA6MDBPn7vdAAAAF3RFWHRleGlmOllDYkNyUG9z aXRpb25pbmcAMawPgGMAAAAASUVORK5CYII= X-Now-Playing: 15 16 17 - =?utf-8?B?4oCYRW1vdGlvbuKAmQ==?= (Dennis Bovell Remix) (Exclusive remix)'s _Late Night Tales: Version Excursions (Selected By Don Letts)_: "Originally recorded by Samantha Sang" Date: Wed, 20 Oct 2021 17:12:58 +0200 In-Reply-To: <87ee8f3fk0.fsf@gmail.com> (Robert Pluim's message of "Wed, 20 Oct 2021 17:02:23 +0200") Message-ID: <87wnm7log5.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Pluim writes: > This means we should adjust XG_WEIGHT_TO_SYMBOL. It currently assigns > anything in the range <100-200] to 'light', which just seems wrong. Yup! I'm working on exactly that in bug#32210, and it now works for the test cases there (i.e., mapping normal and medium and book correctly). It's a work in progress, but it's looking hopeful. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51277 Cc: Eli Zaretskii , Jesse Sheidlower , 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Robert Pluim writes: > This means we should adjust XG_WEIGHT_TO_SYMBOL. It currently assigns > anything in the range <100-200] to 'light', which just seems wrong. Yup! I'm working on exactly that in bug#32210, and it now works for the test cases there (i.e., mapping normal and medium and book correctly). It's a work in progress, but it's looking hopeful. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 11:20:24 2021 Received: (at 51277) by debbugs.gnu.org; 20 Oct 2021 15:20:24 +0000 Received: from localhost ([127.0.0.1]:55208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdDOC-0002aV-Dn for submit@debbugs.gnu.org; Wed, 20 Oct 2021 11:20:24 -0400 Received: from mail-wm1-f42.google.com ([209.85.128.42]:45629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdDOA-0002aF-EG for 51277@debbugs.gnu.org; Wed, 20 Oct 2021 11:20:23 -0400 Received: by mail-wm1-f42.google.com with SMTP id o24-20020a05600c511800b0030d9da600aeso11093199wms.4 for <51277@debbugs.gnu.org>; Wed, 20 Oct 2021 08:20:22 -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=NKWy0w+2i5FIt1s9TRBQIoRSnj6xO3eB3vJLl3HTnVQ=; b=eWt3xb3WB8dDIIk+FECu81TwwXH1fBgoVqL8GyVh2mr8bKjn2SQc3lLhHix1g3Tj5E 8g39ejp0dMuxGPStiidzwwCxR6bj/fBNmOTWFHk0XlM9eMMWckISWbeOM9d6KyE0VPT/ oZ/mNnFbEEnciui9t7lQSWx98KzDv3J7T4aQAslQ4WZ7K7si/4KRNjPCvOdoU1fiqIGd 2jXFPUtWcNjqsp7DpU7r5Nk9tEVvnCvvByRJh6YQstxAXHVdKqiBTl/2/PEIgQ0D2mmd c5C71sSjdnL0iWoarR2KcY3uyGi41klHDV7V0BkNUwdtf8Oq5aQ2V4buxn//jOtDpd/k jlpg== 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=NKWy0w+2i5FIt1s9TRBQIoRSnj6xO3eB3vJLl3HTnVQ=; b=Xjd1hBx5qGZnBjLrtDAISM+Uy4jTPKNulCAkELcSSljqXqrWZtxRwQZkdFVtv0/xHZ tGAvrOeRTQ/40uPlt/fyKWcJ82CrEztV17rRqhQCviV2KdgOYsfJirAJEqRB6CAp7//n /LRM1Mo0pz/kBpDtsxuVcDFrvaSCa/Q39z3Em5mPl12gLVbdeejnfaIgSsCEo6bvomqE yCd2cUCI2uBeeFT5AyVxTfrfJBXuNvWmwmaZx/I8SaMppFcIYi2QnKzBjodKEQZgkZ+E OBUA2Lhmo+jz5nMJA2yO6+ty12Bo4udjzAVnMHh11OKkUyQCrWrd5AH/hFUa0xvqkE0M N1yA== X-Gm-Message-State: AOAM532pydRW46qY6EzdGZCVPn5JBgwJZsVkwoCUkhAZnmz8XEUIUreD xN9/FVSOfI7zpl/C9aqoZ6RB6WYag1w= X-Google-Smtp-Source: ABdhPJzLx3eVP+K3YtemlFHmMQjK6/wyuFEs4L/nyCBeUIHb2Y/gpHl8koSgAYfeKRveOGxMH8Cp+A== X-Received: by 2002:a05:600c:35d4:: with SMTP id r20mr14254160wmq.24.1634743215301; Wed, 20 Oct 2021 08:20:15 -0700 (PDT) Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id g2sm2240485wrq.62.2021.10.20.08.20.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 08:20:14 -0700 (PDT) From: Robert Pluim To: Lars Ingebrigtsen Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font 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> <87wnm7log5.fsf@gnus.org> Date: Wed, 20 Oct 2021 17:20:14 +0200 In-Reply-To: <87wnm7log5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 20 Oct 2021 17:12:58 +0200") Message-ID: <871r4f3eq9.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51277 Cc: Eli Zaretskii , Jesse Sheidlower , 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Wed, 20 Oct 2021 17:12:58 +0200, Lars Ingebrigtsen said: Lars> Robert Pluim writes: >> This means we should adjust XG_WEIGHT_TO_SYMBOL. It currently assigns >> anything in the range <100-200] to 'light', which just seems wrong. Lars> Yup! I'm working on exactly that in bug#32210, and it now works = for the Lars> test cases there (i.e., mapping normal and medium and book correc= tly). Lars> It's a work in progress, but it's looking hopeful. That=CA=BCs good to know. Should we merge 32210 and 51277? Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 12:22:15 2021 Received: (at 51277) by debbugs.gnu.org; 20 Oct 2021 16:22:15 +0000 Received: from localhost ([127.0.0.1]:55303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdEM3-0004QG-07 for submit@debbugs.gnu.org; Wed, 20 Oct 2021 12:22:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdEM1-0004Q2-C6 for 51277@debbugs.gnu.org; Wed, 20 Oct 2021 12:22:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46706) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdELv-00037u-Uu; Wed, 20 Oct 2021 12:22:07 -0400 Received: from [87.69.77.57] (port=1246 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdELv-00017F-Hx; Wed, 20 Oct 2021 12:22:07 -0400 Date: Wed, 20 Oct 2021 19:22:18 +0300 Message-Id: <83zgr3acp1.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87wnm7log5.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 20 Oct 2021 17:12:58 +0200) Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font 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> <87wnm7log5.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51277 Cc: rpluim@gmail.com, jester@panix.com, 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: Eli Zaretskii , Jesse Sheidlower , > 51277@debbugs.gnu.org > Date: Wed, 20 Oct 2021 17:12:58 +0200 > > Robert Pluim writes: > > > This means we should adjust XG_WEIGHT_TO_SYMBOL. It currently assigns > > anything in the range <100-200] to 'light', which just seems wrong. > > Yup! I'm working on exactly that in bug#32210, and it now works for the > test cases there (i.e., mapping normal and medium and book correctly). > It's a work in progress, but it's looking hopeful. So this issue is somehow specific to GTK and/or Pango? And other configurations should not have these problems? From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 22:12:10 2021 Received: (at 51277) by debbugs.gnu.org; 21 Oct 2021 02:12:10 +0000 Received: from localhost ([127.0.0.1]:55785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdNYv-0004d2-QP for submit@debbugs.gnu.org; Wed, 20 Oct 2021 22:12:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdNYt-0004cn-Bq for 51277@debbugs.gnu.org; Wed, 20 Oct 2021 22:12:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=yqDExI9zBsAC9C/YD/kMy2LF3d70emtjtWV+W2lGtH8=; b=XNkRhf3RV7PvDpukaeYGX58z5r 9nnEemilh07F9JJt3L3AU8VWg6X+SWw+M9ly5iH43eeYh0mm12LLahRlYPkt/RKHaWZ5i8tmFE4Ij uP6FIQcZDtDDFGp4JZTs94gS9/4Ptc+R7O2PRZkboKq6Q8ZdwKQ5jF+czUz+NcYpM1JQ=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdNYj-0004vg-W2; Thu, 21 Oct 2021 04:12:00 +0200 From: Lars Ingebrigtsen To: Robert Pluim Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font 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> X-Now-Playing: The Lounge Lizards's _Voice of Chunk_: "Uncle Jerry" Date: Thu, 21 Oct 2021 04:11:56 +0200 In-Reply-To: <87ee8f3fk0.fsf@gmail.com> (Robert Pluim's message of "Wed, 20 Oct 2021 17:02:23 +0200") Message-ID: <87ee8fktxv.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Pluim writes: > Iʼve installed the fonts in question, and I can reproduce the > issue. What I see: > > - the GTK font selector lets us choose 'Operator Mono Book' > - the resulting weight according to Pango is '33 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51277 Cc: Eli Zaretskii , Jesse Sheidlower , 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Robert Pluim writes: > I=CA=BCve installed the fonts in question, and I can reproduce the > issue. What I see: > > - the GTK font selector lets us choose 'Operator Mono Book' > - the resulting weight according to Pango is '330', which we map to > 'normal' [1] Selecting Operator Mono Light reports back a weight of 300 (which is according to spec). Book reports 330 (but should be 380). Medium reports 350 (but should be 500). Bold reports 400 (but should be 700). So for this font, the PangoWeights returned by the Gtk selector are totally out of whack with the spec in pango-font.h. So I'm wondering whether this font is just buggy. I'm trying to compare with what other programs are displaying. It would be convenient to test with a program that understands fonts on the command line, but if I say xfce4-terminal --font "Operator Mono SSm:weight=3Dbook" then I get something that looks very wrong indeed. Anybody know a program that understands these things? > I then cavalierly hardcoded the weight we request to '200', which > results in us asking for 'light', and then we correctly use the 'Book' > version of the font. > > This means we should adjust XG_WEIGHT_TO_SYMBOL. It currently assigns > anything in the range <100-200] to 'light', which just seems wrong. It > all depends whether the fixed values are the start or the end of the > range, but would it not make more sense to have 'light' be used for > the range [300-350> which corresponds to > [PANGO_WEIGHT_LIGHT-PANGO_WEIGHT_SEMILIGHT> ? [2] Well, PANGO_WEIGHT_THIN =3D 100, and PANGO_WEIGHT_ULTRAHEAVY =3D 1000 so it kinda sounds like <=3D, not >=3D is the intended semantic (which is what Emacs does). > [2] I=CA=BCll note that 'w32_to_fc_weight' uses the various FW_* constan= ts > as the start of the respective range, not the end Hm... --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 20 22:13:21 2021 Received: (at 51277) by debbugs.gnu.org; 21 Oct 2021 02:13:21 +0000 Received: from localhost ([127.0.0.1]:55789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdNa5-0004eq-5Q for submit@debbugs.gnu.org; Wed, 20 Oct 2021 22:13:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdNa3-0004ec-A8 for 51277@debbugs.gnu.org; Wed, 20 Oct 2021 22:13:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CYffYMvNZJgBeUIFD2A66T92y8N5Qe+aSP7kZOHnvNw=; b=W1xsf35iDv9PCpn6ZFOO/CHcE0 SyDLuXFwq2W9ivaFx/1uIK0dU2MrC7IUStQor5w8yimwOYR75k2eetPP4diN58NF7K6kNf7Lz9m76 DT4FFret1PM3RNtbrGfV85UwTYdj24kgWp/xK1rpL62mujdvWnePzJrgWKxJw0lc6F7g=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdNZu-0004w8-9A; Thu, 21 Oct 2021 04:13:12 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font 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> <87wnm7log5.fsf@gnus.org> <83zgr3acp1.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUEBAlgQDa0sq+h WjItIyO9Z0DhklH////ZdOWPAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UKFQIMDXaqeEIAAAGySURB VDjLlZTPbtswDMZlRMnZrOw+gNPeozK8W4iy8xKNOq8IrPd/hFF2UdBedtgH+J9+oUh9YmTMouYY 7scAw8lsZH2g9wDHzvynrDFRfyI4QIeIjVwqjXUIUMcJ+pROqwhjYxBwvhBr0I31cZGYuAIzHE2T KLe8ARaxtUSM24jAeepklPwGRMrlgRJy639uQClFymJ2a2Alosg4on8Gqm7nVa2SnHNCRuZWgest ZPZXAbwGrxxymfLsF2rwg1CKKjfcgn1OLOBBhMnr5JFRiipTTQG/FXC3CngiTvSqLek/68InRE4e 9VT9o89f4Ay/NJicgISYUiANqHiaHeF0pfMKJBAo7p4oKWBlHu/YO+S43lrnoYui0DUAsvk4mqfa 59mW+pu1dgv4qLPaGMcotziqCJLHBaDzzYs7VnAoC+hbFVFHDkuEh3abY9lF+gscyrwWhPZlUHoz +yUH+W7YgjlCFj0A3Yd3MfE+g13+ssVuInbffsFs1eKXLNH+wyrdJbGtt7q6LuriQ+2y+hc1NqA+ HMDJrMFVAE6fAFykA/rCAubXbyHKl3R0PWxWffVEfwAR33WDAOhuGwAAACV0RVh0ZGF0ZTpjcmVh dGUAMjAyMS0xMC0yMVQwMjoxMjoxMyswMDowMFzimJcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEt MTAtMjFUMDI6MTI6MTMrMDA6MDAtvyArAAAAAElFTkSuQmCC X-Now-Playing: The Lounge Lizards's _Voice of Chunk_: "Bob The Bob (Home)" Date: Thu, 21 Oct 2021 04:13:05 +0200 In-Reply-To: <83zgr3acp1.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 20 Oct 2021 19:22:18 +0300") Message-ID: <87a6j3ktvy.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> Yup! I'm working on exactly that in bug#32210, and it now works for the >> test cases there (i.e., mapping normal and medium and book correctly). >> It's a work in progress, but it's looking hopefu [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51277 Cc: rpluim@gmail.com, jester@panix.com, 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> Yup! I'm working on exactly that in bug#32210, and it now works for the >> test cases there (i.e., mapping normal and medium and book correctly). >> It's a work in progress, but it's looking hopeful. > > So this issue is somehow specific to GTK and/or Pango? And other > configurations should not have these problems? For the Operator Mono font, the problem seems like it's with Gtk and/or Pango. Or the font itself... Possibly. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 21 03:40:29 2021 Received: (at 51277) by debbugs.gnu.org; 21 Oct 2021 07:40:29 +0000 Received: from localhost ([127.0.0.1]:56199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdSgf-0002yh-2s for submit@debbugs.gnu.org; Thu, 21 Oct 2021 03:40:29 -0400 Received: from mail-wm1-f47.google.com ([209.85.128.47]:38622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdSgd-0002yU-ED for 51277@debbugs.gnu.org; Thu, 21 Oct 2021 03:40:27 -0400 Received: by mail-wm1-f47.google.com with SMTP id a20-20020a1c7f14000000b003231d13ee3cso2667250wmd.3 for <51277@debbugs.gnu.org>; Thu, 21 Oct 2021 00:40:27 -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=LGhxgBE94AVmYavqyDMh8jbpGf22AqGR9+rU/HgTTLk=; b=RJDshLKi+h2os5UsKV6Z6+KVSldcapSXW13vdjuGBcAvJ8W+8hEaZzThM2xk4fhJiP ZYEbMzmaJBPjQ5dPu4HNB0c8ha7r536xWFBcSXxNkhYlHLpMxJGye4WXopbCdD9rRyVi mjqslF25rH1QqvYEdsnH1pZoQmVJqlsny9evqHbcDcHmL1Qap4vRoJY2uMqMGnPtCgNS 9Rsn53fx+litN6TN1Y8pzmaBA6hHWkvVAC4lm6+39ko0ZbHX6Uu3pkjyopbCe54urfeI 2yhn5ZKwg/3+mg8GkaI/Gv22rt1aisel6wL4SaMmPDolwtTVpW3xtdqSLJIaYRzEA9T0 Ri4A== 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=LGhxgBE94AVmYavqyDMh8jbpGf22AqGR9+rU/HgTTLk=; b=F3XHDdypAJtjPVVU2q6TodAMf6bf5Q1HifVs35G9+FU2JbFyfCLMVJu39FLlWe0rRK 2Xz9HqS+taZToDZ4vecpUL6dduI57j796yxTYNyyjKUp1ZE73KYejehTgNTJzCbz8GCc w+um0KsUMgVrYyLiJctuFX1II0+E+VLFdlNSTqKkudz9aeeMuEMBK0VpCO75R7DvrPwt jldavxZNtsGGdHbCoCV/BI3PjzSTrbgxB60TOrygnTeVHuwd7SD23crgEtuywo19Q3kn 1/Ms/nqhr1VyDl4IMxUZZWLLfFLp6o/ZH+6wHJIpOzilbipHmYNq7TLNMx/NOdru4mI6 jV+A== X-Gm-Message-State: AOAM531PofuNtjwgp1xANaHspTR2OAX0uiilFHHGf2GyhGF6ct/pLpm7 jazk0MXYUnrOtk/hqpQXwgpok9X3apo= X-Google-Smtp-Source: ABdhPJz0BA64frMjlLQd6b+XoVXFvh0tBW2KwyoKWb/cBhNMvCDHx7wEqcAHDIRiViwD3iVnjppQbg== X-Received: by 2002:a05:600c:4f53:: with SMTP id m19mr4792373wmq.118.1634802020992; Thu, 21 Oct 2021 00:40:20 -0700 (PDT) Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id i8sm4076576wrv.47.2021.10.21.00.40.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 00:40:20 -0700 (PDT) From: Robert Pluim To: Lars Ingebrigtsen Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font 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> Date: Thu, 21 Oct 2021 09:40:19 +0200 In-Reply-To: <87ee8fktxv.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 21 Oct 2021 04:11:56 +0200") Message-ID: <87wnm625cs.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51277 Cc: Eli Zaretskii , Jesse Sheidlower , 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Thu, 21 Oct 2021 04:11:56 +0200, Lars Ingebrigtsen said: Lars> Selecting Operator Mono Light reports back a weight of 300 (which= is Lars> according to spec). Lars> Book reports 330 (but should be 380). Lars> Medium reports 350 (but should be 500). Lars> Bold reports 400 (but should be 700). Lars> So for this font, the PangoWeights returned by the Gtk selector a= re Lars> totally out of whack with the spec in pango-font.h. So I'm wonde= ring Lars> whether this font is just buggy. I think this kind of mismatch is not uncommon. All the 'book' fonts that I have report a weight of 400, which is 'normal', although all the 'light' fonts that I have report '300'. Lars> I'm trying to compare with what other programs are displaying. I= t would Lars> be convenient to test with a program that understands fonts on the Lars> command line, but if I say Lars> xfce4-terminal --font "Operator Mono SSm:weight=3Dbook" Lars> then I get something that looks very wrong indeed. Anybody know a Lars> program that understands these things? FC_DEBUG=3D1 xfce4-terminal --font "Operator Mono SSm:weight=3Dbook" will get you fontconfig debug telling you which actual font is used. Lars> Well, Lars> PANGO_WEIGHT_THIN =3D 100, Lars> and Lars> PANGO_WEIGHT_ULTRAHEAVY =3D 1000 Lars> so it kinda sounds like <=3D, not >=3D is the intended semantic (= which is Lars> what Emacs does). gedit rounds down to the nearest multiple of 100, which equates to >=3D 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? >> [2] I=CA=BCll note that 'w32_to_fc_weight' uses the various FW_* co= nstants >> as the start of the respective range, not the end Lars> Hm... Didn=CA=BCt I say it=CA=BCs a mess? ;-) Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 21 08:59:27 2021 Received: (at 51277) by debbugs.gnu.org; 21 Oct 2021 12:59:27 +0000 Received: from localhost ([127.0.0.1]:56464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdXfL-00080E-1Q for submit@debbugs.gnu.org; Thu, 21 Oct 2021 08:59:27 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdXfJ-000801-Am for 51277@debbugs.gnu.org; Thu, 21 Oct 2021 08:59:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Q4pqCJVMCjpkBKn17h7ZVT3YxfUJo+na0SO2Y2GThSY=; b=mK6Dv+9O9OFzXsJKFLmAvR2TWR 9dAD54mkIm5nV4AzLC9OPX8jRGnX6gtNnxXx9JX9zf3RP7aAnvBNYXPe8zTzNCNjcm91Eu/luoNET bzW+3aSB/94BSJM5yt/M6VVbvYluRYukT7VOTZaRTBNuYoqaUOHCi9JvfCRK3cndEMF4=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdXf8-0001Hv-S8; Thu, 21 Oct 2021 14:59:17 +0200 From: Lars Ingebrigtsen To: Robert Pluim Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font 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> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVmtfJ/f423y8+b X1lLLzj///8Z8KpJAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UKFQQgFC99x54AAAFtSURBVDjLrdNR koMgDAZg0B6AQA6g0AMI4QBlyf3PtIFWq6u7MzvT/6Ez8DUkjKrUB6ONVtYPRgNYDQPADBasQC7B xjgso+OCGbgiW+ZJ6RTmuICKY3NtgnFzSsEoHUFlExXAHWwBM6rs5oICnA2qOLiI1WT6CvITapHe kxTLQfAYp+j9MspRkKJAwckpQFhGKOQE0NkH9qmUU5mtCTWOVUkF2WWc1tsM5/vBFjP4wb8iEKiF mWjx78gF5/ZnJK5gnnvzD+DSwa4VQwPnmLkuPgD0g2kFcDk3kLSWmd9AvAPeVVSB3uN4lOO8VvSC vE6FlV49glxIBmnQTsp91eBek897kAWXBpYS7oE7gA+eEj17NOAXtFnbxCe4V6JAvo97AEcyXkwb uDdIEm2AB6ALuGfZrCsQbbA9pwa8pRwe7e0vKHiC9fU5vlKyNp/8BH//Nk+t18iYl/s3Bj7NphuU hI/rCj5X9CBe9/h3vgHNwHGMbot6eAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0xMC0yMVQwNDoz MjoyMCswMDowMBsM4/UAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMTAtMjFUMDQ6MzI6MjArMDA6 MDBqUVtJAAAAAElFTkSuQmCC X-Now-Playing: Sylvester's _Sylvester-Step II_: "I Took My Strength From You" Date: Thu, 21 Oct 2021 14:59:14 +0200 In-Reply-To: <87wnm625cs.fsf@gmail.com> (Robert Pluim's message of "Thu, 21 Oct 2021 09:40:19 +0200") Message-ID: <877de6h6u5.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Pluim 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 g [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51277 Cc: Eli Zaretskii , Jesse Sheidlower , 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Robert Pluim writes: > Lars> then I get something that looks very wrong indeed. Anybody kno= w a > Lars> program that understands these things? > > FC_DEBUG=3D1 xfce4-terminal --font "Operator Mono SSm:weight=3Dbook" > > 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 >=3D 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? 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:= =20 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? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 21 11:38:05 2021 Received: (at 51277) by debbugs.gnu.org; 21 Oct 2021 15:38:05 +0000 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 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 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) 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) From: Robert Pluim To: Lars Ingebrigtsen Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font 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> Date: Thu, 21 Oct 2021 17:37:55 +0200 In-Reply-To: <877de6h6u5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 21 Oct 2021 14:59:14 +0200") Message-ID: <87k0i61j8s.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51277 Cc: Jesse Sheidlower , 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 22 10:27:36 2021 Received: (at 51277) by debbugs.gnu.org; 22 Oct 2021 14:27:36 +0000 Received: from localhost ([127.0.0.1]:33426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdvWB-0006c3-SL for submit@debbugs.gnu.org; Fri, 22 Oct 2021 10:27:36 -0400 Received: from quimby.gnus.org ([95.216.78.240]:43930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdvW7-0006bg-CZ for 51277@debbugs.gnu.org; Fri, 22 Oct 2021 10:27:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=QD+tt/4+kj22coMYHjFWvd7t1oMkybO6Y31FyOHIdjo=; b=MjQmNRwcGVFmRxHK6OV7ovkq0I MxU/mNZoc6GhPPcMNS1psoPuqFHxJc7/LxirBW+HZ/BicWsGTF1qkls6cyleWV4pkPQTb/xaERoBQ uGdT+/SXI4MbKNg48gS+WjG+Sa/Md0vk2G6ClFrw+wGeZTkUso0YiOcHhLQ7AEY+RoaA=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdvVx-0004rh-F4; Fri, 22 Oct 2021 16:27:24 +0200 From: Lars Ingebrigtsen To: Robert Pluim Subject: Re: bug#51277: 27.1; menu-set-font not loading correct font 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> <87k0i61j8s.fsf@gmail.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEUjGxotJSZOR07/ //8trI8JAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UKFg4TLZsxAJ4AAAFASURBVCjPdZKxTsQwDIZt qVmYitQw8DSJRPYW5Y/E7Te0j8EjINrhZopUPyV22uO4gQxNvjr2/8cJ0W04Iv6Fhu6G7/8DdweZ z5iRdwKP0HENthRuxVsHtFXFNnsDOoCooz8Q9oztmkxNIjHRxwoDTZ86wcJNSyOIB1jYgYCUai1W UMHe9HxWSyxz9e3QG2zVJJtZPslqISDozyeRJZi/rOCKiE7o8mB1JpEYwahNAyR2MVQbWmha4JPf LbtSLjEomAhnbFr5hZAYkdy4DTCjVXoSpLhDVh9fIdEKFZ31swVPYmNRqU29jaov73OR76SFHxQ+ 1iKreeMKJ80zyWfdZlCgbeThdTki2XprK8CRHTmWwDj31ngmBP8WbZFblz3VO3UU+r23vZ6RnCYc 7yZZK8NxdU77fbwKZnNgwK219wferm6PhYYHpQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0xMC0y MlQxNDoxOTo0NSswMDowMJsQ0mcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMTAtMjJUMTQ6MTk6 NDUrMDA6MDDqTWrbAAAAAElFTkSuQmCC X-Now-Playing: Helen Money's _Atomic_: "Understory" Date: Fri, 22 Oct 2021 16:27:20 +0200 In-Reply-To: <87k0i61j8s.fsf@gmail.com> (Robert Pluim's message of "Thu, 21 Oct 2021 17:37:55 +0200") Message-ID: <87wnm5dtiv.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Pluim writes: > Lars> Indeed, the Pango round trip through symbols is inherently > Lars> breakable. I > Lars> mean, the Gtk chooser knows exactly what font I've selected -- but is > Lars> there any way to get it to [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51277 Cc: Jesse Sheidlower , 51277@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Robert Pluim writes: > Lars> Indeed, the Pango round trip through symbols is inherently > Lars> 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 w= eights? > > I don=CA=BCt think so: Pango is supposed to abstract away from all that. So is there a way to load fonts in Gtk that doesn't use the weights from the font files, but instead use the Pango weights? Is the problem that we're converting the fonts to the common `font-spec' structure and throwing away the actual information we have about the fonts? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no