# Embed font from external .as file

**URL:** <https://forum.kirupa.com/t/embed-font-from-external-as-file/230743>\
**Category:** flash\
**Created:** [June 28, 2007, 5:15pm UTC](https://forum.kirupa.com/t/embed-font-from-external-as-file/230743 "2007-06-28T17:15:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![contrast](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@contrast](https://forum.kirupa.com/u/contrast)\
**Post date:** [June 28, 2007, 5:15pm UTC](https://forum.kirupa.com/t/embed-font-from-external-as-file/230743/1 "2007-06-28T17:15:29Z")

</div>

Thanks to these posts:

> **[embedFonts - can't make it happen](https://www.kirupa.com/forum/showthread.php?t=265431)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

> **[Rotate TextField](https://www.kirupa.com/forum/showthread.php?t=262770)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

I know how to embed fonts from inside CS3. I have been working for two days to try to figure out how to embed fonts using an external .as file.

I have looked at:  
[http://www.tink.ws/blog/embedding-fonts-in-as3/](http://www.tink.ws/blog/embedding-fonts-in-as3/)

and I have been trying to use the “[Embed] metatag”, but I can’t seem to get it to work.

I realize that embedded fonts is done differently based on what environment you are coding in, and perhaps I have twisted together incompatible methods.  
I am about ready to quit on embedded fonts and just try to avoid rotating my text around. I haven’t encountered anything else in learning AS 3.0 that has slowed me down this much. I would really appreciate some help with this.

Here are a few questions if the request to explain how to do this is to vague:

1. Can I embed a font that I did not include in the library?
2. Where do I place the [Embed] metatag, inside the class definition, outside the class definition, if I have to place it at all?

If you can help me understand what I am doing wrong I would be very appreciative!
