Font Positions identical in Simulator and Device

Heya,

I’ve just noticed that my fonts are appearing slightly higher up on the screen on my iPhone 4 than on the Simulator.

I’ve just run a quick comparison and suspect it’s actually the simulator that’s actually at fault.

For the avoidance of doubt I used the following test:

local c=display.newCircle(display.contentWidth\*0.5, display.contentHeight\*0.5,12)  
c:setFillColor(255,0,0)  
  
fontSize=24  
local text=display.newText("center", c.x,c.y ,"Brie Light",fontSize\*1.5)  
text:setReferencePoint(display.CenterReferencePoint)  
text.x,text.y=c.x,c.y  
text:setTextColor(0,0,0)  
  

Using the Brie Light font available here: http://www.searchfreefonts.com/free/brie-light.htm

The font on the device looked correctly centred, while the font on the simulator was slightly off. Unfortunately it’s enough to ruin a good layout and for the time being it looks like I’m going to have to add some horrible global font offset if running on the simulator to ensure my positions are identical.

I am aware that it might be the something down to the font file itself, but regardlessly it’d be great if there was a visual consistency between the simulator and the device. [import]uid: 11757 topic_id: 10263 reply_id: 310263[/import]

Heya,

I was wondering if this is a known issue, or whether it’s just me experiencing this.

I’ve noticed it across several apps and several different fonts now.

[import]uid: 11757 topic_id: 10263 reply_id: 46216[/import]