SFont
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 |
Delete a loaded SFont
- Parameters:
-
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 |