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: Thu, 14 Dec 2023 09:28:09 +0200 Message-ID: <83y1dxqm46.fsf@gnu.org> References: <0719018bb386e840efaa655b7c0b765ece9cd9ff.camel@timruffing.de> <83le9ys2d3.fsf@gnu.org> <3ebaf489f6dad748258c7fb01d3200b674ebb1f1.camel@timruffing.de> <83h6kmrzkz.fsf@gnu.org> <7ea3f7db448191f2b9886604084abe84d0caaf61.camel@timruffing.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20370"; mail-complaints-to="usenet@ciao.gmane.io" Cc: crypto@timruffing.de, 67810@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 14 08:29:12 2023 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 1rDg9f-000519-PT for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Dec 2023 08:29:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDg9H-0008Qv-I1; Thu, 14 Dec 2023 02:28:47 -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 1rDg9G-0008QY-3X for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 02:28:46 -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 1rDg9F-0006h1-Rk for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 02:28:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rDg9W-00020g-1u for bug-gnu-emacs@gnu.org; Thu, 14 Dec 2023 02:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Dec 2023 07:29:02 +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.17025389277702 (code B ref 67810); Thu, 14 Dec 2023 07:29:02 +0000 Original-Received: (at 67810) by debbugs.gnu.org; 14 Dec 2023 07:28:47 +0000 Original-Received: from localhost ([127.0.0.1]:60098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDg9D-000206-NQ for submit@debbugs.gnu.org; Thu, 14 Dec 2023 02:28:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDg99-0001zp-DC for 67810@debbugs.gnu.org; Thu, 14 Dec 2023 02:28: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 1rDg8i-0005mV-PN; Thu, 14 Dec 2023 02:28:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=M9IWACoX+nAl4Pm1BSHES12xIO9XfzAmR/Yay0iuvPk=; b=GkWNXwLJPhmD5XFlI6bn KrZvvX+DEt2xY3x37qyCWJ8uc4UpE2MxAOlR3WKF5kn/EuapLnmhgOn8lM7RVgSIfa5tMWHUYRJx9 dJ1P9S+rvarknQfYm9Q1gICz50uGJzmTRCpYbOYZHfWOMscYQG8WaZegnp9XGZDhXUXSEQEeEbZ6S 1Y+uyPKnwE4xpU3cCdAmg4zsPIKu3qX9r0EM52AMt6Z3N5Iv4bmcFCB0qXFOK2GTnW778ir2awFGc Dccm68NM3j6vk3gBezLnAm2uJiJaObM/UUB9iokPkq8VAHEAjpphSNHjuQRi6BliNcG0dHglR1zxo jq95Ew1GjQ45yg==; In-Reply-To: (message from Po Lu on Thu, 14 Dec 2023 08:09:11 +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:276176 Archived-At: > From: Po Lu > Cc: Eli Zaretskii , 67810@debbugs.gnu.org > Date: Thu, 14 Dec 2023 08:09:11 +0800 > > Tim Ruffing writes: > > > On Wed, 2023-12-13 at 15:39 +0200, Eli Zaretskii wrote: > >> > >> Maybe this is done by the calls to the font backend with FC_EMBOLDEN > >> parameter?  I'm no expert on these font backends, but maybe you could > >> play with those calls and see if disabling them gets you what you > >> want?  You can find the relevant code by searching the C sources for > >> FC_EMBOLDEN. > > > > Thanks for the suggestion, but no luck unfortunately. What also didn't > > help is going back to Xft by configuring like this: > > ./configure --without-pgtk --without-cairo > > > > I don't know what to try next, I guess it will be useful to have > > someone more familiar with the font stuff look at this. > > There's no bug here: when a bold face is displayed by a font which > doesn't provide a bold variant, Emacs overstrikes text displayed in that > font to create visual contrast between the bold text and its > surroundings. This is implemented independently of font backend > features such as FC_EMBOLDEN. Can you point me at the place in the code where we do this? > If this contrast is undesirable, remove the weight attribute from the > face. We could have a variable exposed to Lisp to inhibit this overstriking, if some users want that.