Skip to content
Browse files

Disable NSTextField/NSTextView SPAA for the time being, since it seem…

…s to stop working when focus is lost
  • Loading branch information...
1 parent 076af7d commit d8660285422d52e24c4343c61875663693f85ae1 @jspahrsummers jspahrsummers committed Jul 22, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 lib/Support/NSTextView+TUIExtensions.m
View
9 lib/Support/NSTextView+TUIExtensions.m
@@ -19,9 +19,12 @@ static void fixedDrawRect (NSTextView *self, SEL _cmd, NSRect rect) {
CGContextSetAllowsFontSubpixelQuantization(context, YES);
CGContextSetShouldAntialias(context, YES);
- CGContextSetShouldSmoothFonts(context, YES);
- CGContextSetShouldSubpixelPositionFonts(context, YES);
- CGContextSetShouldSubpixelQuantizeFonts(context, YES);
+
+ // TODO: SPAA seems to stop working when text fields and text views lose
+ // focus, so it's disabled for now.
+ CGContextSetShouldSmoothFonts(context, NO);
+ CGContextSetShouldSubpixelPositionFonts(context, NO);
+ CGContextSetShouldSubpixelQuantizeFonts(context, NO);
if (self.superview) {
// NSTextView likes to fall on non-integral points sometimes -- fix that

0 comments on commit d866028

Please sign in to comment.
Something went wrong with that request. Please try again.