Add FT_Set_Char_Size #249

This commit is contained in:
fvanroie 2022-04-19 16:37:43 +02:00
parent 30a17959e5
commit 9baa2f97fd

View File

@ -201,6 +201,14 @@ bool lv_ft_font_init(lv_ft_info_t* info)
face_info->cnt++; face_info->cnt++;
#endif #endif
} }
FT_Error error = FT_Set_Char_Size(face, 0, info->weight * 64, 0, 0);
if(error) {
lv_mem_free(face_info);
LV_LOG_WARN("set char size error(%d)", error);
goto Fail;
}
FT_Set_Pixel_Sizes(face, 0, info->weight); FT_Set_Pixel_Sizes(face, 0, info->weight);
dsc->face = face; dsc->face = face;