I found a bug on display.newText.
tried with latest builds.
the code i tried was:
local bug="Line1.\nLine2.\nLine3.\nLine4.\nLine5.\nLine6.\nLine7.\nline8.\nline9\nline10\nline11\nline12\nline13\nline14" local params={ text=bug, font = native.systemFontBold, fontSize = 12, width=120, align="left" } local group=display.newGroup() local someText=display.newText(params) someText.anchorX=0 someText.anchorY=0 local back=display.newRect(0,0,someText.contentWidth,someText.contentHeight) back.anchorX=0 back.anchorY=0 back:setFillColor(0.4,0.4,0.4,1) group:insert(back) group:insert(someText) group:translate(display.contentWidth\*.5, display.contentHeight\*.5)
in android the background will be taller than on simulator or IOS. it looks it’s adding a pixel to each line i add in a text.
please confirm this on DEVICE not in simulator. tested on nexus 7 2013 and my blackberry z10 and ipad 4. only on nexus and blackberry gave me the added lines.
regards,
Carlos.
