Sublime Forum

Ugly font drawing

#1

Yesterday I adjusted the cleartext settings on my Windows 10 X64 system (1903). Not sure if it affected sublime merge but there is definitely a drawing issue now.

Happy to provide a screenshot if I could attach one.

0 Likes

#2

Sublime Text and Merge use cleartype and its settings to do font rendering on Windows.

0 Likes

#3

I’m only seeing the bad drawing with Sublime Merge so far. Sublime Text looks fine. With the Dark Theme in Sublime Merge it looks less ugly but the jaggies are still visible.

0 Likes

#4

Font rendering quality via cleartype heavily depends on font face and the font/background colors.

The default ClearType tuning tool of windows is just crap. Didn’t find good settings with it as well.

Hence I hacked the registry settings as follows. You just need to add entries for each display.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Avalon.Graphics\DISPLAY1]
"ClearTypeLevel"=dword:00000064
"EnhancedContrastLevel"=dword:000000c8
"GrayscaleEnhancedContrastLevel"=dword:00000032
"TextContrastLevel"=dword:00000001
"PixelStructure"=dword:00000001
"GammaLevel"=dword:00000708

[HKEY_CURRENT_USER\Software\Microsoft\Avalon.Graphics\DISPLAY2]
"ClearTypeLevel"=dword:00000064
"EnhancedContrastLevel"=dword:000000c8
"GrayscaleEnhancedContrastLevel"=dword:00000032
"TextContrastLevel"=dword:00000001
"PixelStructure"=dword:00000001
"GammaLevel"=dword:00000708

Furthermore set the following in the Preferences.sublime-settings

	"font_options":
	[
		"dwrite_cleartype_classic"
	],
	"theme_font_options":
	[
		"dwrite_cleartype_classic"
	],

Maybe it helps.

1 Like