# Font Embedding in Custom Class

**URL:** <https://forum.kirupa.com/t/font-embedding-in-custom-class/300019>\
**Category:** flash\
**Created:** [November 14, 2009, 2:57pm UTC](https://forum.kirupa.com/t/font-embedding-in-custom-class/300019 "2009-11-14T14:57:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raabi](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Raabi](https://forum.kirupa.com/u/Raabi)\
**Post date:** [November 14, 2009, 2:57pm UTC](https://forum.kirupa.com/t/font-embedding-in-custom-class/300019/1 "2009-11-14T14:57:36Z")

</div>

Hello everybody

With reference to the subject, I am using the following statement to embed the font within my custom class:

```auto
[Embed(systemFont = "Verdana", 
    fontName = "VerdanaReg", 
    mimeType = "application/x-font-truetype")
]

```

If I use the same code within my FLA, it works fine, but using inside my custom class, it reports error:  
“_The definition of base class FontAsset was not found_.”

I have added the following references in the Library path:  
\*\* $(AppConfig)/ActionScript 3.0/libs  
$(FlexSDK)/frameworks/libs/flex.swc\*\*

I have even tried adding;  
**$(AppConfig)/ActionScript 3.0/libs/framework.swc**

But, nothing helps. It seems I have to Import something in my class; but I don’t know what to import or do something alike.

Please help.
