3
« on: March 10, 2020, 09:14:38 PM »
Hi,
thanks for the answer. I've realized I was missing some code lines (although I've been doing this for both size and for the small one works fine). Now I've added the code to assign the bitmap properties to my custom font, but still not working.
Complete code:
// Write Font to RAM
Gpu_Hal_WrMem(phost, 1000, font_test, sizeof(font_test));
// Init display buffer
Gpu_CoCmd_Dlstart(phost);
App_WrCoCmd_Buffer(phost, CLEAR_COLOR_RGB(0,0,0));
App_WrCoCmd_Buffer(phost, CLEAR(1,1,1));
App_WrCoCmd_Buffer(phost, BITMAP_HANDLE(1));
App_WrCoCmd_Buffer(phost, BITMAP_SOURCE(1000 + 148));
App_WrCoCmd_Buffer(phost, BITMAP_LAYOUT(L2,11,48));
App_WrCoCmd_Buffer(phost, BITMAP_SIZE(NEAREST,BORDER,BORDER,42,48));
App_WrCoCmd_Buffer(phost, COLOR_RGB(255,255,255));
// Set Font
Gpu_CoCmd_SetFont2(phost, 1, 1000, 1);
// Write
Gpu_CoCmd_Text(phost, 230, DispHeight/2, 1, OPT_CENTERX|OPT_CENTERY,
(const char8_t*)"Bienvenido!");
// Show buffer
App_WrCoCmd_Buffer(phost, DISPLAY());
Gpu_CoCmd_Swap(phost);
App_Flush_Co_Buffer(phost);
Gpu_Hal_WaitCmdfifo_empty(phost);
Best regards, Santiago