Hi there,
I have an issue on the UTF-8 encoding used with the BT816-Chip. For the use of some special symbols i need font-elements that are adressed by UTF-8 encoding with four bytes. So I converted this font
https://fontlibrary.org/de/font/symbola#Symbola-Regular that contains the symbols I want to use with EVE Asset Builder v1.2.0.
After progammming the font on my flash, I tried to adress i.e. the UTF-8 code F09FA183 to type a special arrow. The display didn't show anything.
Then I tried to use a symbol with a three byte UTF-8 encoding i.e. E2AF86 (a different arrow symbol) and everything worked fine.
I also tried different ways to use the symbol:
One try was about putting each byte into a text array by hand like shown below, what worked as describes up to 3-byte encoding.
switch (direction)
{
case 0://arrow up
{
arrow_x = x1+((x2-x1)/2)-20;
arrow_y = y1+((y2-y1)/2)-12;
EVE_cmd_setfont2(13, SPECIAL_FONT2_RAM_ADR,0); //special font
//this arrow is displayed correctly
LCD_FuncData.text_buffer[0] =0xE2;
LCD_FuncData.text_buffer[1] =0xAF;
LCD_FuncData.text_buffer[2] = 0x85;
LCD_FuncData.text_buffer[3] = 0;
break;
}
case 1://arrow down
{
arrow_x = x1+((x2-x1)/2)-20;
arrow_y = y1+((y2-y1)/2)-12;
EVE_cmd_setfont2(13, SPECIAL_FONT2_RAM_ADR,0); //special font
//this arrow is not shown on display
LCD_FuncData.text_buffer[0] =0xF0;
LCD_FuncData.text_buffer[1] =0x9F;
LCD_FuncData.text_buffer[2] = 0xA1;
LCD_FuncData.text_buffer[3] = 0x83;
LCD_FuncData.text_buffer[4] = 0;
break;
}
}
if (button_down)
{
EVE_cmd_button(x1,y1,x2-x1,y2-y1,13,EVE_OPT_FLAT); //in here the button and its label is generated by sending the text array content to the BT-Chip
}
else
{
EVE_cmd_button(x1,y1,x2-x1,y2-y1,13,0);
}
Another try I started in the EVE Screen Editor with only a few lines:
CLEAR(1, 1, 1)
CMD_SETFONT2(13, 0,0)
CMD_TEXT(123, 117, 13, 0, "🡃?")
I opened the font data in the emulator and loaded my font. This time the display showed two questionmarks instead of the arrow. In the Inspector view i could see that the generated code actually adresses the same section as for the questionmark character.
So my question is if there is an availability to use the Symbols with four byte UTF-8 encoding or if the BT-Chip restricts the usage of them.
Hopefully somebody can answer me that question.
Regards,
Simon