I did a bit of testing, and I've confirmed that we are rendering fonts properly, per what Apple does. I tested Chrome and VS Code (since you mentioned them) and they are the ones that are rendering improperly, both at @1x (normal res) and @2x (retina).
I'm attaching two PNGs to this post. Both are 3x zooms of the output from the various programs. All programs are set to use Menlo at 13px. The default Mojave font settings are used. You'll notice that Terminal and Sublime Text have more letter spacing. By default we emulate Terminal and round the letter positions to whole pixels, instead of sub-pixels. You can turn this off with the
no_round setting in
From these you can see we are pretty much pixel perfect reproductions of Apple's font rendering on Mojave. I also confirmed that we properly create sub pixel antialiased rendering when you run
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO and log out and back in.
Here is the normal res output:
Here is the retina output:
At both the normal and retina resolution you can see that Chrome's antialiasing is too heavy, and VS Code is too light.