Previous Element | Next Element |
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. | |
Type | String | |
fontName | The standard name of the font. The fontName and fontStyle combination should be unique within a movie. | |
Type | String | |
fontStyle | Optionally specifies the bold and italic properties of the font as a comma-separated string, presented in parentheses. | |
Values | bold italic | |
Default Value | None | |
codeClass | Optional attribute to indicate the code page associated with the font. | |
Values | Default Latin Japan Korea SimpChinese TradChinese | |
Default Value | Default | |
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 |
| |
Default Value | Defined | |
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 |
| |
Default Value | no | |
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. | |
Values | no yes | |
Default Value | no | |
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. | |
Values | no yes |
Child Elements
DescMetadata
Glyphs
FontMetrics
Parent Elements
DefinitionsExamples
ADPCM Sound ExampleSimple 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 | Next Element |