Thanks for giving even more feedback.
I am pretty sure I got native.systemFontSize from some tutorial I can’t find, but what you are saying is, that it doesn’t excist in Corona??
- and my line: fontSize = native.systemFontSize could be left out?
I don’t get an error from my original code that I posted. The error came when I tried to make it 1.5x bigger… In HTML you have the ‘em’ unit for what ever the default textsize of the device is and you can use 1.5em to scale it. It was in those lines I thought about it.
This was my solution that worked:
local options =
{
text = textString[r],
x = 120,
y = 300,
width = 850,
font = native.systemFontBold,
fontSize = native.systemFontSize,
Align = “left” – alignment parameter
}
– textarea
local textBox =display.newText(options)
textBox:setFillColor(1, 1, 1) --textcolor
textBox.setTextScale = 1.5
textBox.anchorX = 0
textBox.anchorY = 0
the setTextScale I got from another lua forum, but native.systemFontSize was from a corona tutorial