cancel
Showing results for 
Search instead for 
Did you mean: 

Text resources are invisible while in the simulation?

GBert.2
Senior

Problem

When running the simulation, the text resources are invisible.

0693W00000GXQ28QAH.png 

Additional notes:

Q: Is the resource properly configured?

A: Yes. I think so. Here's an example of the PressureString:

0693W00000GXQ6oQAH.png0693W00000GXQ4TQAX.pngQ: Is the simulator Locale configured to GB?

A: Yes. I think so.0693W00000GXQ7IQAX.pngQ: Do the fonts exist?

A: Yes. I think so.

0693W00000GXQ8kQAH.png0693W00000GXQ86QAH.pngQ: Has the code been generated properly?

A: Difficult to tell, but I see the text initialisation

0693W00000GXQAgQAP.png 

Versioning info:

TouchGFX Designer version: 4.16.0

11 REPLIES 11

Uncheck Binary font files. I'm pretty sure that's the problem. I was able to reproduce the the failed assertion with your Text Configuration settings. The only change I needed to make to properly run it and have the text visible was unchecking Binary Font Files

I checked my Text Configuration and the options I have checked are Remap Texts, A4, and Mapped Storage Format. Perhaps use this default configuration unless you really need to use binary files.

See the support library for binary files: looks like they have to be linked in to your program, and also require an additional configuration step that you need to manually implement in your code.

https://support.touchgfx.com/4.16/docs/development/ui-development/touchgfx-engine-features/using-binary-fonts/

https://support.touchgfx.com/4.16/docs/development/ui-development/touchgfx-engine-features/using-binary-translations/

This configuration has fixed my problem!

0693W00000GYmIGQA1.png 

Thanks a lot @Michael K​  !

I still need to be able to use the font as binary files (client requirement).

I will investigate soon how the FrontEndAppication relates to the fonts initialization.

Thanks again.