It looks like you're new here. If you want to get involved, click one of these buttons!
 chipster123            
            
                Member
chipster123            
            
                Member             
            | local font = TTFont.new("arial.ttf",14) local text = TextField.new(font, "This is Arial") text:setPosition(10, 310) stage:addChild(text) | 
Comments
Does it just not display in the player for you?
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
Notice how the fonts have different positioning and extend differently.
Also, the relative text spacing is exactly the same as shown here whether in 'pixel-perfect' or 'stretch' mode
I've got an app that displays OK in the player on my laptop but throws the error 'GOTHIC.TTF: Error while reading font file.' when I try playing it in the (updated) player on my phone. I've double checked to make sure that the font file is included in my project, which it is. (Edit: Oops - just seen that @atilim has already said this!)
When I build the apk and run it, all double digit numbers that are positioned using a getWidth()/2 bit of coding to centre them only show the tens digit of the number and not the units. The tens digit appears to be centred.
When I build exactly the same app using the previous version of Gideros, it works fine in the player on the computer and on the phone and the apk is also OK.
Thanks, Pete
I've fixed the first bug. It only occurs on android player. Most probably I'll fix the second one today (getWidth() of TextField) and release a new package (2012.2.2.2
@petec, @chipster123 no matter how hard I tried, I couldn't make a difference between desktop player, android player and exported apk. @petec, what is the exact string that causes the problem? And that would be great if you can send me (atilim@g...com) a simple example that shows the problem.
Example:
http://www.giderosmobile.com/forum/discussion/798/font-questions#Item_3