emwin 调用字体库

#include <stdlib.h>
#include "DIALOG.h"

static const char * _apStrings[] = {
	"\xe8\xbd\xbb\xe6\x9d\xbe\xe6\x8c\x89\xe6\x91\xa9"  //轻松按摩
};

extern GUI_CONST_STORAGE GUI_FONT GUI_FontPiex31;

void MainTask(void) {
   GUI_Init();
   GUI_DrawBitmap(&bmAuto, 0, 0);
   GUI_SetFont(&GUI_FontPiex31);
   GUI_UC_SetEncodeUTF8();
   GUI_SetColor(GUI_GRAY);
   for(char i = 0; i < GUI_COUNTOF(_apStrings); i++) 
   {
	   GUI_DispStringAt(_apStrings[i], 110, 195);
	   GUI_DispNextLine();
   }

   
  while (1)
  {
	  GUI_Delay(100);
  }


}


后补!!

401 Comments

Add a Comment

电子邮件地址不会被公开。