AS3 嵌入字体

嵌入字体 需要注册一下

 

1                 [Embed(source = "/language/xxxxxfont.ttf",fontFamily="huakangfont",embedAsCFF="false")]
2                 private static const GameFontClass:Class;
3                 public static function regFont():void
4                 {
5                         Font.registerFont(GameFontClass);
6                 }

 

posted @ 2013-09-26 15:00  jackyLe  阅读(165)  评论(0编辑  收藏  举报