开发者

How can I hide an embedded font?

开发者 https://www.devze.com 2023-03-13 04:51 出处:网络
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

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消