# Font embedding in custom MX04 component

**URL:** https://forum.kirupa.com/t/font-embedding-in-custom-mx04-component/185589
**Category:** flash
**Created:** [April 14, 2006, 2:14pm UTC](https://forum.kirupa.com/t/font-embedding-in-custom-mx04-component/185589 "2006-04-14T14:14:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bbraga](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@bbraga](https://forum.kirupa.com/u/bbraga)
#### Post date: [April 14, 2006, 2:14pm UTC](https://forum.kirupa.com/t/font-embedding-in-custom-mx04-component/185589/1 "2006-04-14T14:14:38Z")

</div>

What is the best way to embed fonts for use in custom components?

I’ve made a custom component and i add to Library a FONT is this case a pixel font.  
Since most users dont have these fonts on their system i need to embed that font with my component for distribuition.  
The problem is when i make the SWC file when when i install the component with Extension Manager, when trying out that component the fonts doesnt appear.

```
 ActionScript Code:
 [FONT=Courier New][LEFT]myformat = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000ff]TextFormat[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];

```

myformat.[COLOR=#0000ff]color[/COLOR] = 0xFF0000  
myformat.[COLOR=#0000ff]size[/COLOR] = [COLOR=#000080]10[/COLOR];  
myformat.[COLOR=#0000ff]embedFonts[/COLOR] = [COLOR=#000000] **true** [/COLOR];  
myformat.[COLOR=#0000ff]font[/COLOR] = [COLOR=#ff0000]‘myEmbeddedFont’[/COLOR];  
[/LEFT]  
[/FONT]

myEmbeddedFont is the font that i embed  
the font is set to “export for actionscript”, etc…

How can i embedd a font…

I have the same problem when trying to embed a image file that i want to use.

What is the best way to embed assets!!?

Best regards to you all
