Hello,
I have problems displaying fonts with size beyond 255 pixels.
As the GUI_FONT structure has the YSize and the YDist vars declared as U8, when the size is beyond 255 the vars overflows
and the text is displayed badly in the display.
I think that these vars must be declared as U16 if I'm right.
struct GUI_FONT {
...
U8 YSize;
U8 YDist;
U8 XMag;
U8 YMag;
...
U8 Baseline;
U8 LHeight; /* Height of a small lower case character (a,x) */
U8 CHeight; /* Height of a small upper case character (A,X) */
};
Is there one alternative way for display large text?
Best regards
I have problems displaying fonts with size beyond 255 pixels.
As the GUI_FONT structure has the YSize and the YDist vars declared as U8, when the size is beyond 255 the vars overflows
and the text is displayed badly in the display.
I think that these vars must be declared as U16 if I'm right.
struct GUI_FONT {
...
U8 YSize;
U8 YDist;
U8 XMag;
U8 YMag;
...
U8 Baseline;
U8 LHeight; /* Height of a small lower case character (a,x) */
U8 CHeight; /* Height of a small upper case character (A,X) */
};
Is there one alternative way for display large text?
Best regards