FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Show Posts

You can view here all posts made by this member. Note that you can only see posts made in areas to which you currently have access.

Topics - toty04

Pages: [1]
1
Discussion - Software / FT813 - Fonts bigger than 39 not working
« on: March 07, 2020, 05:56:14 PM »
Hi all,

I'm having a problem when trying to draw big fonts on a 5" display.
The display is Riverdi: RVT50UQFNWC01, which uses the FT813 chip as controller.
I have tried to create my own fonts and it works fine with sizes smaller than 39 (depending on the font type, it might be more or less than 39).
For the font conversion I've been using the Font_Converter_Tool_V0.4 with the following commands:
  • fnt_cvt.exe -i tt0010m_.ttf -s 40 -u myletters.txt -d 1000 -c setfont2
    fnt_cvt.exe -i tt0010m_.ttf -s 39 -u myletters.txt -d 1000 -c setfont2
From the generated files I pick up the ".rawh" file (L2 format) and convert it to a C header file.
After that I run the following 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, 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);


With the size 39 font, the letters are displayed perfectly, but with the size 40 it simply appears a white block, where the text should be.
Am I missing some commands? Is there any specific sequence I need to follow for bigger font size?
Any help would be useful.

Thanks in advance
Santiago

Pages: [1]