Page 1 of 1

Text strings aren't displaying properly.

Posted: Sat Feb 14, 2009 9:13 pm
by Sslaxx
Ubuntu Linux 8.10. Also confirmed under Win2K (via VirtualBox).

http://sslaxx.twu.net/EggTester.love

When I knocked up this little test, I noticed that the first word (for it does appear to be that) does not show up when running. The screenshot shows best what is happening. This appears to happen with any (truetype) font used.

Re: Text strings aren't displaying properly.

Posted: Sat Feb 14, 2009 9:52 pm
by bartbes
Found your problem:
In inc/Camera.lua on line 190 you have:

Code: Select all

return s:gmatch (" ([^\r\n]*)\r*\n\r*")
it should be:

Code: Select all

return s:gmatch ("([^\r\n]*)\r*\n\r*")
(difference is the space)
Because of the space in the pattern it required spaces to be in front of the text, if you fix this it will work as normal.

Re: Text strings aren't displaying properly.

Posted: Sat Feb 14, 2009 10:08 pm
by Sslaxx
Much obliged! I'd narrowed it down to a probable bug with the Camera extension, but I didn't know what it was. Thanks for that one!

Re: Text strings aren't displaying properly.

Posted: Sun Feb 15, 2009 9:34 am
by bartbes
When I looked at the source of camera itself, the space isn't in there. So it might be you accidentally added it yourself.

Re: Text strings aren't displaying properly.

Posted: Sun Feb 15, 2009 9:44 am
by Sslaxx
Quite possibly. Still, as long as it works!