Disable subpixel anti-aliasing on macOS

Apple removed the setting to manually disable subpixel anti-aliasing in recent macOS versions as it's supposed to be automatic, however I've noticed that it is still effective in many apps.

To manually disable it on system level, run the following command in the terminal:

defaults -currentHost write -g AppleFontSmoothing -int 0

Found here.