# Embedding fonts via Actionscript

**URL:** https://forum.kirupa.com/t/embedding-fonts-via-actionscript/197330
**Category:** flash
**Created:** [August 15, 2006, 5:56pm UTC](https://forum.kirupa.com/t/embedding-fonts-via-actionscript/197330 "2006-08-15T17:56:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mpr](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mpr](https://forum.kirupa.com/u/mpr)
#### Post date: [August 15, 2006, 5:56pm UTC](https://forum.kirupa.com/t/embedding-fonts-via-actionscript/197330/1 "2006-08-15T17:56:05Z")

</div>

The most common method to embed a font is the “Embed…” button and I know that a common method to embed a font is

```auto

var myFont:TextFormat = new TextFormat();
myFont.font = "A Nice Font";

myTextField.setTextFormat(myFont);

```

But my question is does the above code retain the font in the movie so that, should I upload it to a site, the font will go with it for display?  
Also, is there actionscript that will embed a font in an entire movie so I don’t have to click each text area and embed one at a time?
