问题
How does one disable antialiasing inside the code editor in Xcode, but not system-wide?
回答1:
For Xcode 3.x the necessary terminal command is:
defaults write com.apple.xcode AppleAntiAliasingThreshold <some integer value>
For Xcode 4 & 5 it is:
defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold <some integer value>
For Xcode 6 you may first need to enter the following at a terminal console:
defaults write com.apple.dt.Xcode NSFontDefaultScreenFontSubstitutionEnabled YES
Then, as per usual:
defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold <some integer value>
Using AppleAntiAliasingThreshold 24
should get you what you want.
回答2:
so this does work, but in order for it to take effect, you must:
go to preferences->appearance and change "turn off text smoothing for font sizes" and set the font pt. size.
other commands that are helpful:
defaults -currentHost write .GlobalPreferences AppleSmoothFontsSizeThreshold -int 16
defaults -currentHost write .GlobalPreferences AppleFontSmoothing -int 0
also, if you just want to change a specific application, instead of everything, this does the trick:
defaults write com.apple.safari AppleSmoothFixedFontsSizeThreshold -int 16
defaults write com.apple.safari AppleSmoothFontsSizeThreshold -int 16
defaults write com.apple.safari AppleAntiAliasingThreshold -int 16
this will turn off anti aliasing for any font that is smaller than size 16.
I had this same problem for editing code, took me ages to work it out.
Also, you can change any application you want, just check out your installed apps, from a command terminal cd to ~/Library/Preferences and then ls to see the referencable names of installed apps.
Hope this helps someone!
回答3:
defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold 24 definitely works !
Many thanks for this : on my CRT, antialiasing = blurring. So, like Jaime Chan, i used to turn off antialias in xcode 3.x
来源:https://stackoverflow.com/questions/5268931/disable-antialiasing-inside-xcode