* adding font type check
* using theme specified font
supports freetype drawing
* adding font type check
* using theme specified font
supports freetype drawing
* freetype fallback font support
* improved fallback font
* updated fallback font modifier
* docs(events) LV_EVENT_APPLY was removed (#2791)
* reverted to default font logic
* removed unused function
* improved font fallback
* font fallback for default lv_draw_letter as well
* added back masked drawing support
* fallback support for freetype uncached
* updated description
* fixed constructor initialization for ISO C
* reverted unneeded changes
* using loop instead of recursion to resolve glyph info
* simplified glyph dec resolving
* removed unused enum value
* improved lv_font_fmt_ft_dsc_t field naming
* supports pointer as freetype font source
* Updated docs for font fallback
Co-authored-by: Vincent Hamp <higaski@users.noreply.github.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
* fix(conf): ensure the template and generated file conform the coding style
and remove lv_conf_internal.h from the excluding list of code-format.cfg
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(conf): regenerate lv_conf_internal.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(lv_symbol_def.h): LV_SYMBOL_xxx by the encode order
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(lv_symbol_def.h): change the hex number to upper case
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(font): Keep the LV_FONT_DECLARE order same as LV_FONT_xxxx
and correct the comment and format
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Add or delete event callback in lv_obj_event_base, the
address of event_dsc will change, causing crash.
Change-Id: I3085a077826e4c132f8f5088d31cad1d0ffd3b9f
With this change after an lv_timer_del(disp->refr_timer); disp->refr_timer = NULL;
the user can call _lv_disp_refr_timer(NULL); anywhere to sync rendering with VSYNC or the TE signal.
lv_timer_handler() and _lv_disp_refr_timer() can not run at the same time.
When the event is bubbling, use lv_event_get_current_target
to get the obj that needs to be processed
Signed-off-by: wangxuedong <wangxuedong@xiaomi.com>
Co-authored-by: wangxuedong <wangxuedong@xiaomi.com>
* fix some errors in bidi algorithm when displaying arabic
* fix some errors in bidi algorithm when displaying arabic
* fix format error
Co-authored-by: liuxinh <liuxinh@landicorp.com>
Some platforms define uint32_t as "unsigned long" rather than "unsigned int".
The %d format specifier is mismatched and the C99 format macros are the only
portable way to handle these types.
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
* fix(config): check macro equal one correctly
1.remove all tabs from lv_conf_internal_gen.py
2.make the generated code align each other
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(conf): Make LV_COLOR_MIX_ROUND_OFS configurable
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(color): move LV_UDIV255 to lv_math.h
since lv_math.h is better place for the computation function
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(color): replace the inifite loop with LV_ASSERT
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(arc) format code
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* fix(Kconfig) add missing LV_BUILD_EXAMPLES configuration
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
* fix(fsdrv): remove the seek call in fs_open (#2736)
since the file should be located at zero after open
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* docs(os) add example and clarify some poinits
* fix(draw border):border draw error if border width > radius (#2739)
* fix(label) consider base dir lv_label_get_letter_pos in special cases
related to https://github.com/lvgl/lvgl/issues/2712#issuecomment-953463193
* improve lv_conf_internal_gen.py for better Kconfig support
Co-authored-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
Co-authored-by: guoweilkd <guowei15@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>