# Embedded fonts, how does this work

**URL:** <https://forum.kirupa.com/t/embedded-fonts-how-does-this-work/283414>\
**Category:** flash\
**Created:** [March 5, 2009, 8:12pm UTC](https://forum.kirupa.com/t/embedded-fonts-how-does-this-work/283414 "2009-03-05T20:12:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkamp](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@nkamp](https://forum.kirupa.com/u/nkamp)\
**Post date:** [March 5, 2009, 8:12pm UTC](https://forum.kirupa.com/t/embedded-fonts-how-does-this-work/283414/1 "2009-03-05T20:12:52Z")

</div>

Hello,

Another question I have is “Embedded fonts: How does it work?” I have taken an example of the internet:

```auto

// be sure this is pointing to a ttf font in your hardrive
[Embed(source="C:\WINDOWS\Fonts\verdana.ttf", fontFamily="foo")] 
var bar:String;
                  
var format1:TextFormat = new TextFormat();
format1.font = "foo";
format1.color = 0xFFFFFF;
format1.size = 130;
    
var label:TextField = new TextField();
label.embedFonts = true;
label.autoSize = TextFieldAutoSize.LEFT;
label.antiAliasType = AntiAliasType.ADVANCED;
label.defaultTextFormat = format1;
label.text = "Hello World!";

addChild(label);

```

If I make comment of the line “label.embedFonts = true;” then I see the text Hello world. So what is missing or what do I wrong?

Nico
