提交 874776b7 编写于 作者: P prr

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

Reviewed-by: prr, lbourges
Contributed-by: NJohn Neffenger <john@status6.com>
上级 a495795c
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include FT_SIZES_H #include FT_SIZES_H
#include FT_OUTLINE_H #include FT_OUTLINE_H
#include FT_SYNTHESIS_H #include FT_SYNTHESIS_H
#include FT_LCD_FILTER_H
#include FT_MODULE_H #include FT_MODULE_H
#include "fontscaler.h" #include "fontscaler.h"
...@@ -490,6 +491,8 @@ static int setupFTContext(JNIEnv *env, ...@@ -490,6 +491,8 @@ static int setupFTContext(JNIEnv *env,
if (errCode == 0) { if (errCode == 0) {
errCode = FT_Activate_Size(scalerInfo->face->size); errCode = FT_Activate_Size(scalerInfo->face->size);
} }
FT_Library_SetLcdFilter(scalerInfo->library, FT_LCD_FILTER_DEFAULT);
} }
return errCode; return errCode;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册