cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to add a colour gradient onto the text we are writing to the screen. How can this be achived ?

justin11
Associate III
 
4 REPLIES 4
Osman SOYKURT
ST Employee

Hello justin1,

This feature is not yet implemented but thanks for the idea I'll transmit to the team to consider adding it. As a workaround you can use SVG instead, so basically create an SVG with your text and color gradient you want, and add it to your TouchGFX project. Can also be realized with a standard image or texture mapper, but SVG advantage is that it won't lose quality if you'll ever need to resize your text for example.

Hope it helps :)

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX
justin11
Associate III

Hi, thanks for the responce. Is the SVG option in ver 4.20 ? we try to minimise updates as it effects the whole team.

Would SVGs be significantly more efficient than individual png files for each character?

Hi, thanks for the responce. Is the SVG option in ver 4.20 ? we try to minimise updates as it effects the whole team.

Would SVGs be significantly more efficient than individual png files for each character?

Hi,

SVG support is available from TouchGFX 4.21.0 sorry. The advantage of SVGs like OSman said is that you can manipulate it within TouchGFX Designer (scaling/rotating/...) without any "image quality" loss. If you know that your text will not change too much from the PNG then you do not need SSVG, you can use the image widget or the texture mapper widget instead (texture mapper if you need rotation/scaling, just be aware that you might see some artifact if you greatly increase the scaling)

/Romain