Text is garbled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-25 11:29 PM
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.
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-28 07:19 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-27 05:12 AM
Hi,
Could you share your code ? What font are you using ?
/Romain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-28 07:19 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-06 06:47 PM
Hi Michael K, Romain Dieleman
It was displayed correctly by setting the Wildcard Ranges to 0x00-0xFF.
Thank you very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-06 06:49 PM
The font is Verdana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-07 01:26 AM
Good to hear it works :thumbs_up:
/Romain
