Frames 

 No Frames

Previous Element
Filters

Next Element
FontDefinition


Font

This defines a font symbol that can be used within the movie, loaded from an external resource. 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 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. If the name does not agree with the stored name of the font this name will take precedence.
TypeString
resourceType The type of file used to store the font. An SWF format is an SWF file in which the font is already pre-processed and stored as SWF. Most commonly, this is as a result of a previous SWF decompilation. The first Font symbol found in the SWF is used.
ValuesExternal
SWF
Default ValueSWF
resourceLocation Identifier for this resource within the repository. For the default 'File' repository this indicated the file storing the font within the fonts directory. If the resource is not found the application will create the font symbol however all referencing symbols must be EditFields with the systemFont property, indicating that the font will be provided by the device on which the SWF will be played. Fonts to be used purely as device fonts should be specified with the FontDefinition element which is not explicitly associated with any repository. If this attribute is omitted, the font is assumed to be a system font and the font is automatically retrieved from the system font folder, if it exists.
Default ValueNo default
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
knownCodes Informational attribute for fonts produced on decompilation. Details the character codes of all known characters stored in the font resource. Not used on input.
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

Parent Elements

Repository

Examples

Font Manipulation Examples
HTML Support in EditFields
Font Range Examples
EditField Transformations
Timeline Replace Examples
Text Segments Example
Clipping and Text Clipping Example

Previous Element
Filters

Next Element
FontDefinition