The secret of font selection in Flash

Source: Internet
Author: User
The
Flash itself comes with three kinds of Device Fonts:_sans (similar to helvetic and Arial), _serif (similar to Times Roman), _typewriter (similar to courier). Interesting right here, I did an experiment: write a few words with the Static text,36 number Arial font, the generated SWF file is 1.35KB, and the swf file is 196 bytes when you check "Use device fonts"; Keep "Use device font S "Select, change font to _sans, swf file size or 196 bytes;" Keep the font as _sans, remove the "Use device Fonts", SWF file size is 120 bytes, the font to break the generated SWF file is 1.37KB, and finally changed to Dynamic text,embed fonts Select all the letters, the SWF file is 7.73KB. What does

mean? That is, in the absence of special requirements of the input text should try to directly use these three kinds of Device Fonts, can greatly reduce the volume of the file, of course, if you have to use some special fonts, you can only sacrifice some space.

To verify that the font you use can be exported by Flash, turn on the text anti-aliasing option, and if the font is still jagged, consider choosing one of the above mentioned methods.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.