Engine » Font module

Adds fonts to Cubos using msdfgen.

Bridges

Dependencies

Files

file atlas.hpp
Struct cubos::engine::FontAtlas.
file bridge.hpp
Class cubos::engine::FontAtlasBridge.
file glyph.hpp
Struct cubos::engine::Glyph.
file bridge.hpp
Class cubos::engine::FontBridge.
file font.hpp
Struct cubos::engine::Font.
file plugin.hpp
Plugin entry point.

Classes

class cubos::engine::FontAtlas
Class that holds all the necessary data about a font atlas. This font atlas represents the texure created from all the different glyphs in a font, that will be then used for drawing the text.
class cubos::engine::FontAtlasBridge
Bridge which loads FontAtlas assets.
struct cubos::engine::FontGlyph
Struct that holds glyph data such as texcoords, position offsets and advance.
class cubos::engine::FontBridge
Bridge which loads Font assets.
class cubos::engine::Font
Asset containing raw font data containing the glyphs and their shape. This is used to create FontAtlas that can be used for rendering text.

Functions

auto fontPlugin(Cubos& cubos) -> CUBOS_ENGINE_API void
Plugin entry function.

Function documentation

CUBOS_ENGINE_API void fontPlugin(Cubos& cubos)

Plugin entry function.

Parameters
cubos Cubos main class.