Text rendering in wGui is done primarily by FreeType 2. The text system has two main components, the Font Engine, and the Rendered Strings.
The CFontEngine class acts as a wrapper for FreeType, and provides some performance enhancements such as glyph caching. A different Font Engine Object is required for each Font Face and Font Size pair. The Application object provides a mechanism for instantiating and keeping track of the various font engines required.
The CRenderedString class is for individual strings that are to be drawn to the screen. The class takes care of laying out the string and provides some other performance enhancements by caching the rendered image for future draw operations.