| Property | Defined by | ||
|---|---|---|---|
| align : String
文字の align を指定します.
| F5Typographics | ||
| bitmap_mode : Boolean | F5Typographics | ||
| leading : Number
行間を示します.
| F5Typographics | ||
| letterSpacing : Number
文字間をしてします.
| F5Typographics | ||
| size : Number
文字のサイズを示します.
| F5Typographics | ||
| Method | Defined by | ||
|---|---|---|---|
|
F5Typographics(fg_:F5Graphics)
新しく F5TypoGraphics クラスのインスタンスを生成します.
| F5Typographics | ||
|
draw(target:BitmapData, str:String, color:uint, x:Number, y:Number, w:Number = 0, h:Number = 0, smoothing:Boolean = false):void
BitmapData にテキストを描画します.
| F5Typographics | ||
|
drawText(str:String, x:Number, y:Number, z:Number = 0.0):void
テキストを描画します.
| F5Typographics | ||
|
drawTextRect(str:String, x:Number, y:Number, w:Number, h:Number, z:Number = 0.0):void
指定の Rect 内にテキストを描画します.
| F5Typographics | ||
|
フォントと文字のサイズを指定します.
| F5Typographics | ||
|
textAscent():Number
| F5Typographics | ||
|
textDescent():Number
| F5Typographics | ||
|
textWidth(str:String):Number
テキストの表示幅を返します.
| F5Typographics | ||
| Constant | Defined by | ||
|---|---|---|---|
| BASELINE : String = "baseline" [static]
| F5Typographics | ||
| BOTTOM : String = "bottom" [static]
| F5Typographics | ||
| CENTER : String = "center" [static]
| F5Typographics | ||
| LEFT : String = "left" [static]
| F5Typographics | ||
| RIGHT : String = "right" [static]
| F5Typographics | ||
| TOP : String = "top" [static]
| F5Typographics | ||
| align | property |
align:String [read-write]文字の align を指定します.
Implementation public function get align():String
public function set align(value:String):void
| bitmap_mode | property |
public var bitmap_mode:Boolean
| leading | property |
leading:Number [read-write]行間を示します.
Implementation public function get leading():Number
public function set leading(value:Number):void
| letterSpacing | property |
letterSpacing:Number [read-write]文字間をしてします.
Implementation public function get letterSpacing():Number
public function set letterSpacing(value:Number):void
| size | property |
size:Number [read-write]文字のサイズを示します.
Implementation public function get size():Number
public function set size(value:Number):void
| F5Typographics | () | constructor |
public function F5Typographics(fg_:F5Graphics)新しく F5TypoGraphics クラスのインスタンスを生成します.
Parametersfg_:F5Graphics |
| draw | () | method |
public function draw(target:BitmapData, str:String, color:uint, x:Number, y:Number, w:Number = 0, h:Number = 0, smoothing:Boolean = false):voidBitmapData にテキストを描画します.
Parameterstarget:BitmapData — target bitmapData
|
|
str:String — text
|
|
color:uint — 32bit color
|
|
x:Number |
|
y:Number |
|
w:Number (default = 0) |
|
h:Number (default = 0) |
|
smoothing:Boolean (default = false) |
| drawText | () | method |
public function drawText(str:String, x:Number, y:Number, z:Number = 0.0):voidテキストを描画します.
Parametersstr:String |
|
x:Number |
|
y:Number |
|
z:Number (default = 0.0) |
| drawTextRect | () | method |
public function drawTextRect(str:String, x:Number, y:Number, w:Number, h:Number, z:Number = 0.0):void指定の Rect 内にテキストを描画します.
Parametersstr:String |
|
x:Number |
|
y:Number |
|
w:Number |
|
h:Number |
|
z:Number (default = 0.0) |
| setFont | () | method |
public function setFont(font:IFont, fontSize:Number):voidフォントと文字のサイズを指定します.
Parametersfont:IFont |
|
fontSize:Number |
| textAscent | () | method |
public function textAscent():NumberReturns
Number |
| textDescent | () | method |
public function textDescent():NumberReturns
Number |
| textWidth | () | method |
public function textWidth(str:String):Numberテキストの表示幅を返します.
Parametersstr:String |
Number |
| BASELINE | constant |
public static const BASELINE:String = "baseline"
| BOTTOM | constant |
public static const BOTTOM:String = "bottom"
| CENTER | constant |
public static const CENTER:String = "center"
| LEFT | constant |
public static const LEFT:String = "left"
| RIGHT | constant |
public static const RIGHT:String = "right"
| TOP | constant |
public static const TOP:String = "top"