I want to change font size with transition effect(lv_anim_path_linear). To achieve these, I have used API “lv_style_set_text_font(style, &my_font1);” and when event occurs I have used font “lv_style_set_text_font(style, &my_font2);”. Then apply transition using API “lv_style_set_transition()”. But I can’t able to achieve smooth transition when font will changes. It will suddenly change.
I’m using Visual code simulator on ubuntu environment.
It’s on version V8.3
I want to achieve smooth transition while font change.
I have taken two “lv_style_t *style” variable. One is loaded with my_font1 and another one is loaded with my_font2. And then apply these style to my label with specified state(i.e. LV_STATE_DEFAULT(For style1) & LV_STATE_FOCUSED(For style2) ) so, that when state change, my label font will change based on state changed with mentioned transition time in API “lv_style_transition_dsc_init()”.
But It doesn’t reflect applied transition parameters(which I configured in API “lv_style_transition_dsc_init(x,y, lv_anim_path_linear, 300, 0, NULL )”) while font change.