Issues with custom fonts

Description

I am having issues rendering some custom characters converted using the online tool. These are: “,”, “²”, “.” and
“â”. I have converted them from a Gill-Sans-MT.ttf to a size 30 .c file.

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

Embedeed Linux, running the application on the framebuffer.

What LVGL version are you using?

7.0.0

What have you tried so far?

I have managed to plot custom made figures as fonts. I am trying to insert them in a label using “\x2C”, “\xB2” and “\xE2”

Code to reproduce

The code block(s) should be formatted like:

static char string_example[20];
snprintf(string_example, 20, "%d\x2C%dmW/cm\xB2", value, decimal_value);

As a test, you can try using \xC2\xB2 for the squared symbol (that is the UTF-8 encoding, which is usually what LVGL expects).

Still does not work. Letters and some other symbols as “:” work fine without the \xC2 tho.

However now I get the Warning:
Warn: lv_draw_letter: glyph dsc. not found (lv_draw_label.c #417 lv_draw_letter())

It was an issue with my font versioning.