Mercurial > hg > openjdk > jdk8u > jdk
changeset 13714:d32fc856e071 jdk8u242-b01
8212071: Need to set the FreeType LCD Filter to reduce fringing.
Reviewed-by: prr, lbourges
Contributed-by: John Neffenger <john@status6.com>
author | prr |
---|---|
date | Thu, 31 Oct 2019 14:22:49 +0100 |
parents | e5867c8ddb03 |
children | 8ec1d42a9bad |
files | src/share/native/sun/font/freetypeScaler.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/native/sun/font/freetypeScaler.c Thu Oct 17 13:48:28 2019 +0100 +++ b/src/share/native/sun/font/freetypeScaler.c Thu Oct 31 14:22:49 2019 +0100 @@ -41,6 +41,7 @@ #include FT_SIZES_H #include FT_OUTLINE_H #include FT_SYNTHESIS_H +#include FT_LCD_FILTER_H #include FT_MODULE_H #include "fontscaler.h" @@ -490,6 +491,8 @@ if (errCode == 0) { errCode = FT_Activate_Size(scalerInfo->face->size); } + + FT_Library_SetLcdFilter(scalerInfo->library, FT_LCD_FILTER_DEFAULT); } return errCode;