Skip to content
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

Blurry text on a windows electron app #8708

Closed
Spazer9 opened this issue Feb 17, 2017 · 17 comments
Closed

Blurry text on a windows electron app #8708

Spazer9 opened this issue Feb 17, 2017 · 17 comments
Assignees
Labels
blocked/need-info ❌ Cannot proceed without more information bug 🪲

Comments

@Spazer9
Copy link

Spazer9 commented Feb 17, 2017

I've noticed that text appears more blurry on electron than in regular Chrome.

Mind you i'm using the latest electron version 1.6.0.

This is a comparison between Chrome (Top) and Electron's Chromium (Bottom)

Any ideas how to fix this?

@groundwater
Copy link
Contributor

Hi @Spazer9, thank you for the bug report. What version and OS are you using?

In future, following the Issue Template can help ensure a quicker diagnosis. Thanks.

@groundwater groundwater added blocked/need-info ❌ Cannot proceed without more information bug 🪲 labels Feb 17, 2017
@Spazer9
Copy link
Author

Spazer9 commented Feb 17, 2017

Thanks Groundwater for the note - i'm testing on Windows 10 64bit

@zeke
Copy link
Contributor

zeke commented Feb 17, 2017

@Spazer9 are you seeing this on older versions of Electron?

@Spazer9
Copy link
Author

Spazer9 commented Feb 17, 2017

@zeke Yup - just tried with 1.3 - same exact effect.

@nikola
Copy link

nikola commented Feb 20, 2017

@Spazer9 Are you using an Intel IGPU on that machine? There are quite a few Intel-iGPU-related rendering bugs in Chrome, depending on iGPU model, GPU driver and Chromium build.

@Spazer9
Copy link
Author

Spazer9 commented Feb 24, 2017

@nikola Thanks for the response - I'm using a gtx 980 and i7.

Fonts are generally blurrier and less crisp on Electron (tried many versions).

Here's another screenshot (left is chrome, right is electron)

@zeke
Copy link
Contributor

zeke commented Mar 2, 2017

@Spazer9 are you using multiple monitors? There's a PR in the works that may address the issue you're seeing: #8786

@zcbenz
Copy link
Contributor

zcbenz commented Jun 12, 2017

There are usually two reasons for blurry text on Windows:

  1. Text drawn with DirectWrite does not show "clearly" on your display;
  2. Your are using multiple displays with different DPIs.

For 1) we are not able to fix it because Chrome now only uses DirectWrite for text rendering, for 2) it has been solved at least in 1.6.x.

@6a7070
Copy link

6a7070 commented Nov 18, 2017

I use FireFox and notice that the fonts are more clear in FF than when the same webapp displays inside of an electron app. If the issue is DirectWrite, why does the font appear clear in Chrome, but not in electron? Can this be fixed?

@utd1878
Copy link

utd1878 commented Jan 26, 2018

Has this been fixed? I'm running the latest electron and when running on windows I still see the blurriness in the text.
screen shot 2018-01-26 at 10 57 09 am

@Nantris
Copy link
Contributor

Nantris commented Aug 9, 2018

This is definitely still an issue in Electron 2.0.5 on Windows 7 x64. No matter what I do, I get grayscale antialiasing. It is especially ugly in a webview. Normally Electron's grayscale antialiasing is of equal quality to subpixel as far as I can tell, but in webviews it's VERY blurry.

I mean, my first impression looking at the text is, "wow that is really blurry." It's so blurry I was sure at first that I was distorting the page in the webview somehow, but I'm not. Thoughts?

This image compares Chrome with Electron loading a page inside a webview:
image

Here's what it looks like loaded directly into Electron, not a webview:
image

@binaryfunt
Copy link

This might be a duplicate of #6344 . Sub-pixel anti-aliasing is disabled unless you set an opaque background to the BrowserWindow

@nilslindemann
Copy link

It is now in the FAQ

@highergroundstudio
Copy link

I used app.disableHardwareAcceleration(); to fix this problem. Is this the best way? I had tried everything else and this is the only way I could get it to stop. Especially since the developer tools was doing the same blurriness. Using Electron 9.0.0

@GiovanH
Copy link

GiovanH commented Oct 20, 2020

@groundwater Is additional information still needed on this?

@chrismcfee
Copy link

6 years later and this issue still isnt fixed lol

@Blobson
Copy link

Blobson commented Dec 10, 2023

Turning OFF FXAA in Nvidia Control Panel fixes the issue.
Source: desktop/desktop#17444 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/need-info ❌ Cannot proceed without more information bug 🪲
Projects
None yet
Development

No branches or pull requests