package {
import flash.display.*;
import flash.text.*;
import mx.core.FontAsset;
public class HelloWorld extends Sprite {
Verdana;
public function HelloWorld ( ) {
var t:TextField = new TextField( );
t.embedFonts = true;
t.htmlText = "<FONT FACE='Verdana'>Hello world</FONT>";
addChild(t);
}
}
}
[Embed(source="c:/windows/fonts/verdana.ttf", fontFamily="Verdana")]
class Verdana extends FontAsset {
}
|