2D font using a texture to define character images with constant width and height.
This class has some assumptions about how the font image looks like: the characters are drawn in ASCII order, starting from space, on an image. Derive your own descendants of TCastleFont to have more flexibility, see the implementation of this class — it is quite simple. Or use TTextureFont that can read data from a FreeType (like ttf) font file.