# \[AS3\] embedFonts problem

**URL:** <https://forum.kirupa.com/t/as3-embedfonts-problem/234534>\
**Category:** flash\
**Created:** [August 3, 2007, 3:10am UTC](https://forum.kirupa.com/t/as3-embedfonts-problem/234534 "2007-08-03T03:10:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scoult01](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@scoult01](https://forum.kirupa.com/u/scoult01)\
**Post date:** [August 3, 2007, 3:10am UTC](https://forum.kirupa.com/t/as3-embedfonts-problem/234534/1 "2007-08-03T03:10:41Z")

</div>

Hey guys,  
Probably just a quick fix here, but this embedFonts is driving me nuts. When embedFonts is set to true the font disappears, however when it’s not set it’s visible. It’s a bitmap font too (Everyday).

The code is as follows atm:

```auto

var label:TextField = new TextField();
label.embedFonts = true;
label.autoSize = TextFieldAutoSize.LEFT;
label.antiAliasType = AntiAliasType.ADVANCED;
label.selectable = false;
label.defaultTextFormat = formatText();

```

the formatText() function is as follows:

```auto

private function formatText():TextFormat 
        {
            var format:TextFormat = new TextFormat();
            format.font = "Everyday";
            format.color = 0x000000;
            format.size = 10;
            format.bold = false;
            return format;
        }

```

and I’m embedding the font with

```auto
[Embed(source="Everyday.ttf", fontFamily="Everyday")]

```

at the start of the class

Any tips?
