GNU bug report logs - #18818
Incorrect font weight in dark background, Emacs 24.4 on Mac OS X 10.10

Previous Next

Package: emacs;

Reported by: Sun Yijiang <sunyijiang <at> gmail.com>

Date: Fri, 24 Oct 2014 18:14:01 UTC

Severity: normal

Tags: confirmed, moreinfo

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 18818 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
Cc: 18818 <at> debbugs.gnu.org, Alan Third <alan <at> idiocy.org>,
 Sun Yijiang <sunyijiang <at> gmail.com>
Subject: Re: bug#18818: Incorrect font weight in dark background, Emacs 24.4
 on Mac OS X 10.10
Date: Thu, 19 Aug 2021 16:31:26 +0200
YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp> writes:

> This is a long-standing bug in Core Graphics.  The Mac port contains
> an info node suggesting some workaround:
>
>      Also, synthetic bold looks thinner if the background is darker than
>   the foreground and the LCD font smoothing is turned on.  In such cases,
>   you can turn off synthetic bold for particular fonts and use
>   overstriking instead by customizing the variable ‘face-ignored-fonts’:
>
>        (add-to-list 'face-ignored-fonts "\\`-[^-]*-monaco-bold-")

So it sounds like this isn't something we can fix on the Emacs side, but
perhaps we should just add this text to the manual?

That is, if this is still an issue in Emacs 28; I haven't checked.

Alan, does this look reasonable to you?

diff --git a/doc/emacs/macos.texi b/doc/emacs/macos.texi
index cd1db1a7ba..b60b584c82 100644
--- a/doc/emacs/macos.texi
+++ b/doc/emacs/macos.texi
@@ -201,7 +201,7 @@ Mac / GNUstep Customization
 number makes the trackpad less sensitive.
 @end table
 
-@subsection Font Panel
+@subsection Fonts
 
 @findex ns-popup-font-panel
 The standard Mac / GNUstep font panel is accessible with @kbd{M-x
@@ -211,6 +211,16 @@ Mac / GNUstep Customization
 @c  To make the setting permanent, use @samp{Save Options} in the
 @c Options menu, or run @code{menu-bar-options-save}.
 
+Synthetic bold looks thinner if the background is darker than the
+foreground and the LCD font smoothing is turned on.  In such cases,
+you can turn off synthetic bold for particular fonts and use
+overstriking instead by customizing the variable
+@code{face-ignored-fonts}:
+
+@lisp
+(push "\\`-[^-]*-monaco-bold-" face-ignored-fonts)
+@end lsip
+
 @node Mac / GNUstep Events
 @section Windowing System Events under macOS / GNUstep
 @cindex events on macOS


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 327 days ago.

Previous Next


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