Previous Element | Next Element |
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.
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. | |
Type | String | |
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. | |
Type | String | |
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. | |
Values | External SWF | |
Default Value | SWF | |
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 Value | No default | |
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 | |
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. | |
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
Parent Elements
RepositoryExamples
Font Manipulation ExamplesHTML Support in EditFields
Font Range Examples
EditField Transformations
Timeline Replace Examples
Text Segments Example
Clipping and Text Clipping Example
Previous Element | Next Element |