From unknown Wed Jun 25 10:48:41 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18876 <18876@debbugs.gnu.org> To: bug#18876 <18876@debbugs.gnu.org> Subject: Status: 24.4; ns-antialias-text broken in 24.4 Reply-To: bug#18876 <18876@debbugs.gnu.org> Date: Wed, 25 Jun 2025 17:48:41 +0000 retitle 18876 24.4; ns-antialias-text broken in 24.4 reassign 18876 emacs submitter 18876 Scott Wheeler severity 18876 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 28 13:05:35 2014 Received: (at submit) by debbugs.gnu.org; 28 Oct 2014 17:05:35 +0000 Received: from localhost ([127.0.0.1]:37961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjAD7-0001SK-D0 for submit@debbugs.gnu.org; Tue, 28 Oct 2014 13:05:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56832) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xj9d6-0007bh-P0 for submit@debbugs.gnu.org; Tue, 28 Oct 2014 12:28:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xj9cw-0004oJ-O0 for submit@debbugs.gnu.org; Tue, 28 Oct 2014 12:28:15 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj9cw-0004oC-K7 for submit@debbugs.gnu.org; Tue, 28 Oct 2014 12:28:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj9cr-0001J3-S9 for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2014 12:28:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xj9cn-0004me-6r for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2014 12:28:05 -0400 Received: from smtp88.iad3a.emailsrvr.com ([173.203.187.88]:53895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj9cm-0004mT-Ro for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2014 12:28:00 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp20.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id 291281802AC for ; Tue, 28 Oct 2014 12:28:00 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp20.relay.iad3a.emailsrvr.com (Authenticated sender: scott-AT-directededge.com) with ESMTPSA id 48571180366 for ; Tue, 28 Oct 2014 12:27:59 -0400 (EDT) X-Sender-Id: scott@directededge.com Received: from Erik (ip5b400622.dynamic.kabel-deutschland.de [91.64.6.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:465 (trex/5.3.2); Tue, 28 Oct 2014 16:28:00 GMT From: Scott Wheeler To: bug-gnu-emacs@gnu.org Subject: 24.4; ns-antialias-text broken in 24.4 Date: Tue, 28 Oct 2014 17:27:55 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 28 Oct 2014 13:05:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain In previous emacs versions evaluating the following line would disable antialiased fonts: (setq ns-antialias-text nil) That was broken in 24.4. I'm attaching a patch that both fixes the behavior and disables "synthetic bold", which looks pretty terrible with antialiasing disabled. I reported this on the emacs-devel list, but didn't receive any replies: http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00833.html --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=emacs-fix-ns-antialias-text-mac-os.patch commit c735f7e4af9375bba17e133a0d7b69a79ef604f1 Author: Scott Wheeler Date: Thu Oct 23 15:32:32 2014 +0200 Disable synthetic bold when antialiased fonts are disabled diff --git a/src/macfont.m b/src/macfont.m index ee86d9b..cb2d0be 100644 --- a/src/macfont.m +++ b/src/macfont.m @@ -2517,6 +2517,7 @@ macfont_open (struct frame * f, Lisp_Object entity, int pixel_size) && FONT_SLANT_NUMERIC (entity) == FONT_SLANT_SYNTHETIC_ITALIC) macfont_info->synthetic_italic_p = 1; if (!(sym_traits & MAC_FONT_TRAIT_BOLD) + && !NILP (ns_antialias_text) && FONT_WEIGHT_NUMERIC (entity) == FONT_WEIGHT_SYNTHETIC_BOLD) macfont_info->synthetic_bold_p = 1; if (sym_traits & MAC_FONT_TRAIT_MONO_SPACE) commit aded58804f19f286a15b46f87f7835919f9c2efc Author: Scott Wheeler Date: Thu Oct 23 03:13:14 2014 +0200 Check to see if the user has explicitly disabled anti-aliasing diff --git a/src/macfont.m b/src/macfont.m index 69bde9f..ee86d9b 100644 --- a/src/macfont.m +++ b/src/macfont.m @@ -2768,7 +2768,8 @@ macfont_draw (struct glyph_string *s, int from, int to, int x, int y, CGFloat advance_delta = 0; int y_draw = -s->ybase; int no_antialias_p = - (macfont_info->antialias == MACFONT_ANTIALIAS_OFF + (NILP (ns_antialias_text) + || macfont_info->antialias == MACFONT_ANTIALIAS_OFF || (macfont_info->antialias == MACFONT_ANTIALIAS_DEFAULT && font_size <= macfont_antialias_threshold)); --=-=-= Content-Type: text/plain In GNU Emacs 24.4.1 (x86_64-apple-darwin14.0.0, NS apple-appkit-1343.14) of 2014-10-25 on Erik Windowing system distributor `Apple', version 10.3.1343 Configured using: `configure --prefix=/usr/local/Cellar/emacs/24.4 --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/24.4/share/info/emacs --without-dbus --without-gnutls --with-ns --disable-ns-self-contained' Important settings: value of $LC_ALL: en_US.UTF-8 value of $LC_COLLATE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: global-git-gutter+-mode: t git-gutter+-mode: t shell-dirtrack-mode: t projectile-global-mode: t projectile-mode: t yas-global-mode: t yas-minor-mode: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-global-mode: t smartparens-mode: t global-auto-complete-mode: t auto-complete-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: t t @ g r u n g e - n o u v e a u . n e t I SPC l i k e SPC c h e e s e D o SPC y o u SPC w a n t SPC t o SPC t o u c h m SPC m y SPC m o n k e y ? - S c o t t C-c C-c s-b b s-z C-x b m a i l s-k s-b p e r s-p p e r s o n a l C-x C-f p e r s o n s-v C-a s c o t t @ d i r e c t d i r e c t e d e d g e . c o m C-x C-s C-a s-x s-v C-x C-s C-x C-s s-a x e v a l b u f x m a i l s c o t t @ g r u n g e - n o u v e a u n . n e t t e s t C-a t e s t C-c C-c s-k s-k x e m b u g e m a c b u r e p o r t Recent messages: Sending... Opening TLS connection to `secure.emailsrvr.com'... Opening TLS connection with `gnutls-cli --insecure -p 465 secure.emailsrvr.com'...failed Opening TLS connection with `gnutls-cli --insecure -p 465 secure.emailsrvr.com --protocols ssl3'...failed Opening TLS connection with `openssl s_client -connect secure.emailsrvr.com:465 -no_ssl2 -ign_eof'...done Opening TLS connection to `secure.emailsrvr.com'...done Sending email Sending email done Sending...done Making completion list... [2 times] Load-path shadows: /Users/scott/.emacs.d/.cask/24.4.1/elpa/magit-90141016/magit hides /usr/local/share/emacs/site-lisp/magit Features: (shadow sort emacsbug network-stream starttls tls mail-extr smtpmail sendmail vc-git flymake git-gutter+ git-commit-mode server log-edit easy-mmode message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete format-spec projectile ibuf-ext ibuffer pkg-info find-func grep compile comint ansi-color ring grizzl grizzl-read grizzl-core highlight-indentation yasnippet help-mode cl smartparens-ruby smartparens-config smartparens thingatpt rvm auto-complete-config auto-complete popup maxframe edmacro kmacro kde-emacs kde-emacs-bindings dirvars kde-emacs-utils imenu klaralv kdab-qstring kde-emacs-general sourcepair kde-emacs-core kde-emacs-compat kde-emacs-vars cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs pallet advice cask help-fns cl-macs gv cask-bootstrap package-build json lisp-mnt shut-up epl git commander cl-loaddefs cl-lib f dash s ucs-normalize package epg-config time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 365198 51386) (symbols 48 33333 33) (miscs 40 62 418) (strings 32 59615 23186) (string-bytes 1 1730922) (vectors 16 49616) (vector-slots 8 923815 19812) (floats 8 427 674) (intervals 56 762 15) (buffers 960 15)) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 31 14:42:09 2014 Received: (at 18876-done) by debbugs.gnu.org; 31 Oct 2014 18:42:09 +0000 Received: from localhost ([127.0.0.1]:44102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkH9D-0004Zx-ME for submit@debbugs.gnu.org; Fri, 31 Oct 2014 14:42:08 -0400 Received: from mailfe02.swip.net ([212.247.154.33]:50500 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkH97-0004ZO-JU for 18876-done@debbugs.gnu.org; Fri, 31 Oct 2014 14:42:03 -0400 X-T2-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 545644236; Fri, 31 Oct 2014 19:41:54 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Subject: Re: bug#18876: 24.4; ns-antialias-text broken in 24.4 From: =?utf-8?Q?Jan_Dj=C3=A4rv?= In-Reply-To: Date: Fri, 31 Oct 2014 19:41:53 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <9F765058-0F0A-4DC6-8C6D-11BAD53E527C@swipnet.se> References: To: Scott Wheeler X-Mailer: Apple Mail (2.1990.1) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18876-done Cc: 18876-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello. This has been fixed in the 24-branch in a slightly different way. Jan D. > 28 okt 2014 kl. 17:27 skrev Scott Wheeler : >=20 >=20 > In previous emacs versions evaluating the following line would disable > antialiased fonts: >=20 > (setq ns-antialias-text nil) >=20 > That was broken in 24.4. I'm attaching a patch that both fixes the > behavior and disables "synthetic bold", which looks pretty terrible = with > antialiasing disabled. >=20 > I reported this on the emacs-devel list, but didn't receive any = replies: >=20 > http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00833.html >=20 > >=20 >=20 > In GNU Emacs 24.4.1 (x86_64-apple-darwin14.0.0, NS = apple-appkit-1343.14) > of 2014-10-25 on Erik > Windowing system distributor `Apple', version 10.3.1343 > Configured using: > `configure --prefix=3D/usr/local/Cellar/emacs/24.4 > --enable-locallisppath=3D/usr/local/share/emacs/site-lisp > --infodir=3D/usr/local/Cellar/emacs/24.4/share/info/emacs = --without-dbus > --without-gnutls --with-ns --disable-ns-self-contained' >=20 > Important settings: > value of $LC_ALL: en_US.UTF-8 > value of $LC_COLLATE: en_US.UTF-8 > value of $LANG: en_US.UTF-8 > locale-coding-system: utf-8-unix >=20 > Major mode: Emacs-Lisp >=20 > Minor modes in effect: > global-git-gutter+-mode: t > git-gutter+-mode: t > shell-dirtrack-mode: t > projectile-global-mode: t > projectile-mode: t > yas-global-mode: t > yas-minor-mode: t > show-smartparens-global-mode: t > show-smartparens-mode: t > smartparens-global-mode: t > smartparens-mode: t > global-auto-complete-mode: t > auto-complete-mode: t > tooltip-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > column-number-mode: t > line-number-mode: t > transient-mark-mode: t >=20 > Recent input: > t t @ g r u n g e - n o u v e a u . n e t =20 > I SPC l=20 > i k e SPC c h e e s e D o SPC y o u SPC=20 > w a n t SPC t o SPC t o u c h m SPC m y=20 > SPC m o n k e y ? - S c o t t C-c=20 > C-c s-b b s-z C-x b =20 > m a i l s-k s-b p e r =20 > s-p p e r s o n a l =20 > C-x C-f p e r s o n =20 > s-v C-a =20 > =20 > s c o t t=20 > @ d i r e c t d i r e c t e d e d g e=20 > . c o m C-x C-s C-a s-x =20 > s-v C-x C-s =20 > C-x C-s s-a x e v a l =20 > b u f x m a i l s=20 > c o t t @ g r u n g e - n o u v e a u n =20 > . n e t =20 > t e s t C-a t e s t C-c C-c s-k=20 > s-k x e m b u g =20 > e m a c b u=20 > r e p o r t=20 > >=20 > Recent messages: > Sending... > Opening TLS connection to `secure.emailsrvr.com'... > Opening TLS connection with `gnutls-cli --insecure -p 465 = secure.emailsrvr.com'...failed > Opening TLS connection with `gnutls-cli --insecure -p 465 = secure.emailsrvr.com --protocols ssl3'...failed > Opening TLS connection with `openssl s_client -connect = secure.emailsrvr.com:465 -no_ssl2 -ign_eof'...done > Opening TLS connection to `secure.emailsrvr.com'...done > Sending email=20 > Sending email done > Sending...done > Making completion list... [2 times] >=20 > Load-path shadows: > /Users/scott/.emacs.d/.cask/24.4.1/elpa/magit-90141016/magit hides = /usr/local/share/emacs/site-lisp/magit >=20 > Features: > (shadow sort emacsbug network-stream starttls tls mail-extr smtpmail > sendmail vc-git flymake git-gutter+ git-commit-mode server log-edit > easy-mmode message rfc822 mml mml-sec mm-decode mm-bodies mm-encode > mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils > gmm-utils mailheader pcvs-util add-log tramp tramp-compat auth-source > eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util = mm-util > mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete > format-spec projectile ibuf-ext ibuffer pkg-info find-func grep = compile > comint ansi-color ring grizzl grizzl-read grizzl-core > highlight-indentation yasnippet help-mode cl smartparens-ruby > smartparens-config smartparens thingatpt rvm auto-complete-config > auto-complete popup maxframe edmacro kmacro kde-emacs = kde-emacs-bindings > dirvars kde-emacs-utils imenu klaralv kdab-qstring kde-emacs-general > sourcepair kde-emacs-core kde-emacs-compat kde-emacs-vars cc-mode > cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align = cc-engine > cc-vars cc-defs pallet advice cask help-fns cl-macs gv cask-bootstrap > package-build json lisp-mnt shut-up epl git commander cl-loaddefs = cl-lib > f dash s ucs-normalize package epg-config time-date tooltip electric > uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar = dnd > fontset image regexp-opt fringe tabulated-list newcomment lisp-mode > prog-mode register page menu-bar rfn-eshadow timer select scroll-bar > mouse jit-lock font-lock syntax facemenu font-core frame cham georgian > utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean > japanese hebrew greek romanian slovak czech european ethiopic indian > cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev > minibuffer nadvice loaddefs button faces cus-face macroexp files > text-properties overlay sha1 md5 base64 format env code-pages mule > custom widget hashtable-print-readable backquote make-network-process > cocoa ns multi-tty emacs) >=20 > Memory information: > ((conses 16 365198 51386) > (symbols 48 33333 33) > (miscs 40 62 418) > (strings 32 59615 23186) > (string-bytes 1 1730922) > (vectors 16 49616) > (vector-slots 8 923815 19812) > (floats 8 427 674) > (intervals 56 762 15) > (buffers 960 15)) From unknown Wed Jun 25 10:48:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 29 Nov 2014 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator