Top of custom font is cut off

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]

That happens in our games a lot too. Corona bug? [import]uid: 9840 topic_id: 28520 reply_id: 115051[/import]

i found it also but do not remember font name right now. Font was cut from the top / bottom. I need manually edit font file using font editor to make it working properly in Corona. Software is TypeLight 3.2 and font was probably http://moorstation.org/typoasis/pirates/windlass.htm

Problem is total height of the font in the file compared with height of single letter. This is processed wrong by Corona but properly by devices. [import]uid: 111283 topic_id: 28520 reply_id: 115090[/import]

Thanks for the info! I’ll check out TypeLight. Haven’t tested on device yet so it may very well look fine there. [import]uid: 117162 topic_id: 28520 reply_id: 115339[/import]

Hmm, deployed to device and it looks the same. I’ll file a bug report. [import]uid: 117162 topic_id: 28520 reply_id: 115446[/import]