Using this code I adapted from a helpful blog post:
[lua] local _w = display.contentWidth
local _h = display.contentHeight
local _crf = display.CenterReferencePoint
local testText = display.newText(“123456789”, 0, 0, “AlfredDrake”, 56)
testText:setReferencePoint(_crf)
testText.x = _w * 0.5
testText.y = _h * 0.5[/lua]
The text displays perfectly – except the top 10% or so of each number is missing.
I tested the font in Write for Mac and it does not have this problem in the word processor.
I searched the forums and found two posts which seem to relate to this problem – one with ascenders being cut off and the other with descenders being cut off – but found no solutions.
The font I’m using is available as a free (shareware) download from dafont.com: http://www.dafont.com/alfred-drake.font
Any ideas? [import]uid: 117162 topic_id: 28520 reply_id: 328520[/import]