AnsweredAssumed Answered

STemWin V5.26 not displaying extended characters?

Question asked by Barta.Hank on Feb 2, 2015
Latest reply on Mar 9, 2015 by Barta.Hank
I'd like to display the characters on the "GUI_Font20_1" font above 127. I have modified the "Hello World example (STM32Cube_FW_F4_V1.4.0\Projects\STM32F429I-Discovery\Applications\STemWin\STemWin_HelloWorld) with the following changes to BASIC_HelloWorld.c.

/*********************************************************************
*
*       MainTask
*/
#define S 117
static const char hiChars1[] = { S, S+1, S+2, S+3, S+4, S+5, S+6, S+7, S+8, S+9, 0 };
#define S 128
static const char hiChars2[] = { S, S+1, S+2, S+3, S+4, S+5, S+6, S+7, S+8, S+9, 0 };
#define S 138
static const char hiChars3[] = { S, S+1, S+2, S+3, S+4, S+5, S+6, S+7, S+8, S+9, 0 };
 
void MainTask(void) {
  GUI_Clear();
  GUI_SetFont(&GUI_Font20_1);
  GUI_DispStringAt(hiChars1, 0, 0);
  GUI_DispStringAt(hiChars2, 0, 20);
  GUI_DispStringAt(hiChars3, 0, 40);
  GUI_DispStringAt(hiChars1, 0, 60);
  while(1);
}
On the screen I get two display lines (with "uvwxyz{|}~") with two blank lines in between.

I searched the manual (UM03001) for some hint of what I had overlooked and could find nothing. What do I need to do to get the extended characters in the font to display?

Thanks!

Outcomes