-
Expression: Replace a word & font style(Replace command) (setFont command)
Currently this works perfectly:
text.sourceText.replace(/are/,”no”)
but I want to change the weight of the word “no” to a different font weight via style.setFont:
text.sourceText.replace(/are/,style.setFont(“Gotham-Black”).setText(“no”))
I’m not sure what Im doing wrong but I get this where “no” should be: [object Object]
Please help. Thanks