cancel
Showing results for 
Search instead for 
Did you mean: 

How to enter non-typeable unicode characters in typography wildcard characters

DSwea.1
Associate III

How can I enter unicode non-ASCII characters (ex.: Ballot Box (U+2610) and Ballot Box Checked (U+2611)) in typography wildcards, and/or in single-use strings?

2 REPLIES 2
Yoann KLEIN
ST Employee

Hello @DSwea.1​ ,

You have first to check if the character you want to display is included in the font you are using :

  • Go to your TouchGFX project, then generated>fonts>src, and then open the file corresponding to your font (e.g. Font_***_XX_XXbpp.cpp).
  • In this file, you will see the framebuffer data for each character supported by this font. So, if you cannot find your character in this file, it means that it's not supported by this font. Another way to check if it's supported or not is to simply generate code in TouchGFXDesigner. If the character is not recognized, it will prompt a warning message in the log window.

0693W00000Np2qhQAB.png 

So, if you character doesn't exist in the font, you will have to find another font that provides what you want, and include it in TouchGFXDesigner, by copying the .ttf file in the TouchGFX>assets>fonts folder. Then, restart TouchGFXDesigner and select your new font. For instance, Arial Unicode MS font works for Ballot Box characters.

Let me know if that helped you,

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX
wired
Senior III

There is also some information in this post. See my answer at the end for an easy way to do this on a laptop computer.