OldSchool Library
OSL_FONT Struct Reference

Loaded font structure. More...

#include <text.h>

Data Fields

OSL_IMAGEimg
 Image containing character sprites.
 
unsigned char * charWidths
 Table containing the width of each character (256 entries).
 
unsigned short * charPositions
 Position of characters in the image (16-bits: y:7, x:9).
 
int isCharWidthConstant
 Internal (to determine if charWidth needs to be freed).
 
int charWidth
 Width of characters.
 
int charHeight
 Height of characters (constant).
 
int recentrage
 Added to text positions when drawing.
 
unsigned char addedSpace
 Space added between characters on the texture (allows making characters bigger than indicated by charWidths).
 
int fontType
 Font type (OSL_FONT_OFT or OSL_FONT_INTRA).
 
intraFont * intra
 IntraFont data.
 

Detailed Description

Loaded font structure.

This struct represents a loaded font in OSLib, holding its image, character widths, positions, and other properties like font type and intraFont data.


The documentation for this struct was generated from the following file: