# Anti-aliasing dynamically created text

**URL:** https://forum.kirupa.com/t/anti-aliasing-dynamically-created-text/66946
**Category:** flash
**Created:** [October 11, 2004, 9:40am UTC](https://forum.kirupa.com/t/anti-aliasing-dynamically-created-text/66946 "2004-10-11T09:40:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![oscar\_alexander](https://avatars.discourse-cdn.com/v4/letter/o/e5b9ba/32.png) [@oscar\_alexander](https://forum.kirupa.com/u/oscar_alexander)
#### Post date: [October 11, 2004, 9:40am UTC](https://forum.kirupa.com/t/anti-aliasing-dynamically-created-text/66946/1 "2004-10-11T09:40:03Z")

</div>

I’m going insane over this…

```auto

var tfHeaderFormat:TextFormat = new TextFormat();
with(tfHeaderFormat) {
	color	= 0xFFFFFF;
	font	= "MyriadHeader";
}

```

The MyriadHeader is the linkage name of a font I included in my library. Next I create a textfield and assign the following properties to it…

```auto

myHeader.autoSize = "left";
myHeader.embedFonts	= true;
myHeader.selectable	= false;
myHeader.text = "Whatever";
myHeader.setTextFormat(tfHeaderFormat);

```

The text shows in Myriad, but in aliased form. Is it at all possible to have a dynamically created textField with an embedded font anti-aliased? Please help me out… I feel like I’m about to die.
