News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Keko

#1
Discussion - EVE / Multiple custom fonts
June 21, 2022, 08:03:54 PM
Hi,

I am using BT817Q controller and I need 2 custom fonts in my project.
I have successfully used EVE Assets Builder to create fonts, load it into the flash and use fontcache.
But I have performance problems because only one of the fonts is in the cache. I would like to load one font into the fontcache and second one into the RAM_G.
And I can not find any working example. Can someone please help me.

Here is the code I am using:
/*
unified.blob            : 0      : 4096
saarland_120_ASTC.glyph : 4096   : 420480
saarland_120_ASTC.xfont : 424576 : 320
saarland_200_ASTC.glyph : 424896 : 479168
saarland_200_ASTC.xfont : 904064 : 320
*/

if (E_OK == EVE_init_flash())
{
           EVE_cmd_fontcache(12, 0xf0000, 0x80000);
           EVE_cmd_flashread(0, 424576,320); /* copy .xfont from FLASH to RAM_G, offset and length are from the .map file */           
           EVE_cmd_flashread(MEM_FONT, 904064,320); /* copy .xfont from FLASH to RAM_G, offset and length are from the .map file */
}

EVE_cmd_setfont2_burst(12,0,32);
EVE_cmd_setfont2_burst(13,MEM_FONT,32);

Thank you...