提交 dbf4cef0 编写于 作者: P prr

8214481: freetype path does not disable TrueType hinting with AA+FM hints

Reviewed-by: serb, psadhukhan
上级 256e28a7
......@@ -859,6 +859,17 @@ static jlong
return ptr_to_jlong(getNullGlyphImage());
}
/*
* When using Fractional metrics (linearly scaling advances) and
* greyscale antialiasing, disable hinting so that the glyph shapes
* are constant as size increases. This is good for animation as well
* as being compatible with what happened in earlier JDK versions
* which did not use freetype.
*/
if (context->aaType == TEXT_AA_ON && context->fmType == TEXT_FM_ON) {
renderFlags |= FT_LOAD_NO_HINTING;
}
if (!context->useSbits) {
renderFlags |= FT_LOAD_NO_BITMAP;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册