cancel
Showing results for 
Search instead for 
Did you mean: 

Character is not generated correctly

JJ.Lin
Associate III

Hi,

I am trying to add the character '123∞' to the "verdana_40" font data. Before this, Some characters (between 0x20 - 0x7A)has been added to it.They are managed by array "unicodes_verdana_40_4bpp_0[]", while I found that the the character '∞' was generated in a new array "unicodes_verdana_40_4bpp_4[]".They are of the same font but the '∞' was separated. The texts_all_languages generated like this:

// Texts.cpp
TEXT_LOCATION_FLASH_PRAGMA
KEEP extern const touchgfx::Unicode::UnicodeChar texts_all_languages[] TEXT_LOCATION_FLASH_ATTRIBUTE =
{
    0x31, 0x32, 0x33, 0x221e, 0x0, // @0 "123?"
    0x2, 0x0 // @5 "<>"
};
 
// Table_verdana_40_4bpp.cpp
extern const uint8_t* const unicodes_verdana_40_4bpp[] =
{
    unicodes_verdana_40_4bpp_0,
    0,
    0,
    0,
    unicodes_verdana_40_4bpp_4
};

It seems that it cannot be indexed.So where is the problem? How to generate the character beyond the range of ASCII?

Thanks for watching!

/jjlin

2 REPLIES 2
Alexandre RENOUX
Principal

Hello JJ.Lin,

Can you share your test project ?

The .touchgfx file, assets/ folder and gui/ folder should be enough.

/Alexandre

MM..1
Chief III

I am trying to add the character '123∞'

you insert not one char but four chars