Frames 

 No Frames

Previous Element
Font

Next Element
FontMetrics


FontDefinition

This defines an inline font symbol that can be used within the movie. Font symbols are associated with both EditField and TextField symbols. Glyphs from each defined font are embedded in the movie for each character in a Text symbol and for all EditField text that does not have the systemFont property. A Font symbol is output when referenced but can be forced to be output even if no symbol references it.

All Font and FontDefinition symbols with the same fontName and fontStyle are combined prior to output.

Attributes

id A unique name for the symbol within the movie.
TypeString
fontName The standard name of the font. The fontName and fontStyle combination should be unique within a movie.
TypeString
fontStyle Optionally specifies the bold and italic properties of the font as a comma-separated string, presented in parentheses.
Valuesbold
italic
Default ValueNone
codeClass Optional attribute to indicate the code page associated with the font.
ValuesDefault
Latin
Japan
Korea
SimpChinese
TradChinese
Default ValueDefault
fontRange Specifies the minimum character set in this font that should be included in the output movie. The specified range is added to the specified range or content of all referencing symbols.This is best used for the purposes of space optimization rather than the restriction of input characters for an EditField.
Values
All
Include all known font characters
Defined
Include only font characters used in defined symbols
User-defined range string.
A font range string consists of a comma separated set of ranges. Each range can be a single character constant enclosed in single quotes, an integer character code, a Unicode character code, or a range of characters enclosed in square brackets with a '-' range character e.g. ['a'-'z'], '+', 34, \u0025.
Default ValueDefined
forceOutput Specify that the font must be output in the movie though no symbol directly references it. This is set to true when decompiling SWF if the font is used in a HTML EditField.
Values
no
Include characters in output movie only if directly referenced by symbol.
yes
Include characters from this font in output when not referenced by symbol.
Default Valueno
includeKerning In order to correctly render dynamic text that uses embedded fonts, the Flash 8 player can now use embedded kerning information in the font to adjust the gaps between different pairs of characters to enhance legibility. While such kerning information can become quite large in size, KineticFusion will only output the kerning information for those characters embedded in the font symbol.
Valuesno
yes
Default Valueno
bitmapFont The Flash 8 authoring tool can convert font definitions so that they render using full pixels at a single specified font size. Pixel fonts are normally expensive in terms of storage space (as each pixel is square is emulated with a vector outline) and must be included for each font size used. This attribute is an information attribute indicating that a decompiled font is a bitmapFont and is not used on input.
Valuesno
yes

Child Elements

Desc
Metadata
Glyphs
FontMetrics

Parent Elements

Definitions

Examples

ADPCM Sound Example
Simple MP3 Sound Example
ActionScriptSettings Example
Animate simple symbols on timeline
Button Example
Button DragTarget Example
CArcs Example
Circle Examples
Example Of MovieClip classes
Example Of MovieClip classes and scripted animations
Color Specification Example
Quadratic Curve Example
Elliptical Arcs Example
SVG Arc Example in RVML
EditField Examples
EditField Transformations
Defines simple symbol for export
Raw MP3 Example
ActionScript on the Timeline
Color Gradient Examples
Import and Export a Symbol
Importing symbols at runtime
MorphShape Example
Sound Envelope Example
Square to Circle Morph Example
Simple MP3 Sound From URL Example
User-Defined Font Example

Previous Element
Font

Next Element
FontMetrics