Escape sequences in love.graphics.draw?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Zetty
Prole
Posts: 5
Joined: Wed Mar 25, 2009 6:50 pm

Escape sequences in love.graphics.draw?

Post by Zetty » Sat Mar 28, 2009 6:12 am

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?

User avatar
bartbes
Sex machine
Posts: 4944
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Escape sequences in love.graphics.draw?

Post by bartbes » Sat Mar 28, 2009 8:59 am

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.

User avatar
mike
Administrator
Posts: 364
Joined: Mon Feb 04, 2008 5:24 pm

Re: Escape sequences in love.graphics.draw?

Post by mike » Sat Mar 28, 2009 10:55 am

Only the newline (\n) character is supported. The rest of them gets treated like "normal" characters, as far as I know.
Now posting IN STEREO (where available)

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests