Font-size

From Frontal Wiki

Jump to: navigation, search

Contents

Purpose

This style is exclusive to the 'text' tag and sets the size of the text.


Value

Pixel values or percentages. The default value is 8px.

font-size: 25%;


Remarks

If a percentage is used then it refers to a percentage of the containing block's height. "leftover" is not supported for font-size.

Font size is a Flash feature. See the Flash reference for TextFormat.size for more details. Also see the "font" tag documented with TexField.htmlText for a way to apply a font size to only a selection of text.


Example

<style><![CDATA[
	text
		{
			flash-text-anti-alias-type: advanced;
			font-family: Swift LT Std;
			sharpness: 50;
		}
]]></style>
<include rel="assets" blocking="true" src="assets.swf" fontClasses="SwiftLTStd, SwiftLTStdBold, SwiftLTStdItalic" />
<text style="font-size: 20px;">This text has a font-size of 20px.</text>
<text style="font-size: 25%;">This text has a font-size of 25% the height of the document.</text>

Can Be Applied To

This style can be applied to:

Personal tools
Get Adobe Flash player