mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Add FT_Set_Char_Size #249
This commit is contained in:
parent
30a17959e5
commit
9baa2f97fd
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user