C4 Engine
C4 Engine API Documentation

class Font

Defined in:  C4Slug.h
The Font class encapsulates a text font.

class Font final : public SlugContainer, public Shared

Member Functions
Font::GetFont Returns a new reference to a font object.
Font::GetFontHeader Returns the font header.

Font(FontResource *resource, const char *name);

The Font constructor has private access. The Font::GetFont function should be used to create font objects.
The Font object encapsulates the resources needed to manage a text font. New font objects are created by calling the Font::GetFont function.
Base Classes
SlugContainer Font objects are containers that interact with the Slug Library.
Shared Font objects are reference counted.