The secret of choosing fonts in Flash

Source: Internet
Author: User
Tags file size
Some special fonts are inevitably used in flash authoring, and these fonts are most likely not recognized by flash so that they are not displayed properly in the last SWF file generated. The solution is generally to break the text into a graphic, but this only applies to Static text, for Dynamic text and Input text is not feasible. Flash itself provides a specialized solution, called Embed Fonts, embeds font information in the FLA and SWF file to ensure that the font can eventually be displayed as it is, and that the player chooses the same font as the one on the machine that is the closest to the original font. , the resulting file is smaller than the previous method because it has no additional embedding of font information, but it is possible that the resulting results will be far removed from the author's original intention.

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 do you 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.

Check that you use the font can be the normal output of Flash, open the text anti-aliasing options, if the font is still jagged, then you have to consider the selection of some of the above mentioned method.

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.