| Package | org.aswing.plaf |
| Class | public class ASFontUIResource |
| Inheritance | ASFontUIResource ASFont |
| Implements | UIResource |
| Method | Defined by | ||
|---|---|---|---|
|
ASFontUIResource(name:String = "Tahoma", size:Number = 11, bold:Boolean = false, italic:Boolean = false, underline:Boolean = false, embedFontsOrAdvancedPros:* = null)
| ASFontUIResource | ||
![]() |
apply(textField:TextField, beginIndex:int = -1, endIndex:int = -1):void
Applys the font to the specified text field.
| ASFont | |
![]() |
changeBold(bold:Boolean):ASFont
| ASFont | |
![]() |
changeItalic(italic:Boolean):ASFont
| ASFont | |
![]() |
changeName(name:String):ASFont
| ASFont | |
![]() |
changeSize(size:int):ASFont
| ASFont | |
![]() |
changeUnderline(underline:Boolean):ASFont
| ASFont | |
![]() |
computeTextSize(text:String, includeGutters:Boolean = true):IntDimension
Computes text size with this font.
| ASFont | |
|
[static]
Create a font ui resource with a font.
| ASFontUIResource | ||
![]() | ASFont | ||
![]() |
getName():String
| ASFont | |
![]() |
getSize():uint
| ASFont | |
![]() |
getTextFormat():TextFormat
Return a new text format that contains the font properties.
| ASFont | |
![]() |
isBold():Boolean
| ASFont | |
![]() |
isEmbedFonts():Boolean
| ASFont | |
![]() |
isItalic():Boolean
| ASFont | |
![]() |
isUnderline():Boolean
| ASFont | |
![]() |
toString():String
| ASFont | |
| ASFontUIResource | () | constructor |
public function ASFontUIResource(name:String = "Tahoma", size:Number = 11, bold:Boolean = false, italic:Boolean = false, underline:Boolean = false, embedFontsOrAdvancedPros:* = null)Parameters
name:String (default = "Tahoma") |
|
size:Number (default = 11) |
|
bold:Boolean (default = false) |
|
italic:Boolean (default = false) |
|
underline:Boolean (default = false) |
|
embedFontsOrAdvancedPros:* (default = null) |
| createResourceFont | () | method |
public static function createResourceFont(font:ASFont):ASFontUIResourceCreate a font ui resource with a font.
Parametersfont:ASFont |
ASFontUIResource |