嵌入字体 需要注册一下
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 }
嵌入字体 需要注册一下
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 }