How can I hide an embedded font?
I have a situation in AS3 where I am required to embed a font but the .tff font file to be distributed 开发者_开发技巧with the software can't be seen by the user for copyright reasons. At the moment I embed the font using metadata in a sub folder of the application and it all works nicely, but I am not sure as how to hide the .tff?
Thanks
Christopher Grigg
If you embed a font into the swf, you do not have to give the ttf file with your application. All information are embedded within the swf to render the font.
How you do the embedding? Like this?
[Embed(source = '../assets/myFont.ttf', fontName = "MyFontName", embedAsCFF = "false")]
public var MyFont:Class;
精彩评论