defaults -currentHost write -globalDomain AppleFontSmoothing -int 0

defaults -currentHost write -globalDomain AppleFontSmoothing -int 1

defaults -currentHost write -globalDomain AppleFontSmoothing -int 2

defaults -currentHost write -globalDomain AppleFontSmoothing -int 3

Then reboot to see the changes.
]]>