JRE-15 Greyscale text is too dark comparing with subpixel AA

Adjusted default value for greyscale text rendering in freetype

(cherry picked from commit f80497c4f0)
This commit is contained in:
Alexey Ushakov
2016-08-23 20:11:59 +03:00
committed by alexey.ushakov@jetbrains.com
parent cc7796b8b2
commit d5ea87b9de

View File

@@ -775,7 +775,7 @@ static void setDefaultScalerSettings(FTScalerContext *context) {
if (context->aaType == TEXT_AA_OFF) {
context->loadFlags = FT_LOAD_TARGET_MONO;
} else if (context->aaType == TEXT_AA_ON) {
context->loadFlags = FT_LOAD_TARGET_LIGHT;
context->loadFlags = FT_LOAD_TARGET_NORMAL;
} else {
context->lcdFilter = FT_LCD_FILTER_LIGHT;
if (context->aaType == TEXT_AA_LCD_HRGB ||