Text styling - how to write more than one style into Source Text?

Community Beginner ,
Jun 07, 2020

Copy link to clipboard

Copied

Hi.

 

I'm trying to write different parameters into my Source Text like this:

style.setLeading(text.sourceText.style.fontSize*1.1);

style.setFauxBold(1);

style.setAllCaps(1);

 

But whatever I do - only the last line renders. If I switch them around, or take some out. Still - only last line renders. What am I missing? How do I change several parameters to my Source Text?

You chain them on the end like this.

style.setLeading(text.sourceText.style.fontSize*1.1).setFauxBold(1).setAllCaps(1);
TOPICS
Error or problem, Expressions, How to

Views

324

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Text styling - how to write more than one style into Source Text?

Community Beginner ,
Jun 07, 2020

Copy link to clipboard

Copied

Hi.

 

I'm trying to write different parameters into my Source Text like this:

style.setLeading(text.sourceText.style.fontSize*1.1);

style.setFauxBold(1);

style.setAllCaps(1);

 

But whatever I do - only the last line renders. If I switch them around, or take some out. Still - only last line renders. What am I missing? How do I change several parameters to my Source Text?

You chain them on the end like this.

style.setLeading(text.sourceText.style.fontSize*1.1).setFauxBold(1).setAllCaps(1);
TOPICS
Error or problem, Expressions, How to

Views

325

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 07, 2020 0
Most Valuable Participant ,
Jun 08, 2020

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 08, 2020 0
Community Beginner ,
Jun 08, 2020

Copy link to clipboard

Copied

  1. Thank you Mylenium. But I have already read that link a couple of times, But I havent found a solution there. I feel like there is some piece I'm missing. 
    Can you tell me how the above code should be written in order to work?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 08, 2020 0
Explorer ,
Jun 09, 2020

Copy link to clipboard

Copied

You chain them on the end like this.

style.setLeading(text.sourceText.style.fontSize*1.1).setFauxBold(1).setAllCaps(1);

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 09, 2020 0
Community Beginner ,
Jun 09, 2020

Copy link to clipboard

Copied

Thank you Greg1987! That was my missing piece. Everything works fine now. 😊🙏🏻

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 09, 2020 1