Skip to content

Commit

Permalink
Don't force antialiasing or SPAA one way or the other in NSTextView+T…
Browse files Browse the repository at this point in the history
…UIExtensions -- let the running OS use its defaults.

This enables SPAA on Mountain Lion, and _should_ disable it on Lion (the latter is untested, though).
  • Loading branch information
jspahrsummers committed Jul 26, 2012
1 parent ac2e9d3 commit 1f83f00
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/Support/NSTextView+TUIExtensions.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ static void fixedDrawRect (NSTextView *self, SEL _cmd, NSRect rect) {
CGContextSetAllowsFontSubpixelPositioning(context, YES);
CGContextSetAllowsFontSubpixelQuantization(context, YES);

CGContextSetShouldAntialias(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);

// NSTextView likes to fall on non-integral points sometimes -- fix that
if ([self.superview respondsToSelector:@selector(backingAlignedRect:options:)]) {
self.frame = [self.superview backingAlignedRect:self.frame options:NSAlignAllEdgesNearest];
Expand Down

0 comments on commit 1f83f00

Please sign in to comment.