Merge pull request #19843 from Calinou/fix-dynamicfont-hinting-setting

Fix the DynamicFont hinting setting being ineffective
This commit is contained in:
Max Hilbrunner 2018-07-03 15:34:02 +02:00 committed by GitHub
commit e29e4e56c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -625,7 +625,7 @@ void DynamicFontAtSize::_update_char(CharType p_char) {
break;
}
int error = FT_Load_Char(face, p_char, FT_HAS_COLOR(face) ? FT_LOAD_COLOR : FT_LOAD_DEFAULT | (font->force_autohinter ? FT_LOAD_FORCE_AUTOHINT : 0));
int error = FT_Load_Char(face, p_char, FT_HAS_COLOR(face) ? FT_LOAD_COLOR : FT_LOAD_DEFAULT | (font->force_autohinter ? FT_LOAD_FORCE_AUTOHINT : 0) | ft_hinting);
if (error) {
char_map[p_char] = character;
return;