From: Chaoyi <chaoyi.yin@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: Re: bug#4736: 23.1; ns-antialias-text set to nil has no effect
Date: Wed, 11 Nov 2009 22:34:57 -0800 (PST) [thread overview]
Message-ID: <cc0e224e-93a5-4e48-84ec-719193c3d1da@j24g2000yqa.googlegroups.com> (raw)
In-Reply-To: mailman.9008.1255782444.2239.bug-gnu-emacs@gnu.org
On Oct 17, 7:16 am, Adrian Robert <adrian.b.rob...@gmail.com> wrote:
> http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4736
>
> I cannot reproduce this. You must make a new frame or otherwise
> trigger full redrawing, but it works here. Please experiment a
> little, and if you can narrow down the conditions that cause failure,
> please report back.
I confirm this bug with latest CVS version. Attached patch seems
fixed this problem.
--
diff --git a/src/nsfont.m b/src/nsfont.m
index dded6a3..ec52cc8 100644
--- a/src/nsfont.m
+++ b/src/nsfont.m
@@ -50,7 +50,7 @@ extern Lisp_Object Qnormal, Qbold, Qitalic,
Qcondensed, Qexpanded;
static Lisp_Object Vns_reg_to_script;
static Lisp_Object Qapple, Qroman, Qmedium;
extern Lisp_Object Qappend;
-extern int ns_antialias_text;
+extern Lisp_Object ns_antialias_text;
extern float ns_antialias_threshold;
extern int ns_tmp_flags;
extern struct nsfont_info *ns_tmp_font;
@@ -1229,7 +1229,7 @@ nsfont_draw (struct glyph_string *s, int from,
int to, int x, int y,
CGContextSetFont (gcontext, font->cgfont);
CGContextSetFontSize (gcontext, font->size);
- if (ns_antialias_text == Qnil || font->size <=
ns_antialias_threshold)
+ if (NILP (ns_antialias_text) || font->size <=
ns_antialias_threshold)
CGContextSetShouldAntialias (gcontext, 0);
else
CGContextSetShouldAntialias (gcontext, 1);
next parent reply other threads:[~2009-11-12 6:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.9008.1255782444.2239.bug-gnu-emacs@gnu.org>
2009-11-12 6:34 ` Chaoyi [this message]
2010-01-08 15:18 bug#4736: 23.1; ns-antialias-text set to nil has no effect John Whitley
-- strict thread matches above, loose matches on Subject: below --
2009-10-17 12:16 Adrian Robert
2010-02-14 13:31 ` Francis Devereux
2010-02-14 13:31 ` Francis Devereux
2010-02-14 15:38 ` bug#4736: " David Reitter
2010-02-14 15:38 ` David Reitter
2010-02-14 16:01 ` bug#4736: " Francis Devereux
2010-02-14 16:01 ` Francis Devereux
2010-02-15 23:36 ` John Whitley
2010-02-25 20:40 ` bug#4736: " Francis Devereux
2010-02-25 20:40 ` Francis Devereux
2010-02-26 0:49 ` bug#4736: " Chong Yidong
2010-02-26 0:49 ` Chong Yidong
2010-02-27 20:42 ` bug#4736: " Francis Devereux
2010-02-15 23:36 ` John Whitley
2009-10-16 3:59 John Whitley
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=cc0e224e-93a5-4e48-84ec-719193c3d1da@j24g2000yqa.googlegroups.com \
--to=chaoyi.yin@gmail.com \
--cc=bug-gnu-emacs@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.