Haha, this is an issue that anyone using LVGL will eventually find themselves facing. I believe in newer versions, it is possible to change the font size natively. I assume you’re using PROS? If so, you will be stuck with LVGL 5.3, which is pretty old at this point and does not have any documentation available. For my team’s code this season, the Wayback Machine has proved invaluable, and a copy of the old documentation is available here.
I actually faced a similar issue while creating my team’s autonomous selector this season. I ended up solving this issue by creating a custom font with a custom size.
Steps to do this:
Get a .ttf file of the font you want. I quite like Microsoft’s Selawik font, but I’m sure you could also find the ttf file for the default LVGL font.
Upload said .ttf file to this website to convert it to C code. Make sure you tick the Convert as built-in font checkbox located at the bottom of the page. Don’t worry about any of the Unicode character stuff, just make sure you type all the characters you will need into the List text box (Don’t forget the space character!!!). Make sure you specify what size you want your font to be in the Height box.
Press convert to download the resulting C code.
Copy this file into the same folder as your UI code.
Add the following code somewhere at the top of your UI code:
LV_FONT_DECLARE(my_font_name);
To use this font, simply put the following code into your label’s style:
style.text.font = &my_font_name;
Hope this helps! Let me know if you need any more help, I’m currently thinking about creating an LVGL on the V5 Brain tutorial, which I may post sometime soon.