Hello everyone,
I would like to use the GUI_TTF_CreateFont() function.
I have an error during the compilation. There is no definion for GUI_TTF_CreateFont() function ! I use a standard binary library (version: STemWin522_patch1_CM4_IAR)
Is it a known problem ?
Display All
I would like to use the GUI_TTF_CreateFont() function.
I have an error during the compilation. There is no definion for GUI_TTF_CreateFont() function ! I use a standard binary library (version: STemWin522_patch1_CM4_IAR)
Is it a known problem ?
C Source Code
- //
- // Set parameters for accessing the font file
- //
- Data.pData = &GUI_FontArialNarrow49; // Address
- Data.NumBytes = sizeof(GUI_FontArialNarrow49); // 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 = 48; // Pixel height
- Cs1.FaceIndex = 0; // Initialize to 0
- //
- // Create 2 fonts
- //
- GUI_TTF_CreateFont(&Font0, &Cs0); // NO DEFINITION !!!
- GUI_TTF_CreateFont(&Font1, &Cs1); // NO DEFINITION !!!
- //
- // Draw something using the fonts
- //
- GUI_SetFont(&Font0);
- GUI_DispString("Hello world\n");
- GUI_SetFont(&Font1);
- GUI_DispString("Hello world");