Run-time font embedding

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:

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

(right after my class definition).

Then I just make my TextField and TextFormat:

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 :slight_smile: