public abstract class DefineFont extends DefineTag
The DefineFont tag id can be used by subsequent DefineText tags to refer to the font definition. As with all SWF character ids, font ids must be unique amongst all character ids in a SWF file.
The first version of DefineFont was introduced in SWF 1.
The second version, DefineFont2, was introduced in SWF 3.
The third version, DefineFont3, was introduced in SWF 8, along with DefineFontAlignZones for advanced anti-aliasing.
In SWF 9, DefineFontName was introduced to record the formal font name and copyright information for an embedded font.
The fourth version, DefineFont4, was introduced in SWF 10.
Note that DefineFont tags cannot be used for dynamic text. Dynamic text requires the DefineFont2 tag (or later).
DefineFont1,
DefineFont2,
DefineFont3,
DefineFont4| Modifier and Type | Field and Description |
|---|---|
DefineFontName |
license |
names, stagCSMTextSettings, stagDebugID, stagDefineBinaryData, stagDefineBits, stagDefineBitsJPEG2, stagDefineBitsJPEG3, stagDefineBitsLossless, stagDefineBitsLossless2, stagDefineButton, stagDefineButton2, stagDefineButtonCxform, stagDefineButtonSound, stagDefineEditText, stagDefineFont, stagDefineFont2, stagDefineFont3, stagDefineFont4, stagDefineFontAlignZones, stagDefineFontInfo, stagDefineFontInfo2, stagDefineFontName, stagDefineMorphShape, stagDefineMorphShape2, stagDefineScalingGrid, stagDefineSceneAndFrameLabelData, stagDefineShape, stagDefineShape2, stagDefineShape3, stagDefineShape4, stagDefineSound, stagDefineSprite, stagDefineText, stagDefineText2, stagDefineVideoStream, stagDoABC, stagDoABC2, stagDoAction, stagDoInitAction, stagEnableDebugger, stagEnableDebugger2, stagEnableTelemetry, stagEnd, stagExportAssets, stagFileAttributes, stagFrameLabel, stagFreeCharacter, stagImportAssets, stagImportAssets2, stagJPEGTables, stagMetadata, stagPathsArePostScript, stagPlaceObject, stagPlaceObject2, stagPlaceObject3, stagProductInfo, stagProtect, stagRemoveObject, stagRemoveObject2, stagScriptLimits, stagSetBackgroundColor, stagSetTabIndex, stagShowFrame, stagSoundStreamBlock, stagSoundStreamHead, stagSoundStreamHead2, stagStartSound, stagSymbolClass, stagVideoFrame| Modifier | Constructor and Description |
|---|---|
protected |
DefineFont(int code) |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getFontName() |
abstract boolean |
isBold() |
abstract boolean |
isItalic() |
equals, getReferences, getSimpleReference, visitpublic DefineFontName license
public abstract String getFontName()
public abstract boolean isBold()
public abstract boolean isItalic()
Copyright © 2018 The Apache Software Foundation. All rights reserved.