Important: posts that do not use this template will be ignored or closed.
Before posting
Get familiar with Markdown to format and structure your post
Be sure to update lvgl from the latest version from the master branch.
Be sure you have checked the relevant part of the documentation. We will not respond in detail to posts where you haven’t read the relevant documentation.
If applicable use the Simulator to eliminate hardware related issues.
Delete this section if you read and applied the mentioned points.
Description
What MCU/Processor/Board and compiler are you using?
STM32
What LVGL version are you using?
V7.0
What do you want to achieve?
change size.
What have you tried so far?
lv_obj_set_size();
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.
As you’ve discovered, labels (by default) do not allow their size to be changed using the standard functions. This is because the default long mode controls the label’s size itself.
If you do want to customize the label’s size, you can choose a different mode (like LV_LABEL_LONG_CROP or LV_LABEL_LONG_BREAK).
I am trying to change the SYMBOL size on this topic. I have multiple labels that contain some of the fontAwesome special characters (LV_SYMBOL_UP, LV_SYMBOL_DOWN, LV_SYMBOL_LEFT, LV_SYMBOL_RIGHT) … I am using these as navigation indicators, but I am wanting to change the size of these symbols. Is this possible?
any update on this?
i’ve created different fonts with my symbols at different sizes, but i can’t actually use at the same time, as the variable glyph_bitmap is already defined …
Could be nice to resize without creating every time a new icon set into a new font.