Flash Hacks. 100 Industrial-Strength Tips & Tools Free Open Book

Flash Hacks. 100 Industrial-Strength Tips & Tools

Previous Section  < Day Day Up >  Next Section

Fonts

Flash supports both system fonts and embedded fonts. If you use one of the three default fonts—"_sans", "_serif", or "_typewriter"—the Flash Player finds the closest font on the user's system at runtime. The "_sans" font (equivalent to sans-serif in HTML/CSS) typically corresponds to Arial on Windows and Helvetica on the Mac. For the "_serif" and "_typewriter" default fonts (equivalent to serif and mono in HTML/CSS), Flash uses Times and Courier or other closely matched fonts.

Font outline information can be embedded in the SWF to allow you to perform text effects [Hack #48], such as rotating text. You don't have to embed default fonts in the SWF, but system fonts don't include vector information, so Flash cannot treat text formatted with a system font as graphics. Thus, text that uses system fonts typically disappears from the Stage if you rotate or scale the clip containing the text. If you try to embed one of the default fonts ("_sans", "_serif", or "_typewriter"), Flash embeds the closest font it finds on your development system at compile time. At runtime, the text can be rotated, scaled, and animated because Flash uses the embedded font information, not the system font from the end user's computer.

This chapter presents hacks for keeping text legible, implementing autocomplete text fields, importing text with complicated formatting, using CSS text, and using accessibility text as tool tips. Other text-related hacks, which discuss techniques such as transition effects created with text and masks [Hack #2], are sprinkled throughout the book.

    Previous Section  < Day Day Up >  Next Section
    Index: [SYMBOL][A][B][C][D][E][F][G][H][I][J][L][M][N][O][P][Q][R][S][T][U][V][W][X][Z]


         Main Menu
    Flash Hacks
    Table of Contents
    Copyright
    Credits
    Foreword
    Preface
    Chapter 1. Visual Effects
    Chapter 2. Color Effects
    Chapter 3. Drawing and Masking
    Chapter 4. Animation
    Chapter 5. 3D and Physics
    Chapter 6. Text
    Hacks #42-51
    Fonts
    Hack 42 Keep Text Legible
    Hack 43 Autocomplete Text Fields
    Hack 44 Store a List of All Input Words
    Hack 45 Import Complex Formatting in Flash
    Hack 46 HTML and CSS in Flash
    Hack 47 Use Accessibility Text as Help Text
    Hack 48 Text Effect Framework
    Hack 49 Typewriter Effect
    Hack 50 Time-Based Text Effects
    Hack 51 Timeline Text Effects
    Chapter 7. Sound
    Chapter 8. User Interface Elements
    Chapter 9. Performance and Optimization
    Chapter 10. ActionScript
    Chapter 11. Browser Integration
    Chapter 12. Security
    Colophon
    Index


    More Books
    PHP Hacks
    Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
    The Koran (Holy Qur'an)
    Macromedia Flash 8 Bible
    Search Engine Optimization for Dummies
    YouTube Traffic
    PHP 5 for Dummies
    Harry Potter and The Chamber of Secrets
    Harry Potter and the Sorcerer's Stone
    The Pilgrim's Progress
    Wireless Hacks
    Flash Hacks. 100 Industrial-Strength Tips & Tools
    PayPal Hacks. 100 Industrial-Strength Tips and Tools
    Amazon Hacks
    Pdf Hacks
    The Da Vinci Code
    Google Hacks
    The Holy Bible
    Windows XP For Dummies
    Harry Potter and the Half-Blood Prince
    Seo Book
    Upgrading and Repairing Networks
    Macromedia Dreamweaver 8 UNLEASHED
    Windows XP Annoyances
    Windows XP Hacks
    Microsoft Windows XP Power Toolkit
    Teach Yourself MS Office In 24Hours
    iPod & iTunes Missing Manual
    PC Hacks 100 Industrial-Strength Tips and Tools
    PC Overclocking, Optimization, and Tuning - 2th Edition
    PC Hardware In A Nutshell 3rd Edition
    PC Hardware in a Nutshell, 2nd Edition
    Upgrading and Repairing PCs
    Google for Dummies
    MySQL Cookbook
    Teach Yourself Macromedia Flash 8 In 24 Hours
    PHP CookBook
    Sams Teach Yourself JavaScript in 24 Hours
    PHP5 Manual
    Free Games Paper Airplanes
    500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele