1.4k views
in GUI Development by

Hi,

I have to use character \x2212 (Minus) in my gui. When writing "−" or \x2212 to the string, the character is not displayed:

1 Answer

0 votes
by

Hi,

evidently the glyph with the code \x2212 is not available in the original TrueType font or it is not included in the font resource.

Are you sure the selected TrueType font does contain this glyph? It is not obvious. The designer of the font can decide whether and which glyphs do belong to it. If this is the problem, you will need to select another font or anothe character code for glyph existing within this TrueType font.

Another possibility: to save memory in the target system, Embedded Wizard imports (converts) only those font glyphs which you have explicitly specified in the attribute Ranges of the font resource. Per default, for every new added font resource, this attribute addresses glyphs in range 0x0020-0x00FF.  Review this attribute and if necessary modify it to include the code \x2212. For example:

See also the section: Specify the text in our documentation.

Hope it solves your problems.

Best regards

Paul Banach

 

 

by
Thank's Paul,

"Ranges" solved the issue.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...