Fix the DynamicFont hinting setting being ineffective

This commit is contained in:
Hugo Locurcio 2018-06-29 21:38:53 +02:00
parent 22dac831bc
commit 6deb1889d0
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

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;