GUI_TTF_CreateFont() - No Definition

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • GUI_TTF_CreateFont() - No Definition

    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 ?

    C Source Code

    1. //
    2. // Set parameters for accessing the font file
    3. //
    4. Data.pData = &GUI_FontArialNarrow49; // Address
    5. Data.NumBytes = sizeof(GUI_FontArialNarrow49); // Size
    6. //
    7. // Set creation parameters of first font
    8. //
    9. Cs0.pTTF = &Data; // Use address of GUI_TTF_DATA
    10. Cs0.PixelHeight = 24; // Pixel height
    11. Cs0.FaceIndex = 0; // Initialize to 0
    12. //
    13. // Set creation parameters of second font
    14. //
    15. Cs1.pTTF = &Data; // Use address of GUI_TTF_DATA
    16. Cs1.PixelHeight = 48; // Pixel height
    17. Cs1.FaceIndex = 0; // Initialize to 0
    18. //
    19. // Create 2 fonts
    20. //
    21. GUI_TTF_CreateFont(&Font0, &Cs0); // NO DEFINITION !!!
    22. GUI_TTF_CreateFont(&Font1, &Cs1); // NO DEFINITION !!!
    23. //
    24. // Draw something using the fonts
    25. //
    26. GUI_SetFont(&Font0);
    27. GUI_DispString("Hello world\n");
    28. GUI_SetFont(&Font1);
    29. GUI_DispString("Hello world");
    Display All