You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Text Rendering on macOS changed with Electron 3.0 #19356
As reported in #18916 (comment), we observed a significant change in how text is rendered on a High-DPI display on macOS after upgrading Atom to use Electron >= 3.0.
Below you can find a zoomed-in screenshot of rendering the word Lorem in a variety of environments. Please, click on all of the images and quickly browse through the tabs to appreciate how stark the difference is for this pull request.
Atom on Electron 3
VS Code on Electron 3 (latest published version)
Atom on Electron 2 (Atom 1.38.0-beta0)
Lorem on TextEdit
You can reproduce the above tests by using Fira Code Retina, 15px.
Causes of the change
We believe the change was caused by upgrading to a newer Chromium version, but it is unclear whether the new rendering is wrong or not. Specifically, this seems to be related to the global "Use font smoothing when available" setting on macOS, and Atom is now just honoring that configuration. Indeed, when rendering the word Lorem in TextEdit (a native macOS application), we observe the same rendering as in Atom on Electron 3.
Next steps
@rafeca and I discussed what to do about this, and it seems okay to proceed with allowing this new rendering behavior. Users can go back to the previous behavior by adding the following CSS to their personal style sheet:
/* This will change how font-smoothing is applied to the entire Atom application */atom-workspace{-webkit-font-smoothing: antialiased;}/* If you just want to change how text is rendered within the editor, use this instead: */atom-text-editor{-webkit-font-smoothing: antialiased;}
If needed, in the future we could provide a configuration parameter to change the aliasing behavior without needing to write any CSS.
Couldn't find the option for "Use font smoothing when available" but adding the css from @as-cii helped to get the much nicer looking font rendering back.
Although -webkit-font-smoothing: antialiased; should be default...
Who wants an ugly rendered font for real?
(Atom Beta 1.39)
Reacted by HaoyangFan, Karl Schwaier, Matt Lyons and Spencer Smith
@vinkla thank you for the feedback. Does the setting take effect if you restart Atom? If not, did you try adding that CSS snippet to your personal style sheet?
Maybe we should remove or alter the line below in #19356 (comment)?
@vinkla: Sounds good, I just modified it to not mention the "Use font smoothing when available" option. It's strange because I remember toggling that option worked, but maybe something has changed since then.
The rendering seems to have returned to the previous behaviour (antialiased) with the merge of #19373. This can be tested in the latest nightly build: v1.41.0-nightly1.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
jasonrudolph commentedon May 17, 2019
I agree. 🚀
nathansobo commentedon May 17, 2019
Agreed. Amazing attention to detail catching this, however. Glad we could make this decision explicitly rather than accidentally.
net commentedon May 24, 2019
I greatly prefer the new rendering. 🎉
as-cii commentedon Jun 5, 2019
Given our agreement on accepting Electron's new text rendering system on macOS, I will go ahead and close this.
vertic4l commentedon Jun 12, 2019
Couldn't find the option for "Use font smoothing when available" but adding the css from @as-cii helped to get the much nicer looking font rendering back.
Although
-webkit-font-smoothing: antialiased;should be default...Who wants an ugly rendered font for real?
(Atom Beta 1.39)
Aerijo commentedon Jun 12, 2019
That's an OS setting, not an Atom setting.
It's beauty is subjective. But it matches TextEdit, the text editor provided by Apple. So there is precedence.
I do think a setting in Atom would help people with discovering there is a choice though.
vinkla commentedon Jul 1, 2019
Toggling
Use font smoothing when availablein System Preferences seems to work in TextEdit but not in Atom Nightly:Atom: 1.40.0-nightly19
macOS: 10.14.5
as-cii commentedon Jul 2, 2019
@vinkla thank you for the feedback. Does the setting take effect if you restart Atom? If not, did you try adding that CSS snippet to your personal style sheet?
vinkla commentedon Jul 2, 2019
No.
Yes, this works.
Maybe we should remove or alter the line below in #19356 (comment)?
as-cii commentedon Jul 2, 2019
@vinkla: Sounds good, I just modified it to not mention the "Use font smoothing when available" option. It's strange because I remember toggling that option worked, but maybe something has changed since then.
vinkla commentedon Jul 22, 2019
The rendering seems to have returned to the previous behaviour (antialiased) with the merge of #19373. This can be tested in the latest nightly build:
v1.41.0-nightly1.HaoyangFan commentedon Jul 26, 2019
Arcanemagus commentedon Jul 26, 2019
lock commentedon Jan 24, 2020
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!