Getting segmentation fault when trying to assign a font.
Would be nice if it did not crash !
I currently have defined three fonts which are used to render different parts of my screen.
Note that this code is C++ and the variables are private members of my screen class and the fonts are assigned in the class constructor.
The font member variables are defined as such:
const lv_font_t * _smallFont; const lv_font_t * _normalFont; const lv_font_t * _largeFont;
I assign them thus:
_smallFont = &lv_font_montserrat_12; _normalFont = &lv_font_montserrat_16; _largeFont = &lv_font_montserrat_28;
This all seems to work fine.
Then I decided I needed another font so I added:
const lv_font_t * _readoutFont;
_readoutFont = &lv_font_montserrat_24;
When I run this code I immediately get a Segmentation fault.
If I comment out _readoutFont = &lv_font_montserrat_24; then the code runs fine !
Any thoughts what I might be doing wrong ?