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
-
~Manager() override = default
-
void load(const std::vector<std::filesystem::path> &files, CE::Rendering::Resources::Provider &provider)
Load in supplied order on the active provider’s loading thread.
Keys are lexically normalized paths; cached entries are retained. Newly loaded fonts use size 32 and select collection face zero. The first successful publication becomes the default if none exists. Errors propagate without rolling back earlier publications or trying an alternate system font.
-
Handle default_font() const
Declaration:
[[nodiscard]]Retain the published default, or return nullptr before loading/after clear.
-
virtual void clear_assets() noexcept override
Clear cache/default ownership; existing shared handles remain valid.
This does not release or replace the shared provider/loading-owner domain.
-
Manager() = default