# Run-time font embedding

**URL:** <https://forum.kirupa.com/t/run-time-font-embedding/282741>\
**Category:** flash\
**Created:** [February 25, 2009, 10:56pm UTC](https://forum.kirupa.com/t/run-time-font-embedding/282741 "2009-02-25T22:56:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Icy\_Penguin](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@Icy\_Penguin](https://forum.kirupa.com/u/Icy_Penguin)\
**Post date:** [February 25, 2009, 10:56pm UTC](https://forum.kirupa.com/t/run-time-font-embedding/282741/1 "2009-02-25T22:56:38Z")

</div>

I’ve looked everywhere for far too long and attempted many different solutions but just can’t get this to work.

Right now I’m doing this:

```auto
[Embed(source="/Users/sheldonnbbaker/Library/Fonts/AUdimat-Bold.ttf", fontFamily="foo")]

```

(right after my class definition).

Then I just make my TextField and TextFormat:

```auto
navigationItemTextFormat.font = 'foo';

```

I add the TextField the display list, but I get the ugly default font.

(/Users/sheldonnbbaker/Library/Fonts/AUdimat-Bold.ttf exists - I can navigate to it in Firefox).

Any ideas? Thanks 🙂
