Custom bitmap in tabview btnm


Custom bitmap, instead of custom font in a tabview btnm

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

Raspberry Pi

What do you want to achieve?

A large icon, with smaller text underneath in a tabview btnm

What have you tried so far?

Creating my own custom font

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.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

Is there a way to use a simple bitmap in a tabview btnm, what I would like for example is a large cogwheel symbol with smaller text underneath saying settings. I could achieve this by making my own custom font as per documentation, but is there an easier way?

The tabview’s btnm or normal btnm support only text,
it doesn’t support for icon/image.

The other way already works. You can display text in lv_img with lv_img_set_src(img, LV_SYMBOL_DUMMY"Some text").

I’m thinking about if it would be possible to automatically render text’s as images if they look like a pointer to an lv_img_dsc_t. I’ll add this to my todo list.