feat(freetype): support bold and italic (#2824)
* feat(freetype):support bold and italic * fix(format): replace code-format.sh with code-format.py Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
@@ -12,7 +12,10 @@ void lv_example_freetype_1(void)
|
||||
info.name = "./lvgl/examples/libs/freetype/arial.ttf";
|
||||
info.weight = 24;
|
||||
info.style = FT_FONT_STYLE_NORMAL;
|
||||
lv_ft_font_init(&info);
|
||||
info.mem = NULL;
|
||||
if(!lv_ft_font_init(&info)) {
|
||||
LV_LOG_ERROR("create failed.");
|
||||
}
|
||||
|
||||
/*Create style with the new font*/
|
||||
static lv_style_t style;
|
||||
|
||||
Reference in New Issue
Block a user