cancel
Showing results for 
Search instead for 
Did you mean: 

Text is garbled

Ebun.1
Senior

Thank you for helping.

There are 10 buttons.

I am changing the value of the text when I press the button.

10,20,30,40,50,60,70,80,90,100

There are 10 patterns of, but the text is as follows only in the case of 60 and 70.

? 0

Other than that, the numerical value is displayed normally.

The following code is written in the handler when the button is pressed.

dimmerValue = 60;

Unicode :: snprintf (textDimmerBuffer, TEXTCOUNTER_SIZE, "% d", dimmerValue);

textDimmer.invalidate ();

Why?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Michael K
Senior III

Make sure you have wildcard characters set up correctly for all the characters you want in all the fonts you wish to use, otherwise touchgfx won't generate the glyphs and will render them as question marks. See attached image, taken in the Texts->Typographies tab. If you are space constrained on your target, you'll need to be more selective about which characters you include, rather than 0x00-0xFF.

Embedded UI/UX Consulting: cadenza.design

View solution in original post

5 REPLIES 5
Romain DIELEMAN
ST Employee

Hi,

Could you share your code ? What font are you using ?

/Romain

Michael K
Senior III

Make sure you have wildcard characters set up correctly for all the characters you want in all the fonts you wish to use, otherwise touchgfx won't generate the glyphs and will render them as question marks. See attached image, taken in the Texts->Typographies tab. If you are space constrained on your target, you'll need to be more selective about which characters you include, rather than 0x00-0xFF.

Embedded UI/UX Consulting: cadenza.design

Hi Michael K, Romain Dieleman

It was displayed correctly by setting the Wildcard Ranges to 0x00-0xFF.

Thank you very much.

Ebun.1
Senior

The font is Verdana.

Good to hear it works :thumbs_up:

/Romain