Open Game Engine 2D API
 All Functions Variables
Functions
Font

Functions

int OGE_GetFont (string sName, int iFontSize)
 Get the font resource by name and size.
string OGE_GetFontName (int iFontId)
 Get the name of the font.
int OGE_GetFontSize (int iFontId)
 Get the size of the font.
int OGE_GetDefaultFont ()
 Get the default font.
void OGE_SetDefaultFont (int iFontId)
 Set the default font.
void OGE_RemoveFont (string sName, int iFontSize)
 Remove a font by name and size.

Function Documentation

Get the default font.

Returns:
The ID of the default font
int OGE_GetFont ( string  sName,
int  iFontSize 
)

Get the font resource by name and size.

Parameters:
[in]sNameThe name of the font
[in]iFontSizeThe size of the font
Returns:
The ID of the font
string OGE_GetFontName ( int  iFontId)

Get the name of the font.

Parameters:
[in]iFontIdThe ID of the font
Returns:
The name of the font
int OGE_GetFontSize ( int  iFontId)

Get the size of the font.

Parameters:
[in]iFontIdThe ID of the font
Returns:
The size of the font
void OGE_RemoveFont ( string  sName,
int  iFontSize 
)

Remove a font by name and size.

Parameters:
[in]sNameThe name of the font
[in]iFontSizeThe size of the font
void OGE_SetDefaultFont ( int  iFontId)

Set the default font.

Parameters:
[in]iFontIdThe ID of the font