Property | Type | Description | |
---|---|---|---|
AlphaMax | float | ||
AlphaMin | float | ||
Base | float | ||
Chars | BitmapChar[], | ||
Color | Color | ||
Kernings | BitmapCharKerning[], | ||
LineHeight | float | ||
PageAtlas | |||
PageOffsets | Rect[] | ||
ScaleH | float | ||
ScaleW | float | ||
ShadowAlphaMax | float | ||
ShadowAlphaMin | float | ||
ShadowColor | Color | ||
ShadowOffset | Vector2 | ||
Size | float |
Method | Description | |
---|---|---|
CalculateSize ( string str, Vector2 renderSize ) : Vector2 | ||
CalculateSize ( string str, float renderSize ) : Vector2 | ||
CreateFontMaterial ( ) : Material | ||
GetBitmapChar ( int c ) : BitmapChar, | ||
GetCharacterMaterial ( int c ) : Material | ||
GetKerning ( char first, char second ) : float | ||
GetPageMaterial ( int page ) : Material | ||
GetUVRect ( BitmapChar, bitmapChar ) : Rect | ||
GetUVRect ( int c ) : Rect | ||
Render ( Vector2 position, string str, Vector2 renderSize ) : Vector2 | ||
Render ( Vector2 position, string str, float renderSize ) : Vector2 | ||
UpdateFontMaterial ( Material fontMaterial ) : void |
public CalculateSize ( string str, Vector2 renderSize ) : Vector2 | ||
str | string | |
renderSize | Vector2 | |
return | Vector2 |
public CalculateSize ( string str, float renderSize ) : Vector2 | ||
str | string | |
renderSize | float | |
return | Vector2 |
public GetCharacterMaterial ( int c ) : Material | ||
c | int | |
return | Material |
public GetKerning ( char first, char second ) : float | ||
first | char | |
second | char | |
return | float |
public GetPageMaterial ( int page ) : Material | ||
page | int | |
return | Material |
public GetUVRect ( BitmapChar, bitmapChar ) : Rect | ||
bitmapChar | BitmapChar, | |
return | Rect |
public Render ( Vector2 position, string str, Vector2 renderSize ) : Vector2 | ||
position | Vector2 | |
str | string | |
renderSize | Vector2 | |
return | Vector2 |
public Render ( Vector2 position, string str, float renderSize ) : Vector2 | ||
position | Vector2 | |
str | string | |
renderSize | float | |
return | Vector2 |
public UpdateFontMaterial ( Material fontMaterial ) : void | ||
fontMaterial | Material | |
return | void |