-
Styles for dynamic SourceText
Is it possible to apply any text style AFTER creating text.sourceText using expression? For example, when I use in same layer:
1. text.sourceText = any_function_like_concat(t1, t2);
2. style.setTracking(-100);
second string doesn’t work. If I manually pre-assign any value to “sourceText” then second string will apply to that value, the first line is completely ignored. If I delete second string then first string work correctly.
Help, please. I need to generate text string and if its width is too large, I must change tracking and font size. I can’t know width of string before creating and can’t apply any style after it 🙁