Page 1 of 1

Help needed !

Posted: Sat Mar 15, 2008 8:22 pm
by turshija
With RenderCharExpression ....
when i have text written, how do I change the size of the first character for example ? i want to make first character scaled big and all others small or something like that and control it using global variable ... But i cant find out how ... Can I access letters separately somehow and change its attributes ?
for example Char[1].Scale , Char[2].Scale and stuff like that ?
Cheers
Boris

Posted: Sun Mar 16, 2008 3:39 pm
by VilleK
You can use the CharI-property. This holds the current character index.

Something like this:

Code: Select all

if (CharI==0) {
  //First character
  CharScale=2.0;
} else {
  //rest of string
  CharScale=1;
}

Posted: Sun Mar 16, 2008 3:41 pm
by turshija
thanks, ill try it :)