Getting crisper fonts in OS X after switching from Windows

34,494

Solution 1

Some time ago, while preparing a presentation for a client that was to be viewed using a Mac, I've faced the same issue.


Tweak

A simple tweak to the anti-aliasing improved the rendering of fonts for the monitor used:

  1. Open the terminal: Applications → Utilities → Terminal

  2. Type:

    defaults -currentHost write -g AppleFontSmoothing -int 2
    

    You can use numbers between 1 and 4. Four is the default one.

    For me, I've got the desirable result using the value two.

  3. Restart the OS.


Comparison:

I didn't perform any comparison, but users from the link below have compared the improvement using Chrome.

  1. Use Chrome and load a website on the first tab;

  2. Apply a difference value from the above command line reference;

  3. Open a new tab and access the same website;

  4. Compare by looking at both tabs side by side.


Credits:

Credits on this solution to: tonymacx86 at http://tonymacx86.blogspot.pt.

Solution 2

System Preferences had an option to use a lighter text rendering style, but it was removed in 10.6. You can still use it by modifying property lists though.

defaults write -g AppleFontSmoothing -int 1
sudo defaults write -g AppleFontSmoothing -int 1

The second command is needed for windows shown by processes owned by root like the force quit window.

I've always used the light setting. It's closer to the weight of printed text and makes especially Japanese text and light text on a dark background look better in my opinion.

Eclipse doesn't seem to support subpixel rendering on OS X, so text might look different in it than in native applications. I can't tell it from the screenshot, but check if LCD font smoothing (subpixel rendering) is enabled.

If clicking the checkbox has no effect, it might be because subpixel rendering is not enabled automatically on some LCDs. Setting AppleFontSmoothing to 2 or 1 might force it to be enabled.

Solution 3

Although you cant turn off the font smoothing on OSX you can try a few things to mitigate it

Coping with OSX font rendering

There is also an Apple Support article that deals with this issue too.

Solution 4

There are a two settings in the System Preferences > Appearance pane.

If you change the size at which font smoothing is turned off I think it will look sharper.

There is an option to turn LCD font smoothing on/off but I can't see a difference, I think it's sub pixel smoothing on LCD screens, so probably screen specific. I have it turned off.

Share:
34,494

Related videos on Youtube

Yoga
Author by

Yoga

Updated on September 18, 2022

Comments

  • Yoga
    Yoga almost 2 years

    I have switched my programming environment from Windows 7 to Mac OS X Lion, and I missed the Windows' crispy front rendering, for example, under Eclipse, you can check the screenshots.

    OS X:

    Windows:

    Of course there are differences in font family and size, but the Windows version seems has better font rendering.

    Are there any setting in OS X I can improve the typography?

    • Franz Wong
      Franz Wong almost 12 years
      Apple love that anti-aliasing method so much that they hammered it into Safari on the Windows platform: joelonsoftware.com/items/2007/06/12.html and codinghorror.com/blog/2007/06/…
    • brevno
      brevno almost 12 years
      @MarkHenderson Newer versions of Safari use native text rendering on Windows.
    • Spiff
      Spiff almost 12 years
      For those wondering why there's a difference, the short answer is that OS X's rendering values fidelity to the typeface over crispness, whereas Windows' rendering values crispness over fidelity to the typeface. The ultimate solution is to upgrade to a Retina display, where antialiasing becomes moot.
  • AJweb
    AJweb over 11 years
    How good to have my fonts back! My head was exploding after just a few hours of coding with the awful smoothed text on PyCharm. I still don't understand why there is no setting for this in the preferences (Using Apple Display 22", but had to run the defaults command).
  • user375251
    user375251 almost 8 years
    Dealing with the same issue on a Mac Book Pro with an Dell HD monitor connected... Is there a way to set it to different values for the internal and external monitor?