Struct Font

Inheritance Relationships

Base Type

Derived Types

Struct Documentation

struct Font : protected CE::Assets::Content2D

Retains glyph geometry/atlas; direct base construction does not validate them.

Immutable implementations support CPU layout without a graphics context.

Subclassed by CE::Text::Legacy::AsciiFont, CE::Text::Legacy::BitmapFont

Public Functions

inline explicit Font(const FontResources &data)
virtual ~Font() = default
virtual std::vector<GlyphPlacement> layout(std::string_view text, LayoutOptions options = LayoutOptions{}) const = 0

Declaration: [[nodiscard]]

inline const std::shared_ptr<CE::Rendering::Geometry::Buffer2D> &glyph_geometry_handle() const

Declaration: [[nodiscard]]

inline const std::shared_ptr<CE::Rendering::Resources::Image> &glyph_atlas_handle() const

Declaration: [[nodiscard]]