mirror of
https://github.com/ddv2005/AirsoftTracker.git
synced 2026-01-12 05:58:11 +00:00
Initial commit
This commit is contained in:
28
fonts/calibri_14/L1/calibri_14_L1.c
Normal file
28
fonts/calibri_14/L1/calibri_14_L1.c
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
This file is automatically generated
|
||||
calibri_14_L1
|
||||
C Source
|
||||
*/
|
||||
|
||||
#include "App_Common.h"
|
||||
|
||||
#define FONT_HANDLE (1)
|
||||
#define FONT_FILE_ADDRESS (RAM_G + 153600)
|
||||
#define FIRST_CHARACTER (32)
|
||||
|
||||
void Load_Font()
|
||||
{
|
||||
Gpu_CoCmd_Dlstart(phost);
|
||||
App_WrCoCmd_Buffer(phost, CLEAR(1, 1, 1));
|
||||
App_WrCoCmd_Buffer(phost, COLOR_RGB(255, 255, 255));
|
||||
Gpu_Hal_LoadImageToMemory(phost, "path\\to\\calibri_14_L1.raw", FONT_FILE_ADDRESS, LOAD);
|
||||
|
||||
Gpu_CoCmd_SetFont2(phost, FONT_HANDLE, FONT_FILE_ADDRESS, FIRST_CHARACTER);
|
||||
Gpu_CoCmd_Text(phost, 0, 0, FONT_HANDLE, 0, "AaBbCcDdEeFf");
|
||||
App_WrCoCmd_Buffer(phost, DISPLAY());
|
||||
Gpu_CoCmd_Swap(phost);
|
||||
App_Flush_Co_Buffer(phost);
|
||||
Gpu_Hal_WaitCmdfifo_empty(phost);
|
||||
}
|
||||
|
||||
/* end of file */
|
||||
Reference in New Issue
Block a user