8212071: Need to set the FreeType LCD Filter to reduce fringing

Reviewed-by: prr, lbourges
This commit is contained in:
John Neffenger 2018-10-16 10:54:50 -07:00 committed by Phil Race
parent eb1b046a1d
commit 0ed2c6c295

View File

@ -38,6 +38,7 @@
#include FT_SIZES_H
#include FT_OUTLINE_H
#include FT_SYNTHESIS_H
#include FT_LCD_FILTER_H
#include "fontscaler.h"
@ -397,6 +398,8 @@ static int setupFTContext(JNIEnv *env,
if (errCode == 0) {
errCode = FT_Activate_Size(scalerInfo->face->size);
}
FT_Library_SetLcdFilter(scalerInfo->library, FT_LCD_FILTER_DEFAULT);
}
return errCode;