Browse Source

Fix the DynamicFont hinting setting being ineffective

Hugo Locurcio 7 năm trước cách đây
mục cha
commit
6deb1889d0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scene/resources/dynamic_font.cpp

+ 1 - 1
scene/resources/dynamic_font.cpp

@@ -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;