New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: overly thin font rendering on mojave #15007
Conversation
UniqueCFRef<CGColorSpaceRef> colorspace(CGColorSpaceCreateDeviceRGB()); | ||
- UniqueCFRef<CGContextRef> cgContext( | ||
- CGBitmapContextCreate(&bitmap, 16, 16, 8, 16*4, colorspace.get(), BITMAP_INFO_RGB)); | ||
+ SkUniqueCFRef<CGContextRef> noSmoothContext( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SkUniqueCFRef
was added recently in https://skia-review.googlesource.com/c/skia/+/155612, the skia version on our master doesn't have it, it should be UniqueCFRef
in this patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Patch LGTM with minor change, but please do verify if it fixes the issue before merging since its a fairly recent change in upstream. Thanks!
@deepak1556 verdict: it improves the issue significantly on mojave |
Release Notes Persisted
|
Is there a plan when this will be backported to 2.0.x and 3.0.x? |
@cebor i made an attempt this today and it looks like the patch diffs are incompatible between Chromium M62/M66 and M69, so this may be impossible 😢 I'll try to see what i can do moving forward. |
Ok, does it mean the patch is not compatible with 2.0.x and 3.0.x or only with 2.0.x? BTW: Great work, can't wait all my electron apps are fixed, cause overwriting the system defaults is not an option for me. 👍 |
@codebytere I'm running the vscode exploration build which is currently using electron 4.0.0-beta 7. However, I'm seeing zero improvement in font rendering on a retina screen compared to the release version. I still have to run |
/trop run backport-to 4-0-x |
I was unable to backport this PR to "4-0-x" cleanly; |
I tried to load microsoft.github.io using the just-released electron 4 beta 8, on macOS Mojave (10.14.1), but I do not think there are any improvements to font rendering compared to the current vs code release. Electron 4 Beta 8VS Code 1.29.1Safari |
@Zehua-Chen . I'm guessing the upgrade to Chromiuim 70 #15405 has to happen before we will see any progress on this issue, as @codebytere mentioned above...
|
@cebor backported to Electron 3 electron/libchromiumcontent#759 |
maybe we should backport this one as well https://skia-review.googlesource.com/c/skia/+/177880 |
This is not fixed in 4.1.5, as per my comment in #17737. |
Description of Change
Resolves #14948.
Backports this CL from skia, which changes behavior to detect if requesting smoothing does not change the rendering, if it changes the rendering, or if it changes the rendering and applies subpixel coverage.
/cc @deepak1556 @MarshallOfSound
Checklist
npm test
passesRelease Notes
Notes: fix too-thin font rendering in MacOS Mojave