How to display Unicode "backspace" Character (U+232B) in Flex button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-02 8:44 AM - last edited on ‎2024-10-09 5:21 AM by Andrew Neil
I am developing a numeric keypad and I need to have a backspace key.
I'm using Flex buttons and I want the character specified by "U+232B" to show up on the button.
How do I enter this in a "Text Visual Element".
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-02 12:17 PM
You can CTRL C on any place with character for example here "⌫" U+232B: Erase To The Left (Unicode Character) (unicodeplus.com) or i use Character map and paste in text area
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-04 7:33 AM
Thank you. It didn't occur to me to copy and paste and that was easy and worked in TouchGFX.
The issue now is that TouchGFX doesn't include the character in the .CPP file for the font and so it displays the default character.
I tried several things to make it work but was not successful. In the last attempt, I created a new typography in TouchGFX using the "Courier New Bold" font. I set the Fallback Characters to an asterisk (*). I generated the code in TouchGFX and it added "Font_courbd_60_4bpp_0.cpp" to my project. When I open that file, the the asterisk character is included. If I have to, I can do it graphicly, but I would rather just enter the character normally.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-04 7:59 AM
You mst use font that have this character. For example Arial Unicode MS
FONT_TABLE_LOCATION_FLASH_PRAGMA
KEEP extern const touchgfx::GlyphNode glyphs_ARIALUNI_TTF_40_4bpp[] FONT_TABLE_LOCATION_FLASH_ATTRIBUTE = {
{ 0, 0x003F, 20, 28, 28, 1, 22, 0, 0, 0x00 },
{ 280, 0x0041, 27, 28, 28, 0, 27, 0, 0, 0x00 },
{ 0, 0x232B, 35, 24, 24, 2, 40, 0, 0, 0x00 }
};
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-04 8:22 AM
Thank you very much. The Arial Unicode font is not on my computer but I am looking for a safe site to get it from now. Once I find that, I should be good to go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-04 9:22 AM
Well, I downloaded and installed "Arial Unicode MS.ttf" and specified it in TouchGFX and it still doesn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-04 11:02 AM
I test in 4.20 and simulator no problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-05 8:13 AM
The TouchGFX simulator fails to compile my project because it's looking for some include files that it doesn't have access to, so I don't know if it works there or not. I ended up making two new button backgrounds with the erase to left symbol embedded in that. It works and it looks fine. Again, thank you for your assistance.
