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