Font-family

From Frontal Wiki

Jump to: navigation, search

Contents

Purpose

This 'text' tag style sets the font family of the text.


Value

The name of a font.

font-family: Swift LT Std;

This style is cascading.


Remarks

For a discussion of what fonts are available in your Frontal document and how to make more available, see System and Embedded Fonts.


Example

Click the letter to change it.

<style><![CDATA[
    text
        {
			font-family: Swift LT Std;
			font-size: 120px;
			scale: 6;
			top: -150px;
 
			@onClick
				{
					if ( ! dynamic.hasOwnProperty ( "index" ) ) dynamic.index = 1;
					text = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt ( dynamic.index++ );
					if ( dynamic.index >= 26 ) dynamic.index = 0;
				}
        }
]]></style>
<include rel="assets" blocking="true" src="assets.swf" fontClasses="SwiftLTStd, SwiftLTStdBold, SwiftLTStdItalic" />
<text><![CDATA[A]]></text>

Can Be Applied To

This style can be applied to:

Personal tools
Get Adobe Flash player