Support for rendering bitmap fonts

Added a GlyphCache class that can be used for efficiently rendering
bitmap fonts with multi-line, kerning and substring support.