-
Expression to set font/size of just one line of text
Hello,
I have a block of text (3 lines) and I want to be able to set the font etc. of the middle line. I can split it into three lines easily like this:
blurb = text.sourceText;var firstLine = blurb.split("\r")[0];var secondLine = blurb.split("\r")[1];var thirdLine = blurb.split("\r")[2];firstLine + "\r" + secondLine + "\r" + thirdLine…but if I try something like this:
blurb = text.sourceText;bigblurb = text.sourceText.style.setFontSize(400);var firstLine = blurb.split("\r")[0];var secondLine = bigblurb.split("\r")[1];var thirdLine = blurb.split("\r")[2];firstLine + "\r" + secondLine + "\r" + thirdLine…I get the error in line 4: “bigblurb.split is not a function”. I’ve tried moving the “setFontSize” to the end – ie. appended to the end of secondLine in the last line of the expression, but that doesn’t work either. Why is this not working??
Any help would be greatly appreciated, thanks!