# Embed component font

**URL:** <https://forum.kirupa.com/t/embed-component-font/172422>\
**Category:** Uncategorized\
**Created:** [December 14, 2005, 4:58am UTC](https://forum.kirupa.com/t/embed-component-font/172422 "2005-12-14T04:58:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dColumbus](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@dColumbus](https://forum.kirupa.com/u/dColumbus)\
**Post date:** [December 14, 2005, 4:58am UTC](https://forum.kirupa.com/t/embed-component-font/172422/1 "2005-12-14T04:58:26Z")

</div>

```auto
// get font information from dummy field
var sFontName:String = tDummy.getTextFormat(0,1).font;
trace("> sFontName > " + sFontName);

// hide dummy field
tDummy._visible = 0;

// set font to Button component
theName.setStyle("embedFonts", true);
theName.setStyle("fontFamily", sFontName); 

```

So that works great… however, the font is blurry… the only thing i can think is that the text field inside the actual component is causing this. Is there a fix? Can I antialias the font inside the component?
