• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Expressions

New Here ,
Jan 27, 2022 Jan 27, 2022

Copy link to clipboard

Copied

Hello,

I have a text that needs to fit a box size, with 60 characters but if more them 60 characters will apply a character tracking.
I did a couple of tests: the character substr(0, 56) works, but when apply the style.setTracking(40) is not
I'm missing a command or a different syntax.
Appreciate any feedback!

 


test 1:
text.sourceText
if(text.sourceText)substr(0, 56);text.sourceText.style.setTracking(40);{

else{(text.sourceText)substr(0, 70);text.sourceText.style.setTracking(20)}

 

test 2:

text.sourceText.style.setTracking(20)

if (x.length <=20) style.setTracking(40)

else if (xlen<=22) {style.setTracking(10) && x}

TOPICS
Expressions

Views

119

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
community guidelines
LEGEND ,
Jan 28, 2022 Jan 28, 2022

Copy link to clipboard

Copied

LATEST

Apply the formatting via a text animator and of course clean up your syntax. There's a million typos and bad formatting in your code and none of it will aver work.

 

Mylenium

Votes

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
community guidelines