OldSchool Library
sfont.h File Reference

Functions and structures to manage SFonts in the OSLib. More...

Data Structures

struct  OSL_SFLETTER
 Struct describing a single SFont letter. More...
 
struct  OSL_SFONT
 Struct describing a SFont. More...
 

Functions

OSL_SFONToslLoadSFontFile (char *filename, int pixelFormat)
 Load an SFont from a file.
 
void oslDeleteSFont (OSL_SFONT *sfont)
 Delete a loaded SFont.
 
int oslGetSFontTextWidth (OSL_SFONT *sfont, char *text)
 Get the text width using an SFont.
 
int oslSFontDrawText (OSL_SFONT *sfont, int x, int y, char *text)
 Print a string using an SFont.
 

Detailed Description

Functions and structures to manage SFonts in the OSLib.

This file contains the definitions and function declarations for working with SFonts, which are bitmap-based fonts used in the OSLib.