Hi,
Is there a way to change fontSize after instantiate newText?
I tried to use “:setFontSize()” or “.fontSize” property but without any results…
Someone has the solution??
thanks
Hi,
Is there a way to change fontSize after instantiate newText?
I tried to use “:setFontSize()” or “.fontSize” property but without any results…
Someone has the solution??
thanks
you can use the “.size” variable call to set the size after creation. I can’t find the docs on it; very strange as I know I learned it from there.
testText = display.newText("THIS IS DEFAULT TEXT", display.contentCenterX, display.contentCenterY, default, 10) testText.size = 25
.size is for textBox & textField. to change size of newText you have to recreate or use scale unless something was added to gpx2.0 that I wasn’t aware of
so easy??
thanks!!
It worked when I tested it before posting. @Jstrahan, I’ve been using it since late 2012 for text objects. Did I just optimize your workflow?
*stands at the ready to pat self on back*
lol
thx. already got a use
you can use the “.size” variable call to set the size after creation. I can’t find the docs on it; very strange as I know I learned it from there.
testText = display.newText("THIS IS DEFAULT TEXT", display.contentCenterX, display.contentCenterY, default, 10) testText.size = 25
.size is for textBox & textField. to change size of newText you have to recreate or use scale unless something was added to gpx2.0 that I wasn’t aware of
so easy??
thanks!!
It worked when I tested it before posting. @Jstrahan, I’ve been using it since late 2012 for text objects. Did I just optimize your workflow?
*stands at the ready to pat self on back*
lol
thx. already got a use