Search found 2 matches
- Wed Nov 30, 2022 4:04 am
- Forum: Support and Development
- Topic: Is there any way to turn a Text into a normal string?
- Replies: 9
- Views: 3501
Re: Is there any way to turn a Text into a normal string?
Thank you very much. It does work. But I'm still wonder why there's a Text object but love.graphics.printf() can't use it as an argument. And it seems impossible to get the raw string/colored string of it without hacking. So maybe Text is designed for drawing but not for exact format control? BTW, I...
- Tue Nov 29, 2022 1:28 pm
- Forum: Support and Development
- Topic: Is there any way to turn a Text into a normal string?
- Replies: 9
- Views: 3501
Is there any way to turn a Text into a normal string?
I'm not a native English speaker so I'm sorry for some weird sentences.
I used <code>love.graphics.newText()</code> to create a Text object.But I want to get the content of it for debugging and printf() function.
I have looked the wiki up but there are no functions to do this.How can I do?
I used <code>love.graphics.newText()</code> to create a Text object.But I want to get the content of it for debugging and printf() function.
I have looked the wiki up but there are no functions to do this.How can I do?