Skip to main content
mSH.1
Associate III
August 31, 2022
Question

There is an inquiry about the use of fonts in TTF format.

  • August 31, 2022
  • 3 replies
  • 1187 views

hello​

​

Among the TTF fonts, there are special characters that cannot be directly input from the keyboard. Is there a way to input them in GFX?

​

For example, #code...

​

thank.​

​

This topic has been closed for replies.

3 replies

Yoann KLEIN
ST Employee
August 31, 2022

Hello @mSH.1​ ,

Could you please provide an example of a font which doesn't support this special characters ?

When I try with Verdana, "#code" is displayed correctly both in the canvas and simulator view.

Thanks,

/Yoann

Yoann KLEINST Software Developer | TouchGFX
mSH.1
mSH.1Author
Associate III
August 31, 2022

hello,

​

​

The special symbols to be used are marked in red below.

​

This is a special opportunity that cannot be entered on the keyboard, but it is a situation where you have to use this special symbol...

​

​

0693W00000SuApIQAV.png​

thank

Yoann KLEIN
ST Employee
August 31, 2022

Hello @mSH.1​ ,

If you want to use special characters, you have to be sure that the font you use supports them. To check that, you can take a look at this post.

Then, if you want to call a Unicode or ASCII characters by referencing its code, you can use wildcards and reproduce the step described here.

Hope that this helps,

/Yoann

Yoann KLEINST Software Developer | TouchGFX