Page 1 of 1

Escape sequences in love.graphics.draw?

Posted: Sat Mar 28, 2009 6:12 am
by Zetty
Is it just me or does the \t for tab not work in love.graphics.draw?

Instead, it looks like

Code: Select all

Text[]Text
Where [] is a solid rectangular box which reminds me of missing fonts/font support (unicode?) but should be a tab instead. Am I doing something wrong?

Re: Escape sequences in love.graphics.draw?

Posted: Sat Mar 28, 2009 8:59 am
by bartbes
They just don't work. Newline characters work only in the regular draw statement, so if that's function-dependant, try using \t with all text-drawing functions, maybe one of them supports it.

Re: Escape sequences in love.graphics.draw?

Posted: Sat Mar 28, 2009 10:55 am
by mike
Only the newline (\n) character is supported. The rest of them gets treated like "normal" characters, as far as I know.