Skip to main content
Visitor II
Question

Create a curved text or write text at any angle

Hey

 

I came across this thread: Rotate text at any angle, where @Romain DIELEMAN mentioned a custom widget called TextArc (TextArc.cpp/hpp) demonstrating arbitrary text rotation.

Unfortunately, the original demo files/links seem to be missing or broken. Does anyone still have a copy of this TextArc widget, or can ST re-upload the sample project?

If this demo is no longer available or compatible with recent TouchGFX versions, what is the recommended approach to render/rotate text at arbitrary angles today?

Thanks in advance!

5 replies

Associate III

I am also looking for this 

ST Technical Moderator

Hello,

I am not familiar with the custom widget you mention.

But If you just need to rotate the text (not curve), I can suggest that you render your text to a dynamic bitmap using a cacheable container and then show it rotated on the screen using a texture mapper. This solution has been discussed in this thread: Dynamic Bitmap Background Transparency Implementation | Community.

Best regards

Peter

Associate III

Thanks for your advice.

But I was already involved in that thread,and already know this approach.

But this approach  is a bit complicate,If there is a better way, I wont choose to use texture mapper.

ST Technical Moderator

Ah ok. In think the texture mapper generally is the best approach to show something at “any angle”. Can you elaborate what effect you want to achieve?