Method | Description | |
---|---|---|
DrawString ( string text, float x, float y, |
Draws a string using this font at a position using the given Graphics context.
|
|
GetAdvanceWidth ( char c ) : int |
Get the AdvanceWidth of a glyph
|
|
GetGlyph ( char c ) : Image |
Get the Glyph of the char
|
|
PackedFont ( Stream stream ) : System |
Load a PackedFont from a stream.
|
|
PackedFont ( string filename ) : System |
Load a PackedFont from a file.
|
public DrawString ( string text, float x, float y, |
||
text | string | The text to be drawn. |
x | float | The x-position |
y | float | The y-position |
g | The graphics context to be used | |
return | void |
public GetAdvanceWidth ( char c ) : int | ||
c | char | The character of glyph |
return | int |
public GetGlyph ( char c ) : Image | ||
c | char | The character of glyph |
return | Image |
public PackedFont ( Stream stream ) : System | ||
stream | Stream | The stream containing the data. |
return | System |
public PackedFont ( string filename ) : System | ||
filename | string | The name of the file |
return | System |