-
Notifications
You must be signed in to change notification settings - Fork 537
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
Add settings for ClearType level on Windows #4084
Comments
There is an FreeType third party pull request modification that can add subpixel layout support for OLEDs too. I'd like to see it upstream into the main FreeType repo, so it can go to all distributions. So the word "cleartype" should be changed to something else generic (subpixel rendering) long term, especially as more open source projects gain support. Custom subpixel geometry support is already in https://github.com/snowie2000/mactype and now that someone made a modification for FreeType. I'd like to see custom subpixel geometry support become more widespread in open-source font rendering libraries. Open source text renderers now have two options;
EDIT: @vaiset, please forward this message to any issue submissions at any other repos (e.g. Electron). |
The extension cannot change electron settings. You may consider submitting an issue to vscode’s repo. |
I might have explained it badly. I don't mean changing VSCode's settings, I only mean the PDF viewer. If I launch VSCode with |
Pre-checks*
The Missed*
Text displayed by the internal PDF viewer is ugly on an OLED screen which does not have a standard RGB subpixel layout.
Here is a screenshot comparing the internal PDF viewer (left) with Firefox with
gfx.font_rendering.cleartype_params.cleartype_level = 0
(right).The picture is clearly not the best example ever, but the left picture shows colour fringing due to the ClearType subpixel rendering. The resulting text is much more thick, but I believe this may be controllable with the other cleartype_params settings in Firefox. Chrome also has a relevant setting called
--disable-lcd-text
and so does VSCode as it uses Electron. The setting in VSCode however does not fix the internal PDF viewer.The Solution*
Firefox has a setting called
gfx.font_rendering.cleartype_params.cleartype_level
which desaturates the rendered text. This doesn't disable anti-aliasing, but allows for the browser to display PDFs with grayscale rendering. This looks much better on an LG OLED panel.Anything Else?
Relevant issue highlighting why ClearType performs badly on OLED screens: microsoft/PowerToys#25595
The text was updated successfully, but these errors were encountered: