Fixing font smoothing on OSX

While I was experimenting with themes in GNU Emacs for OSX, the font smoothing somehow got messed up for the entire OS. A quick Google search didn’t exactly yield a helpful answer, as they just directed me to the System Preferences, in the “General” section, and told me to make sure that the “LCD font smoothing” box was checked. This didn’t help me because it was already checked, and toggling it didn’t actually make a difference.

What actually ended up fixing it for me was to set font smoothing at the command line. Open up a terminal, and type the following to see if the value is currently set:

defaults -currentHost read -globalDomain AppleFontSmoothing

This command will show the current value, or alert you if there is no value currently set. If you want to delete the value (thereby restoring the default), do the following:

defaults -currentHost delete -globalDomain AppleFontSmoothing

You can set the value with the following command, replacing with level of smoothing:

defaults -currentHost write -globalDomain AppleFontSmoothing -int <value>

0 – No smoothing
1 – Light smoothing
2 – Medium smoothing
3 – Strong smoothing

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s