UI: disable new text hinting from D3201 by default for now.

This changes the text hinting setting to be an enum with options
Auto / None / Slight / Full. The default is Auto which currently disables
hinting.

The hinting was tested with a new FreeType version, but this is not what
is used on the buildbots an official release environment, and the fonts
look quite bad because of that. Once FreeType has been upgraded we can
change the default.

Even then the results are not ideal, perhaps due to missing subpixel
positioning and linear color blending support in BLF.
This commit is contained in:
Brecht Van Lommel
2018-08-14 17:53:27 +02:00
parent abc4beb245
commit 34029fc71a
6 changed files with 58 additions and 25 deletions

View File

@@ -538,9 +538,10 @@ class USERPREF_PT_system(Panel):
col.separator()
col.label(text="Text Draw Options:")
col.prop(system, "use_text_antialiasing")
if system.use_text_antialiasing:
col.prop(system, "use_text_hinting")
col.prop(system, "use_text_antialiasing", text="Anti-aliasing")
sub = col.column()
sub.active = system.use_text_antialiasing
sub.prop(system, "text_hinting", text="Hinting")
col.separator()