BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

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

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.

Topics - nico

Pages: [1]
1
Discussion - EVE / Custom Font (right to left f.e. arabic) on BT815
« on: June 04, 2021, 05:22:45 PM »
Hi, is it possible to show arabic text on the BT815? I converted the font "Noto Sans Arabic" with the EVE Asset Builder to ASTC. I then use it with CMD_SETFONT2 and CMD_TEXT. Everything works fine for any unicode letter I tried, I have just problems with fonts which are written right to left.

This example shows how I try to display the persian text for "Hello":
Code: [Select]
Gpu_CoCmd_SetFont2(phost, customFontId, fontRamAddress, 0);
Gpu_CoCmd_Text(phost, x, y, customFontId, alignment, "سلام");

The C file is saved with UTF-8 encoding.
It results as the reversed text on the display.
Is the only way to invert the text before sending it out with CMD_TEXT? I think the result would be wrong, because f.e. in persian the letters look different if they are connected from the right or left side.

2
Discussion - EVE / Double buffering JPEG stream
« on: April 10, 2019, 01:42:13 PM »
Hi,
we are displaying a JPEG stream with a resoltion of 800x480 but due to the limited GRAM of 1MB (1 image is already 800*480*2 = 768000 Byte)
we couldn't buffer a second image which leads to a tearing effect.
This happens when the BT815 displays the image while the the new image is overwriting the old one.
Did we miss something? Maybe there is a way to synchronize it?

Best regards,
Nico

3
Discussion - EVE / BT815: Problem with displaying custom fonts
« on: February 05, 2019, 04:34:10 PM »
Hello,

I am trying to use custom fonts which I store in the flash.
I generated the fonts and the flash with the EVE-Asset-Builder v0.4.2 and selected an ASTC block footprints of 10x5.
After generating the font sizes 28-32 I create the flash which includes only the glyph files.
After that I use the addresses of the .map files and generate the fonts again to update the offsets in the xfont files.
The last thing I do is regenerating the flash with the new generated glyph files.

My program structure:
1. Transfering the generated .bin file to the flash including a CRC check
2. Switching flash to full speed mode
3. Transfering the .xfont data to GRAM
4. Set font and display the text

The problem:
As soon as I change the padding of the first line (from 0 to 50) the display begins to flicker and does not display the text line correctly.
The same happens if I display specific characters of the font.
For example:
If I show abcde the font is not displayed correctly. But if I show aaaaa or bbbbb or ccccc or ddddd or eeeee, everything seems to be fine.


Does the EVE-Asset-Builder v0.4.2 have known issues with fonts?
I tried roboto, arial and the mssong font which is included in the asset builder.
I also tried to change the ASTC block footprints (10x5, 4x4 and 8x8).
I would appreciate if you can support me with the problem.

Best Regards,
Nico

My code for displaying the text:

Code: [Select]
uint8_t font = 28;
const char *testText = "abcdefghijklmnopqrstuvwxyz0123456789";

Gpu_CoCmd_Dlstart(phost);
Gpu_Hal_WrCmd32(phost, CLEAR_COLOR_RGB(0, 0, 0));
Gpu_Hal_WrCmd32(phost, CLEAR(1, 1, 1));

for (uint8_t i = 0; i < 5; i++) { // display font 28-32
    // i is the font id, fontMap is a map which includes the addresses of each xfont data in GRAM
    uint32_t fontAddr = fontMap[font + i];
    Gpu_CoCmd_SetFont2(phost, i, fontAddr, 0);

    Gpu_CoCmd_Text(phost, 50, 10 + i * 80, i, 0, testText); // paint textline with padding left
    Gpu_CoCmd_Text(phost, 0, 10 + i * 80 + 40, i, 0, testText);
}

Gpu_Hal_WrCmd32(phost, DISPLAY());
Gpu_Hal_DLSwap(phost, DLSWAP_FRAME);
Gpu_Hal_WaitCmdfifo_empty(phost);


Pages: [1]