How to solve the problem of borders in fonts created with FontCvtDemo software

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

    • How to solve the problem of borders in fonts created with FontCvtDemo software

      Create a font with the FontCvtDemo program. The font displayed on the emulator has a border, but I don't want the border to exist. How can I remove it?

      Source Code

      1. #define ID_WINDOW_0 (GUI_ID_USER + 0x00)
      2. #define ID_TEXT_0 (GUI_ID_USER + 0x01)
      3. #define ID_TEXT_1 (GUI_ID_USER + 0x02)
      4. static const GUI_WIDGET_CREATE_INFO _aDialogCreate[] = {
      5. { WINDOW_CreateIndirect, "Window", ID_WINDOW_0, 0, 30, 800, 480, 0, 0x0, 0 },
      6. { TEXT_CreateIndirect, "lowercase characters", ID_TEXT_0, 20, 100, 800, 100, 0, 0x64, 0 },
      7. { TEXT_CreateIndirect, "CAPITAL CHARACTERS", ID_TEXT_1, 20, 200, 800, 150, 0, 0x64, 0 },
      8. };
      9. static void _cbDialog(WM_MESSAGE* pMsg) {
      10. WM_HWIN hItem;
      11. switch (pMsg->MsgId) {
      12. case WM_INIT_DIALOG:
      13. hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_0);
      14. TEXT_SetTextColor(hItem, GUI_GREEN);
      15. TEXT_SetFont(hItem, &GUI_FontArial50);
      16. hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_1);
      17. TEXT_SetFont(hItem, &GUI_FontArial50);
      18. TEXT_SetTextColor(hItem, GUI_RED);
      19. break;
      20. default:
      21. WM_DefaultProc(pMsg);
      22. break;
      23. }
      24. }
      25. void MainTask(void) {
      26. WM_HWIN hWin;
      27. GUI_Init();
      28. GUI_UC_SetEncodeUTF8(); // Enable UTF8 decoding
      29. WM_SetDesktopColor(GUI_YELLOW);
      30. hWin = GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), _cbDialog, WM_HBKWIN, 0, 0);
      31. while (1) {
      32. GUI_Delay(10);
      33. }
      34. }
      Display All
      Files
      • MainTask.7z

        (6.83 kB, downloaded 23 times, last: )
    • Hi,

      Actually this is the limitation of the demo version of the Font Converter. To get rid of the borders around each character you could purchase the full version of the tool. The intention of the demo version is to figure out what is possible with the tool, since it offers the same features as the full version.

      Under the following link you will find a price list which includes the Font Converter (#3.04.00):
      segger.com/purchase/pricing/emwin/

      Regards,
      Sven