all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Scott Wheeler <scott.wheeler@gmx.de>
To: emacs-devel@gnu.org
Subject: [patch] Fix ns-antialias-text in Mac OS for 24.4
Date: Thu, 23 Oct 2014 03:31:43 +0200	[thread overview]
Message-ID: <2C5AA177-0F30-418C-ACA3-11BFA9E76E73@gmx.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 436 bytes --]

Hi fellows —

In the recent release ns-antialias-text / mac-allow-anti-aliasing were broken for Mac (they have no effect).  I did a binary search through the commits until I pinned it on this and the following commit:

https://gitorious.org/emacs-transition/review6/commit/61cf50507d6564d741c0ec399b6a33fa248669a5

The patch was very simple — it just needs to check the setting again, and is attached for review.

-Scott


[-- Attachment #2: emacs-fix-ns-antialias-text-mac-os.patch --]
[-- Type: application/octet-stream, Size: 759 bytes --]

commit 6ee23077cee8f619edd4c4ffccfdbcf976da6866
Author: Scott Wheeler <scott@directededge.com>
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 1bb3fb1..55b9a9f 100644
--- a/src/macfont.m
+++ b/src/macfont.m
@@ -2763,7 +2763,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));
 

             reply	other threads:[~2014-10-23  1:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-23  1:31 Scott Wheeler [this message]
2014-10-23 14:15 ` [patch] Fix ns-antialias-text in Mac OS for 24.4 Scott Wheeler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2C5AA177-0F30-418C-ACA3-11BFA9E76E73@gmx.de \
    --to=scott.wheeler@gmx.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.