From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: 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 Message-ID: <87pmu95ww1.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="300"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 18818@debbugs.gnu.org, Alan Third , Sun Yijiang To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 19 16:32:19 2021 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 1mGj5f-000ATa-Kh for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Aug 2021 16:32:19 +0200 Original-Received: from localhost ([::1]:57994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGj5e-0001e8-MA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Aug 2021 10:32:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGj5O-0001dc-Gy for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2021 10:32:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48973) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGj5O-0007HI-8B for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2021 10:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGj5O-00082n-0y for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2021 10:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Aug 2021 14:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18818 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 18818-submit@debbugs.gnu.org id=B18818.162938351630625 (code B ref 18818); Thu, 19 Aug 2021 14:32:01 +0000 Original-Received: (at 18818) by debbugs.gnu.org; 19 Aug 2021 14:31:56 +0000 Original-Received: from localhost ([127.0.0.1]:60517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGj5D-0007tZ-BP for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:31:55 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:50080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGj54-0007hS-Ga for 18818@debbugs.gnu.org; Thu, 19 Aug 2021 10:31:47 -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=xMHUaoxEuEsJdHKh4ssvWa5IQGl+Dy5oWUvn40qYSic=; b=HSwhgfCJ7tSy9qFmRFcCNUiLJB ckO0pJaTYyxmmAzFAwuTSRSO0IGcj15ySz4LPlyCLgBnwrcv6aBZGbUJqy+5uWIUdQLuMTp5B3gtW j70ktnvfCij0BwmdR3Alm32UbhyNVOqra1xUwHV2kilLJ0ua8l2+DG8liHlP28rXKhMc=; Original-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 1mGj4o-00071y-MW; Thu, 19 Aug 2021 16:31:31 +0200 In-Reply-To: (YAMAMOTO Mitsuharu's message of "Sun, 19 Jun 2016 08:54:43 +0900") 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" Xref: news.gmane.io gmane.emacs.bugs:212219 Archived-At: YAMAMOTO Mitsuharu 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 =E2=80=98face-ignored-= fonts=E2=80=99: > > (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 =20 -@subsection Font Panel +@subsection Fonts =20 @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}. =20 +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 --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no