I’m finding problems with text width functions: On a Mac with iOS simulator, with an OTF font I know has no font kerning, and with Ariel, calculating the display width of a string “LMNOP” returns a smaller number than wid(“L”) + wid(“M”) + wid(“N”) + wid(“O”) + wid(“P”) using:
–calc display width
local tempDisplayLine = display.newText(sTxt, 0, 0, font, size)
return tempDisplayLine.contentWidth
I get the same result with tempDisplayLine.width
The difference is significant, e.g. 52 pixels for the whole string, versus 60 for the sum of the parts.
Are there known issues with this type of functionality, or workarounds?
TIA!
-Tom [import]uid: 100708 topic_id: 25172 reply_id: 325172[/import]