SFont


Data Structures

struct  OSL_SFLETTER
struct  OSL_SFONT

Functions

OSL_SFONToslLoadSFontFile (char *filename, int pixelFormat)
void oslDeleteSFont (OSL_SFONT *sfont)
int oslGetSFontTextWidth (OSL_SFONT *sfont, char *text)
int oslSFontDrawText (OSL_SFONT *sfont, int x, int y, char *text)

Detailed Description

Functions to manage SFonts

Function Documentation

OSL_SFONT* oslLoadSFontFile ( char *  filename,
int  pixelFormat 
)

Load an SFont Returns a pointer to the loaded OSL_SFONT or NULL

Parameters:
filename file name
pixelFormat pixel format

void oslDeleteSFont ( OSL_SFONT sfont  ) 

Delete a loaded SFont

Parameters:
sfont SFont to delete

int oslGetSFontTextWidth ( OSL_SFONT sfont,
char *  text 
)

Get the text width using a SFont Returns width in pixel of the string rendered with the given SFont

Parameters:
sfont SFont
text Text to measure

int oslSFontDrawText ( OSL_SFONT sfont,
int  x,
int  y,
char *  text 
)

Print a string using SFont Returns the string end position

Parameters:
sfont SFont to use
x X position
y Y position
text Text to print


Generated on Wed Feb 24 10:25:35 2010 by  doxygen 1.5.9