| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright 2012 Google Inc. | |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license that can be | |
| 5 * found in the LICENSE file. | |
| 6 */ | |
| 7 | |
| 8 #include "system_preferences.h" | |
| 9 | |
| 10 #import <Cocoa/Cocoa.h> | |
| 11 | |
| 12 void setSystemPreferences() { | |
| 13 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
| 14 | |
| 15 // Set LCD font smoothing level for this application (does not affect other | |
| 16 // applications). Based on resetDefaultsToConsistentValues() in | |
| 17 // http://trac.webkit.org/browser/trunk/Tools/DumpRenderTree/mac/DumpRenderT
ree.mm | |
| 18 enum { | |
| 19 NoFontSmoothing = 0, | |
| 20 LightFontSmoothing = 1, | |
| 21 MediumFontSmoothing = 2, | |
| 22 StrongFontSmoothing = 3, | |
| 23 }; | |
| 24 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; | |
| 25 [defaults setInteger:MediumFontSmoothing forKey:@"AppleFontSmoothing"]; | |
| 26 | |
| 27 [pool release]; | |
| 28 } | |
| OLD | NEW |