# Embed a particular font in all .swf's?

**URL:** <https://forum.kirupa.com/t/embed-a-particular-font-in-all-swfs/290867>\
**Category:** Uncategorized\
**Created:** [June 21, 2009, 9:44am UTC](https://forum.kirupa.com/t/embed-a-particular-font-in-all-swfs/290867 "2009-06-21T09:44:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toffe](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@toffe](https://forum.kirupa.com/u/toffe)\
**Post date:** [June 21, 2009, 9:44am UTC](https://forum.kirupa.com/t/embed-a-particular-font-in-all-swfs/290867/1 "2009-06-21T09:44:02Z")

</div>

I have index.swf and contact.swf.

I’m using the MovieClipLoader to load contact.swf into index.swf. contact.swf is placed in a movie clip with specific dimensions.

In contact.swf I have:

```auto
var myFmt:TextFormat = new TextFormat();
myFmt.color = 0x444444;
myFmt.font = "CorbelBold";

var metrics:Object = myFmt.getTextExtent("I love flash");
trace(metrics.textFieldWidth);

```

If I start contact.swf directly (not loaded into index.swf) it traces what I want.

If I start index.swf --\> contact.swf is loaded into index.swf, then it traces something else. I found out that I have to EMBED the fonts in contact.swf AND index.swf to make it work.

Why do I have to embed the fonts in both .swf’s ?

Thank you
