ActionScript / AIR - File Size Increase with TLF?
i'm developing an AIR application in Flash Professional CS5 and noticed that my .swf file size jumps from around 100kb to 900kb just for using TLF?! is this normal? that seems like an awful lot of extra weight for开发者_运维知识库 a few more options over regular TextField objects.
It's possible that the embedded fonts has way more than characters than you need, you can tell the compiler to include only the character range that you need:
http://blogs.adobe.com/tlf/2008/11/embedded-font-subsetting-using.html
the increased file size was caused by embedding the TLF library as an asset rather than relying on runtime shared libraries.
explination here: Working with Text Layout Framework (TLF) text: Publishing SWF files with TLF text
精彩评论