FlashPunk Text letter spacing [solved]


(Nicole Brauer) #1

Hey punks,

does anyone know, if there is a property or an easy way of setting the letter-spacing (horizontal) for text in the Text class.

I can’t seem to find anything like it. :S


(Martí Angelats i Ribera) #2

Yeah, it’s pretty easy.

var text:Text = new Text("text");
text.setTextProperty("letterSpacing", value);

letterSpacing is a property of the TextFormat. This will modify it.

PD: Of course all the other part is identical.

PD2: You can serch for more text properties at the official reference (TextFormat class contains the major part)


(Nicole Brauer) #3

Ah,ok. Thank you very much. :slight_smile: