display problem in simulator??

Hi,

I’m having a problem with this piece of code, when displaying 4 characters, it italisices them and kind of wraps it round, if i take it down to 3 digits with an arithmatic operation - 1100 for example it displays fine( only 3 characters)
local z = os.date"%Y"

local textObject = display.newText(z, 70, 250, nil, 24 )
textObject:setTextColor( 255,255,255 )

Rob [import]uid: 2131 topic_id: 223 reply_id: 300223[/import]

Hi Rob, I tried your code and it seems to look ok on my screen. Can you send me a screen shot? info@anscamobile.com

Also, can you tell me a little about the system you’re on?
Does this occur in the simulator, the device, or both? [import]uid: 5 topic_id: 223 reply_id: 279[/import]

I’ve had similar problems, but have not identified specific circumstances under which this happens. When it does, a minor change to the string or the font size stops the odd behavior. This is obviously not a pervasive bug since the manifestations are so obvious. Perhaps it’s related to the following error I get when launching Simulator:

2009-11-09 12:25:52.135 Corona Simulator[694:903] Error loading /Library/InputManagers/SIMBL/SIMBL.bundle/Contents/MacOS/SIMBL: dlopen(/Library/InputManagers/SIMBL/SIMBL.bundle/Contents/MacOS/SIMBL, 265): no suitable image found. Did find:
/Library/InputManagers/SIMBL/SIMBL.bundle/Contents/MacOS/SIMBL: mach-o, but wrong architecture
Copyright © 2009 ANSCA, Inc.
Version: 0.5
Build: 2009.10.15.1
[import]uid: 3388 topic_id: 223 reply_id: 285[/import]

Ok, so we’ve narrowed down the problem and its a bug. Snow Leopard renders the fonts differently and as a result between 23.9 and 24.3 font size, the text will render like that in the simulator. Leopard doesn’t have this problem and you shouldn’t see this on the phone itself. Right now the work around is to use a different size or to create a png of your text in photoshop or some such.

Thanks for the catch! [import]uid: 5 topic_id: 223 reply_id: 286[/import]

thanks! [import]uid: 2131 topic_id: 223 reply_id: 292[/import]