Embedded fonts, how does this work

Hello,

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


// 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