Property | Defined By | ||
---|---|---|---|
baseFont : BaseFont | Font | ||
color : RGBColor | Font | ||
family : int | Font | ||
familyname : String [read-only] | Font | ||
familyName : String [write-only] | Font | ||
isBold : Boolean [read-only] | Font | ||
isItalic : Boolean [read-only] | Font | ||
isStandardFont : Boolean [read-only] | Font | ||
isStrikethru : Boolean [read-only] | Font | ||
isUnderline : Boolean [read-only] | Font | ||
size : Number | Font | ||
style : int | Font |
Method | Defined By | ||
---|---|---|---|
Font | |||
clone():Object | Font | ||
compareTo(o:Object):int | Font | ||
Replaces the attributes that are equal to null with the
attributes of a given font. | Font | ||
[static] | Font | ||
getCalculatedBaseFont(specialEncoding:Boolean):BaseFont
Gets the BaseFont this class represents. | Font | ||
getCalculatedLeading(linespacing:Number):Number | Font | ||
getCalculatedSize():Number | Font | ||
getCalculatedStyle():int | Font | ||
getFamilyIndex(family:String):int [static] | Font | ||
getStyleValue(style:String):int [static]
Translates a String style value into the
index value is used for this style
| Font |
Constant | Defined By | ||
---|---|---|---|
BOLD : int = 1 [static] | Font | ||
BOLDITALIC : int [static] | Font | ||
COURIER : int = 0 [static] | Font | ||
DEFAULTSIZE : int = 12 [static] | Font | ||
HELVETICA : int = 1 [static] | Font | ||
ITALIC : int = 2 [static] | Font | ||
NORMAL : int = 0 [static] | Font | ||
STRIKETHRU : int = 8 [static] | Font | ||
SYMBOL : int = 3 [static] | Font | ||
TIMES_ROMAN : int = 2 [static] | Font | ||
UNDEFINED : int = -1 [static] | Font | ||
UNDERLINE : int = 4 [static] | Font | ||
ZAPFDINGBATS : int = 4 [static] | Font |
baseFont | property |
baseFont:BaseFont
public function get baseFont():BaseFont
public function set baseFont(value:BaseFont):void
color | property |
color:RGBColor
public function get color():RGBColor
public function set color(value:RGBColor):void
family | property |
family:int
public function get family():int
public function set family(value:int):void
familyname | property |
familyname:String
[read-only] public function get familyname():String
familyName | property |
familyName:String
[write-only] public function set familyName(value:String):void
isBold | property |
isBold:Boolean
[read-only] public function get isBold():Boolean
isItalic | property |
isItalic:Boolean
[read-only] public function get isItalic():Boolean
isStandardFont | property |
isStandardFont:Boolean
[read-only] public function get isStandardFont():Boolean
isStrikethru | property |
isStrikethru:Boolean
[read-only] public function get isStrikethru():Boolean
isUnderline | property |
isUnderline:Boolean
[read-only] public function get isUnderline():Boolean
size | property |
size:Number
public function get size():Number
public function set size(value:Number):void
style | property |
style:int
public function get style():int
public function set style(value:int):void
Font | () | Constructor |
public function Font(family:int, size:Number, style:int, color:RGBColor = null, baseFont:BaseFont = null)
Parameters
family:int (default = NaN ) — a combination of Font style ( eg: Font.UNDERLINE | Font.BOLD )
| |
size:Number (default = NaN )
| |
style:int (default = NaN )
| |
color:RGBColor (default = null )
| |
baseFont:BaseFont (default = null )
|
clone | () | method |
public function clone():Object
ReturnsObject |
compareTo | () | method |
public function compareTo(o:Object):int
Parameters
o:Object |
int |
difference | () | method |
public function difference(font:Font):Font
Replaces the attributes that are equal to null with the attributes of a given font.
Parameters
font:Font |
Font |
fromBaseFont | () | method |
public static function fromBaseFont(bs:BaseFont, size:Number, style:int, color:RGBColor):Font
Parameters
bs:BaseFont | |
size:Number | |
style:int | |
color:RGBColor |
Font |
getCalculatedBaseFont | () | method |
public function getCalculatedBaseFont(specialEncoding:Boolean):BaseFont
Gets the BaseFont this class represents. For the built-in
fonts a BaseFont
is calculated.
Parameters
specialEncoding:Boolean |
BaseFont |
getCalculatedLeading | () | method |
public function getCalculatedLeading(linespacing:Number):Number
Parameters
linespacing:Number |
Number |
getCalculatedSize | () | method |
public function getCalculatedSize():Number
ReturnsNumber |
getCalculatedStyle | () | method |
public function getCalculatedStyle():int
Returnsint |
getFamilyIndex | () | method |
public static function getFamilyIndex(family:String):int
Parameters
family:String |
int |
getStyleValue | () | method |
public static function getStyleValue(style:String):int
Translates a String style value into the index value is used for this style
Parameters
style:String |
int |
BOLD | Constant |
public static const BOLD:int = 1
BOLDITALIC | Constant |
public static const BOLDITALIC:int
COURIER | Constant |
public static const COURIER:int = 0
DEFAULTSIZE | Constant |
public static const DEFAULTSIZE:int = 12
HELVETICA | Constant |
public static const HELVETICA:int = 1
ITALIC | Constant |
public static const ITALIC:int = 2
NORMAL | Constant |
public static const NORMAL:int = 0
STRIKETHRU | Constant |
public static const STRIKETHRU:int = 8
SYMBOL | Constant |
public static const SYMBOL:int = 3
TIMES_ROMAN | Constant |
public static const TIMES_ROMAN:int = 2
UNDEFINED | Constant |
public static const UNDEFINED:int = -1
UNDERLINE | Constant |
public static const UNDERLINE:int = 4
ZAPFDINGBATS | Constant |
public static const ZAPFDINGBATS:int = 4