Struct Manager
Defined in File font-mgr.h
Inheritance Relationships
Base Types
public CE::Assets::Cache::Store< CE::Text::Legacy::Font >(Template Struct Store)public CE::State::Singleton< Manager >(Template Class Singleton)
Struct Documentation
-
struct Manager : public CE::Assets::Cache::Store<CE::Text::Legacy::Font>, public CE::State::Singleton<Manager>
Declaration:
finalPath-keyed font cache in the shared provider/loading-owner domain.
Loading uses STB’s printable-ASCII atlas and collection face zero. System-font discovery/default candidate selection are separate utilities.
Public Functions
-
Manager() = default
Create an empty cache with no default; singleton initialize/get controls publication.
The shared active provider/loading-owner domain remains global across managers.
-
~Manager() override = default
Release cache ownership; retained font handles remain valid within their backend lifetime.
-
void load(const std::vector<std::filesystem::path> &files, CE::Rendering::Resources::Provider &provider)
Load supplied paths in order on the active provider loading owner/current context.
Lexically normalized cached paths are reused; new fonts bake ASCII at 32pixels, collection face 0. The first successful publication becomes default. Errors propagate without rolling back earlier publications or trying another discovered font.
See also
-
Handle default_font() const
Declaration:
[[nodiscard]]Return a retained shared default, null before loading or after clearing.
Shared lookup does not create a font or perform I/O.
-
virtual void clear_assets() noexcept override
Clear cache/default ownership while existing handles remain retained.
Does not release/replace the shared provider/loading-owner domain.
-
Manager() = default