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":
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.
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.