How to change size of font symbol

Description

If you use LV_SYMBOL_BARS as example or whatever symbol from font awasome that it is already build in on label or on button can you select the size of the symbol? In symbol fonts you can declare your font with specific pixel size if you create it with the font tool but how does this work with the symbols that are already build in?

What MCU/Processor/Board and compiler are you using?

esp32 simulator

What LVGL version are you using?

8.3

What do you want to achieve?

able to resize symbols

What have you tried so far?

tried to apply
lv_style_set_text_font function but it broke the symbol cause i assume that the symbol hex does not exist on the font list.

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

1 Like