Hello Admin,
I am trying to make one dynamic font from vector data by STemWin by steps below.
1. Creating the vector data from *.ttf file by the program Bin2C.exe converter
2. In the main program, implementing the converted file above then trying to create new font:
Display All
3. When debugging it was hang in function GUI_TTF_CreateFont(&Font0, &Cs0) and did not return 1 in function FTC_Manager_LookupFace then no font generated further.
Questions:
- STM32L496G-DISC board
- IAr V8.20
Reference:
GUI_TTF_CreateFontAA() does not work!
Attachment:
- Converted font file AauxProBlack.7z
- Debug window when unit freezing
Regards,
DT
I am trying to make one dynamic font from vector data by STemWin by steps below.
1. Creating the vector data from *.ttf file by the program Bin2C.exe converter
- Sample font is _acAauxProBlack (converted file was attached below)
2. In the main program, implementing the converted file above then trying to create new font:
Source Code: test.c
- // Set parameters for accessing the font file
- //
- Data.pData = _acAauxProBlack; // Address
- Data.NumBytes = sizeof(_acAauxProBlack); // Size
- //
- // Set creation parameters of first font
- //
- Cs0.pTTF = &Data; // Use address of GUI_TTF_DATA
- Cs0.PixelHeight = 10; // Pixel height
- Cs0.FaceIndex = 0; // Initialize to 0
- //
- // Create font
- //
- GUI_TTF_CreateFont(&Font0, &Cs0);
- //
- // Draw something using the fonts
- //
- GUI_SetTextMode(GUI_TM_NORMAL);
- GUI_SetFont(&Font0);
- GUI_DispString("Hello world\n");
3. When debugging it was hang in function GUI_TTF_CreateFont(&Font0, &Cs0) and did not return 1 in function FTC_Manager_LookupFace then no font generated further.
Questions:
- The GUI_TTF_CreateFont could be able to generate font _acAauxProBlack with height 10 to internal RAM ? I tried with 24 like example in document STemWin532.pdf (part 11.7.3 ) but it did not work either.
- In case this function working with internal RAM probably, how can store it to external RAM instead ?
- STM32L496G-DISC board
- IAr V8.20
Reference:
GUI_TTF_CreateFontAA() does not work!
Attachment:
- Converted font file AauxProBlack.7z
- Debug window when unit freezing
Regards,
DT