Can someone please recommend the best way to make a celsius sign?
Did you try using the degree symbol?
The font you use should contain a degree glyph. The montserrat fonts, which are included in lvgl, have it.
Just add the degree char to your string you want to print (e.g: “0 °C”).
Your source file should be encoded in utf-8.
Yep, the degree symbol has been in for a few years
The degrees symbol is in the font that is packaged with LVGL.
° = Press and hold the ALT key and then on the numeric pad (while holding alt) type in 0176. Then release the alt key.
You should be able to directly enter the symbol in your C code because that symbol is ordinal 176 which is within a byte.
The world of ALT character codes. You can use that to key in just about any character you can think of and characters you didn’t know even existed.
Just a few of them.
alt(174): « ** rewind **
alt(0139): ‹ ** skip back **
alt(175): » ** fast forward **
alt(0155): › ** skip forward **
alt(16): ► ** play
alt(9): ○ ** record **
alt(254): ■ ** stop **
alt(240): ≡ ** menu button **
alt(0133): … ** menu button***
IDK which ones are supported by the native font in LVGL. If I had to take a guess I would think that they are all supported.
Well here is the definitive list of alt codes supported by the font that comes with LVGL
I am actually surprised by this list. I would have thought at least the media control, menu, copyright, trademark and registered characters would have been included