From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67810: 29.1; fonts use synthetic bold on Linux / pgtk Date: Fri, 12 Jan 2024 14:30:21 +0200 Message-ID: <831qamka3m.fsf@gnu.org> References: <0719018bb386e840efaa655b7c0b765ece9cd9ff.camel@timruffing.de> <83le9ys2d3.fsf@gnu.org> <3ebaf489f6dad748258c7fb01d3200b674ebb1f1.camel@timruffing.de> <83h6kmrzkz.fsf@gnu.org> <7ea3f7db448191f2b9886604084abe84d0caaf61.camel@timruffing.de> <83y1dxqm46.fsf@gnu.org> <83le9xqewb.fsf@gnu.org> <87h6klja8c.fsf@yahoo.com> <723b91276f83652bc6867f95630e1057c05ffb26.camel@timruffing.de> <87ttnj2uj6.fsf@yahoo.com> <83frz3j6bq.fsf@gnu.org> <87a5pa3m9q.fsf@yahoo.com> <83bk9qkc53.fsf@gnu.org> <875xzy3frj.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20935"; mail-complaints-to="usenet@ciao.gmane.io" Cc: crypto@timruffing.de, 67810@debbugs.gnu.org, stefankangas@gmail.com To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 12 13:31:34 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rOGhC-0005Gl-9i for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Jan 2024 13:31:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOGgm-0002NH-5L; Fri, 12 Jan 2024 07:31:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rOGgi-0002Mz-Cm for bug-gnu-emacs@gnu.org; Fri, 12 Jan 2024 07:31:05 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rOGgi-000262-3g for bug-gnu-emacs@gnu.org; Fri, 12 Jan 2024 07:31:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOGgf-0000BN-MW for bug-gnu-emacs@gnu.org; Fri, 12 Jan 2024 07:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jan 2024 12:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67810 X-GNU-PR-Package: emacs Original-Received: via spool by 67810-submit@debbugs.gnu.org id=B67810.170506264431513 (code B ref 67810); Fri, 12 Jan 2024 12:31:01 +0000 Original-Received: (at 67810) by debbugs.gnu.org; 12 Jan 2024 12:30:44 +0000 Original-Received: from localhost ([127.0.0.1]:35093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOGgO-0008Bc-DB for submit@debbugs.gnu.org; Fri, 12 Jan 2024 07:30:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOGgK-0007xR-IL for 67810@debbugs.gnu.org; Fri, 12 Jan 2024 07:30:43 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rOGgG-0001oU-35; Fri, 12 Jan 2024 07:30:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6cWoLfYwSBLfIWtvMsFmH6mNZuf/CuNCPzy9aBPGAYY=; b=CykDixbB9C4E 6kXwHdZkC9xHFo5I/teHbpzPkbBI9llscjKBhum/cPYroC6S/3BIt2dem+mg7cpD7WUVxgJ7mhhAQ seVRrSJpoo9i5towlo7Az6VKEuwDOdsaDeNuSsAjipXYxMT4ucDRWSuMv9gXUdFDWmAYiVe6Z+pS1 AXjoIx9GjWZfdU8hjaw9KHA6ATKVECxoSBKMXHZJQjDeB4HHsak0uoicWEac7QaIjqiiTyMREuUj9 utv3oQsr1Eo1xXzChZer4sy5R57plrq2TPFxTrdZgwTwX9SB13utvze0bGOdKEwCtuYUs36iEQX27 HPW7RHC56/NUyTHXvluDdA==; In-Reply-To: <875xzy3frj.fsf@yahoo.com> (message from Po Lu on Fri, 12 Jan 2024 20:20:00 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:278018 Archived-At: > From: Po Lu > Cc: crypto@timruffing.de, stefankangas@gmail.com, 67810@debbugs.gnu.org > Date: Fri, 12 Jan 2024 20:20:00 +0800 > > Eli Zaretskii writes: > > > If we do introduce such a variable, wouldn't it prevent Emacs from > > generating the missing variants? > > On the contrary: if the generation of such variants by the font backend > is inhibited, Emacs will display bold text with overstriking, when these > variants are absent from the font itself. > > I should clarify that "generation" refers to the automatic generation of > oblique or bold fonts undertaken by a handful of our font backends, not > the overstriking implemented in xfaces.c. Then we are mis-communicating, I think: I was talking about the code in xfaces.c to which you pointed up-thread: > > Can you point me at the place in the code where we do this? > > Yes, see lines 6192 and 6045 in xfaces.c, viz.: > > if (face->font > && FONT_WEIGHT_NAME_NUMERIC (attrs[LFACE_WEIGHT_INDEX]) > 100 > && FONT_WEIGHT_NUMERIC (attrs[LFACE_FONT_INDEX]) <= 100) > face->overstrike = true; > > and > > face->overstrike > = (! NILP (font_object) > && FONT_WEIGHT_NAME_NUMERIC (face->lface[LFACE_WEIGHT_INDEX]) > 100 > && FONT_WEIGHT_NUMERIC (font_object) <= 100); I ws suggesting to introduce a variable that would inhibit this. > > And wouldn't avoiding to generate them do what the OP wanted, > > i.e. have a default face's font where bold looks like regular? > > No, see above. However, the matter at hand is that I can't understand > the deficiency OPs request is supposed to address. Surely, if the > author of a package which inserts icons wishes that they not be bold, > the package should set the face by which they are displayed to one that > isn't? AFAIU, the OP's request was to allow to have a default font that lacks the bold variant, so that the bold face attribute could be displayed in some other way, or maybe not at all.