# Runtime Font Loading

**URL:** <https://forum.kirupa.com/t/runtime-font-loading/299761>\
**Category:** flash\
**Created:** [November 10, 2009, 6:08pm UTC](https://forum.kirupa.com/t/runtime-font-loading/299761 "2009-11-10T18:08:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![regbolD](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@regbolD](https://forum.kirupa.com/u/regbolD)\
**Post date:** [November 10, 2009, 6:08pm UTC](https://forum.kirupa.com/t/runtime-font-loading/299761/1 "2009-11-10T18:08:51Z")

</div>

i am trying Lee Brimelow’s tutorial about Runtime Font Loading from here: [http://gotoandlearn.com/files/runtimefonts.zip](http://gotoandlearn.com/files/runtimefonts.zip)

there are 2 fla files (flash cs4 needed).  
in one is this code:

```auto
[Embed(systemFont="Impact", fontName="impact",
       mimeType="application/x-font", unicodeRange="U+0041-U+005A")]
var impact:Class;
Font.registerFont(impact);

```

and in the other (which loads the previous swf):

```auto
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, fontLoaded);
loader.load(new URLRequest("impact.swf"));
function fontLoaded(e:Event):void
{
    var tf:TextField = new TextField();
    tf.width = 600;
    tf.embedFonts = true;
    tf.defaultTextFormat = new TextFormat("Impact", 60, 0x000000);
    tf.text = "RUNTIME FONTS";
    addChild(tf);
}

```

his example works fine, but if i try to substitute any other font from my pc i get nothing when i run other swf file.  
i dont get , why doesnt it work?
