Skip to content

Commit

Permalink
8212071: Need to set the FreeType LCD Filter to reduce fringing
Browse files Browse the repository at this point in the history
Reviewed-by: prr, lbourges
  • Loading branch information
jgneff authored and prrace committed Oct 16, 2018
1 parent eb1b046 commit 0ed2c6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/java.desktop/share/native/libfontmanager/freetypeScaler.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include FT_SIZES_H
#include FT_OUTLINE_H
#include FT_SYNTHESIS_H
#include FT_LCD_FILTER_H

#include "fontscaler.h"

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0ed2c6c

Please sign in to comment.