Tags: macosx

Борьба с рендерингом шрифтов на внешних дисплеях - Mac OS X

On external displays Mac OS X prefers YCbCr colorspace (same colorspace that used in motion picture industry, and in jpeg images) instead of default RGB colorspace which is characteristic for PC displays. This can force LCD to apply some faulty color-space conversion algorithm which makes fonts blurry, discounting how one's eyesight goodness (Another problem is sub-pixel font smoothing, which uses arcane knowledge of display's pixel components ordering (and they are RGB!), which is probably why colorspace conversion ruins everything). But this is not a lost cause and there is a way to force OS not to use such strange colorspace, which makes things look better.

Following magic has to be applied in steps:

  1. Download ruby script that will generate override files to remove monitor support for YCbCr from there
  2. Close laptop lid and run script
  3. Copy directory generated by script into /System/Library/Displays/Overrides/ (this will require superuser permission)
  4. Reboot
  5. Modify display's settings in it's menu (display OSD, not Mac Os X) by selecting picture advanced -> picture mode -> sRGB, HDMI RGB range to be 0 - 255 (if you happen to use BenQ display pretending to be a TV too)
  6. Tweak Mac OS X antialiasing settings with command
    defaults -currentHost write -globalDomain AppleFontSmoothing -int 2
  7. Remove wrong colour profile associated with display in Mac OS X settings ( System Preferences -> Displays -> Color -> <select best profile or do calibration> )
  8. Enjoy nice fonts!