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

[Windows] DirectWrite rendering does not use subpixel antialiasing #1537

Closed
nyanpasu64 opened this issue Dec 16, 2016 · 4 comments
Closed

[Windows] DirectWrite rendering does not use subpixel antialiasing #1537

nyanpasu64 opened this issue Dec 16, 2016 · 4 comments

Comments

@nyanpasu64
Copy link

nyanpasu64 commented Dec 16, 2016

Summary

When I add "font_options": ["directwrite"] to my settings, Sublime Text renders all text using grayscale antialiasing. Only "gdi" uses subpixel antialiasing.

Expected behavior

DirectWrite renders with subpixel antialiasing. Taking a screenshot of white text, then zooming in, will reveal colors.

Actual behavior

DirectWrite renders with grayscale antialiasing.

Steps to reproduce

  1. Menu -> Preferences -> Settings.
  2. Add the option, "font_options": ["directwrite"],
  3. (Optional) "font_options": ["directwrite", "subpixel_antialias"], does not fix the issue.

Note: "font_options": ["gdi"], works.

Environment

  • Operating system and version: Windows 10 x64
  • Sublime Text: x64, Build 3126
@vovkkk
Copy link

vovkkk commented Dec 17, 2016

Might be related #905
FWIW, on my Win8 it is definitely not greyscale, but surely it does not use/respect system settings of ClearType.

@FichteFoll
Copy link
Collaborator

FichteFoll commented Dec 19, 2016

Works for me on Windows 10:

2016-12-19_12-31-13_sublime_text

Please share a screenshot of how it is rendered for you.

@nyanpasu64
Copy link
Author

nyanpasu64 commented Dec 29, 2016

I think there's something wrong with my system, causing the default ClearType level to be set to 0. Breaks Firefox unless I manually set the ClearType level = 80 (minimizes fringing for me).

Does anyone have the same issue? If so, does Firefox also lack ClearType for fonts other than Arial/Verdana/Georgia/SegoeUI...?

@nyanpasu64
Copy link
Author

nyanpasu64 commented Jan 1, 2017

Bug fixed: Open regedit, go to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\<displayName>, and delete all folders with CleartypeLevel=0.

https://msdn.microsoft.com/en-us/library/aa970267.aspx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants