KrnFont - an SDL font library with kerning support

Summary

Download

TODO

Comparison with no kerning

TODO: images

How to add kerning information to a font

TODO: images, and a GIMP recipe.

API

The API is pretty straightforward.
In contract to BFont there is no concept of the 'current font'.
typedef struct KrnFont_* KrnFont
Pointer type representing a font.
KrnFont KrnFont_Load(const char* filename)
Loads a font from the specified image file. Returns the font - or NULL if it couldn't be loaded.
void KrnFont_Free(KrnFont font)
Frees the resources used by the font.
void KrnFont_PutChar(??)
void KrnFont_PutString(??)
void KrnFont_JustifiedPutString(??)
int KrnFont_FontHeight(??)
The height of characters of the font.
int KrnFont_CharWidth(??)
The width of a character.
int KrnFont_CharOverlap(KrnFont font, char c1, char c2)
How many pixels the two characters may overlap.

Erik Søe Sørensen