Can I make a sprite out of text/with text

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By CalmTurtle


I do not want to use a label. I would like to make a sprite where the image is just a string. as such its a little impractical to creature a texture of every string and import into the project, so I am looking for a solution where when the sprite is created dynamically I can assign its “text texture” value.

Thanks again!

:bust_in_silhouette: Reply From: kidscancode

I would suggest using CanvasItem.draw_string() for this.

See Custom Drawing in 2D if you’re unfamiliar with the custom drawing workflow.

Exactly what I was looking for. Thank you.

BTW, your website is amazing. For all others not in the know, check it out here:

CalmTurtle | 2019-03-31 23:57