cubos::engine::Font class

Asset containing raw font data containing the glyphs and their shape. This is used to create FontAtlas that can be used for rendering text.

Constructors, destructors, conversion operators

Font(void* freetypeHandle, core::memory::Stream& stream)
Creates a new Font asset from the data in the stream.
Font(Font&& other) noexcept
Move constructor that moves the font handle to another Font asset.
~Font()
Destroys the associated handle to the font.

Public functions

auto handle() const -> void*
Returns the handle to this loaded font.