C# Class Engine.Objects.FontInstance

Inheritance: Jurassic.Library.ObjectInstance
ファイルを表示 Open project: Radnen/sphere-sfml Class Usage Examples

Public Methods

Method Description
DrawText ( SpriteBatch batch, double x, double y, string text ) : void
FontInstance ( ScriptEngine parent ) : System
FontInstance ( ScriptEngine parent, string filename ) : System
GetGlyph ( int num ) : Image

Private Methods

Method Description
CheckUpdate ( ) : void

Tries to update the atlas if any graphical changes were made to this font.

Clone ( ) : FontInstance
DrawText ( double x, double y, string text ) : void
DrawTextBox ( double x, double y, double w, double h, int spacing, string text ) : void
DrawZoomedText ( double x, double y, double zoom, string text ) : void
GetCharacterImage ( int ch ) : ImageInstance
GetColorMask ( ) : ColorInstance
GetHeight ( ) : int
GetStringHeight ( string text, int width ) : int
GetStringWidth ( string text ) : int
ReadFromFile ( string filename ) : void
Save ( string filename ) : void
SetCharacterImage ( int ch, ImageInstance image ) : void
SetColorMask ( ColorInstance color ) : void
ToString ( ) : string
Wrap ( string text, int width ) : ArrayInstance

Method Details

DrawText() public method

public DrawText ( SpriteBatch batch, double x, double y, string text ) : void
batch SpriteBatch
x double
y double
text string
return void

FontInstance() public method

public FontInstance ( ScriptEngine parent ) : System
parent ScriptEngine
return System

FontInstance() public method

public FontInstance ( ScriptEngine parent, string filename ) : System
parent ScriptEngine
filename string
return System

GetGlyph() public method

public GetGlyph ( int num ) : Image
num int
return Image