GNU bug report logs - #67810
29.1; fonts use synthetic bold on Linux / pgtk

Previous Next

Package: emacs;

Reported by: Tim Ruffing <crypto <at> timruffing.de>

Date: Wed, 13 Dec 2023 12:05:01 UTC

Severity: normal

Found in version 29.1

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: crypto <at> timruffing.de, 67810 <at> debbugs.gnu.org
Subject: bug#67810: 29.1; fonts use synthetic bold on Linux / pgtk
Date: Thu, 14 Dec 2023 09:28:09 +0200
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  67810 <at> debbugs.gnu.org
> Date: Thu, 14 Dec 2023 08:09:11 +0800
> 
> Tim Ruffing <crypto <at> timruffing.de> 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.




This bug report was last modified 1 year and 152 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.