iOS 7 is reporting the height of my custom font differently than iOS 6. Has anyone else noticed this?
For example this code, where I’m printing out the text object height:
[lua]
local testCustom = display.newText(“THIS IS A TEST”, 0, 0, ‘HeroicCondensed-Heavy’, 40)
testCustom:setReferencePoint(display.TopLeftReferencePoint)
testCustom.x = 10
testCustom.y = 200
testCustom.text = "HEIGHT " … testCustom.height
[/lua]
Looks like this in iOS 6:
But like this on iOS 7:
Both are form iPhone 5. Its quite a noticible difference when layouting text. I compared the visible height in Photoshop and its the same, just the reported height is different.
I tested with default font and there was no difference.