Struct BitmapFont

Inheritance Relationships

Base Types

Struct Documentation

struct BitmapFont : public CE::Text::Legacy::Font, public CE::State::Singleton<BitmapFont>

Declaration: final

Deprecated legacy bitmap font with native-short widths and a separate whitefont.png atlas.

Recovered inputs remain usable by this binary loader; prefer CE::Text::Legacy::AsciiFont to bake metrics and an atlas from a supplied font file.

Deprecated:

Use CE::Text::Legacy::AsciiFont with a system or bundled font file.

Public Functions

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

Declaration: [[nodiscard]]

Public Static Functions

static BitmapFontData load_ffont(const std::filesystem::path &path, CE::Rendering::Resources::Provider &provider)

Read 256 native shorts from a binary input file before any provider upload.

Incomplete reads fail; legacy trailing bytes are ignored. Metadata/endian semantics remain unverified; see docs/resources/legacy-ffont.md for the deprecation decision and preserved legacy behavior.