Hi Team,
I'm using an MSP430FR5969 with a BOOSTXL-SHARP128 LCD display. Because of a legacy program, we use the display upside down - that is, the "top" of the display is the edge with the ribbon cable. If I use the standard font file "fontfixed6x8.c", the characters are displayed upside down (naturally) as we look at the display. In an attempt to display the characters "right side up" for our orientation, I've created a file "fontfixed6x8Reversed.c", which I have attached.
Within my code I create the Context:
tContext g_sContext;
I also added this line to grlib.h:
extern const Graphics_Font g_sFontFixed6x8Reversed;
I then use GrStringDraw to put a string sHR onto the display:
If I comment out the g_sFontFixed6x8Reversed line and use the g_sFontFixed6x8 line, my text string displays as expected. It's upside down and in the upper right corner of the display as seen from our orientation.
However, if I comment out the g_sFontFixed6x8 line and use the g_sFontFixed6x8Reversed line instead (changing nothing else in the program), it doesn't display anything.
I've tried to use the debugger to step through GrStringDraw but whichever font I use, the characters are seen as "absent" when in the debugger and nothing is displayed. If I run without stepping into GrStringDraw, the original font displays but the Reversed one does not.
I'm hoping someone can look at the attached file and tell me if they see something that I did incorrectly when building the font file.
Thanks in advance!
Kind Regards,
Jejomar