HI
I tring to display TTF font in STM32F779I-EVAL Board.
Test Board: STM32F779I-EVAL Board
Test code: stm cubemx sample code
c:\user\id\ STM32Cube\Repository\STM32Cube_FW_F7_V1.6.1\Projects\STM32F769I_EVAL\Applications\STemWin\STemWin_HelloWorld
But I use to GUI_TTF_CreateFontAA Function when broken diloag Image.
and I don't use to GUI_TTF_CreateFontAA Function when diloag Image is OK.
I don't understand that i don't use Font0 and use GUI_Font32_1 in BUTTON_SetDefaultFont function.
what's problem?
The code below is the code I tested.
//Default Function
GUI_Clear();
GUI_SetFont(&GUI_Font32_1);
GUI_DispStringAt("Hello world kim!", (LCD_GetXSize()-100)/2, (LCD_GetYSize()-20)/2);
//ADD Function
GUI_TTF_CS Cs0, Cs1;
GUI_TTF_DATA Data;
GUI_FONT Font0, Font1; /* Set parameters for accessing the font file */
Data.pData = _acASCII; /* Address */
Data.NumBytes = sizeof(_acASCII); /* Size */ /* Set creation parameters of first font */
Cs0.pTTF = &Data; /* Use address of GUI_TTF_DATA */
Cs0.PixelHeight = 24; /* Pixel height */
Cs0.FaceIndex = 0; /* Initialize to 0 */ /* Set creation parameters of second font */
Cs1.pTTF = &Data; /* Use address of GUI_TTF_DATA */
Cs1.PixelHeight = 24; /* Pixel height */
Cs1.FaceIndex = 0; /* Initialize to 0 */ /* Create 2 fonts */
if(GUI_TTF_CreateFont(&Font0, &Cs0)==0)
return 0;
BUTTON_SetDefaultFont(&GUI_Font20_1);
_ShowDialog();
I tring to display TTF font in STM32F779I-EVAL Board.
Test Board: STM32F779I-EVAL Board
Test code: stm cubemx sample code
c:\user\id\ STM32Cube\Repository\STM32Cube_FW_F7_V1.6.1\Projects\STM32F769I_EVAL\Applications\STemWin\STemWin_HelloWorld
But I use to GUI_TTF_CreateFontAA Function when broken diloag Image.
and I don't use to GUI_TTF_CreateFontAA Function when diloag Image is OK.
I don't understand that i don't use Font0 and use GUI_Font32_1 in BUTTON_SetDefaultFont function.
what's problem?
The code below is the code I tested.
//Default Function
GUI_Clear();
GUI_SetFont(&GUI_Font32_1);
GUI_DispStringAt("Hello world kim!", (LCD_GetXSize()-100)/2, (LCD_GetYSize()-20)/2);
//ADD Function
GUI_TTF_CS Cs0, Cs1;
GUI_TTF_DATA Data;
GUI_FONT Font0, Font1; /* Set parameters for accessing the font file */
Data.pData = _acASCII; /* Address */
Data.NumBytes = sizeof(_acASCII); /* Size */ /* Set creation parameters of first font */
Cs0.pTTF = &Data; /* Use address of GUI_TTF_DATA */
Cs0.PixelHeight = 24; /* Pixel height */
Cs0.FaceIndex = 0; /* Initialize to 0 */ /* Set creation parameters of second font */
Cs1.pTTF = &Data; /* Use address of GUI_TTF_DATA */
Cs1.PixelHeight = 24; /* Pixel height */
Cs1.FaceIndex = 0; /* Initialize to 0 */ /* Create 2 fonts */
if(GUI_TTF_CreateFont(&Font0, &Cs0)==0)
return 0;
BUTTON_SetDefaultFont(&GUI_Font20_1);
_ShowDialog();