# Text Formatting

**URL:** <https://forum.kirupa.com/t/text-formatting/307022>\
**Category:** Uncategorized\
**Created:** [March 26, 2010, 10:06am UTC](https://forum.kirupa.com/t/text-formatting/307022 "2010-03-26T10:06:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![katma](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@katma](https://forum.kirupa.com/u/katma)\
**Post date:** [March 26, 2010, 10:06am UTC](https://forum.kirupa.com/t/text-formatting/307022/1 "2010-03-26T10:06:38Z")

</div>

i have seen many tutorials/responses for this in earlier versions but those only seem to work with AS2.

my problem is that i can’t get the letterspacing property to function in a dynamic text box, i have tested it with color and it works just fine. just letterspacing. And i have embeded the font, so i know it isn’t that.

The code affecting the text box is this.

```auto

var txt_box0:TextField

var format1:TextFormat = new TextFormat();
format1.letterSpacing = 4
//trace(format1.letterSpacing)

txt_box0.setTextFormat(format1)

```

Those working with AS2 have had similar problems but managed to fix it by typing “setNewTextFormat”, which has been phased out in AS3.
