[Font] How to draw rotated font?

Post Reply
9chuckyoung
Posts: 93
Joined: 28 Jan 2019, 13:49

14 May 2020, 14:20

Code: Select all

GUI_RECT Rect;
Rect.x0 = 32;
Rect.y0 = 96;
Rect.x1 = 32 + 128;
Rect.y1 = 96 + 128;
GUI_SetTextMode(GUI_TM_TRANS);
GUI_SetFont(GUI_FONT_D80);
GUI_DispStringInRectEx(szText, &Rect, GUI_TA_HCENTER | GUI_TA_VCENTER, strlen(szText), GUI_ROTATE_CW);
Note: TEXT widget rotate approach needs a callback, please refer to the official SEGGER emWin forum: https://forum.segger.com/index.php/Thre ... -a-window/

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests