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"
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:
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]