What MCU/Processor/Board and compiler are you using?
xr872
What LVGL version are you using?
8.2.0
What do you want to achieve?
1.I have two font files, one containing “abc” and one containing “def”.
2.Use create_label() to create a label,now it only display “abc”
3.Use load_font(),it’s still just showing “abc”
4. What should I do to display “abcdef”
What have you tried so far?
I try to use lv_refr_now(lv_disp_t * disp) and _lv_inv_area(lv_disp_t * disp, const lv_area_t * area_p), but none of them worked
Hello, it seems to me that the fallback font is only used when there are no symbols/glyphs for a character in a font. Say you have two fonts with the following glyphs:
Font 1: ABCDEFG
Font 2: ABCDEFGHIJKL (fallback font!)
Now let’s say you want to set a label to say “HELLO”
it will recognize that font 1 does not have the H and L, so it uses the H and L from the fallback font.
Result would be: HELLO .
I’m not sure what you want to achieve with this code here, could you explain?
I think you need to load the font first, including the fallback, and then try to put text in a label.
When I set a label, the fallback for Font 1 is NULL. Maybe later, I’ll download Font 2 from the Internet, at which point I’ll set the Font1->fallback = Font 2.
At this point, how do we make the Font that is not in Font 1 appear without recreate the label?
When I set a label, the fallback for Font 1 is NULL. Maybe later, I’ll download Font 2 from the Internet, at which point I’ll set the Font1->fallback = Font 2.
At this point, how do we make the Font that is not in Font 1 appear without recreate the label?