i’m getting this in the terminal
WARNING: Due to system limitations, display.newText() height is going to be increased to nearest multiple of 4: 1843 ===> 1844.
im using build 1135
heres my config.lua
[lua]
local aspectRatio = display.pixelHeight/display.pixelWidth
application =
{
content =
{
width = 320 * (aspectRatio>1.5 and 1 or 1.5/aspectRatio),
height = 480 * (aspectRatio<1.5 and 1 or aspectRatio/1.5),
scale = “letterbox”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
}
[/lua]
and here’s how i tried to correct then problem
where var.displayLength is set to contentHeight - 50px
[lua]
var.displayLength = var.displayLength+(var.displayLength%4)
print("__"…var.displayLength)
appText = display.newText( appLogGroup, “”, _api.oriX, _api.oriY+20, _api.cntW-_api.oriX, var.displayLength, native.systemFontBold, 12*var.scale )
[/lua]
now this works fine in sim on iphone,iphone4,iphone5 but i get the warning on most other devices
using the above config.lua file and this code below you can try it in the various sims and check the terminal
[lua]
local _w = display.contentWidth
local _h = display.contentHeight
local _x = display.screenOriginX
local _y = display.screenOriginY
local textHeight = ((_h - _y) - 50)
print("textHeight = "…textHeight)
textHeight = textHeight + (4 - textHeight%4)
print("new textHeight = "…textHeight)
local txt = display.newText( “”, _x, _y+20, _w-_x, textHeight, native.systemFontBold, 12 )
[/lua]