# Change SWF Font Used

**URL:** https://forum.kirupa.com/t/change-swf-font-used/327365
**Category:** flash
**Created:** [February 24, 2012, 9:23pm UTC](https://forum.kirupa.com/t/change-swf-font-used/327365 "2012-02-24T21:23:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Randomishlying](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@Randomishlying](https://forum.kirupa.com/u/Randomishlying)
#### Post date: [February 24, 2012, 9:23pm UTC](https://forum.kirupa.com/t/change-swf-font-used/327365/1 "2012-02-24T21:23:59Z")

</div>

What is the most common way to change the font in a TextField, within a package? I read a little bit about styling the text in the TextField with CSS, or possibly embedding the fonts, but I know little about accomplishing either. If someone could find it in their heart to help a noob, I would be grateful. Or at least point me in a reliable direction.

Thanks.

Ex:

```auto
package {
import flash.text.TextField;
import flash.display.MovieClip;

public class Example extends MovieClip {
private var example:TextField;
public function Example() {
example = new TextField;
example.text = "This is an example.";
addChild(example);

}

}

}

```

Using this example, I want to change the default font used (in the swf file) for “This is an example” to something I set it to (Arial perhaps). Hopefully I’m making sense.
