Question about LVGL font scaling function

I would like to achieve an effect where the font size decreases over time, but I have found that whether using the built-in font library or a font library created with FreeType, the minimum unit of font size is 1. This causes a sudden jump in font size when scaling,
for example,
when the font size starts at 20 and ends at 10,
the font size can only change from 20 to 19, 18, 17, 16…11, 10, which is not a smooth transition.

I would like to achieve a smoother scaling effect,
for example, starting with a font size of 20 and ending with a font size of 10,
the font size would change from 20 to 19.9, 19.8, 19.7…10.2, 10.1, 10 over time.

Is there a way to achieve this?

1 Like

I heard that it is possible to achieve font scaling with a canvas, but I don’t know how to do it.

Thanks for your advice, I’ll try to see if it can happen.

Thank you for your advice. It worked well.
I used Canvas to draw label text and zoomed in using lv_canvas_transform