Loading...
Searching...
No Matches
FontManager.h
Go to the documentation of this file.
1// Copyright (c) 2025 Dave R. Smith. All rights reserved.
2// Malena Framework — Proprietary Software. See LICENSE for terms.
3
4#ifndef MALENA_FONTMANAGER_H
5#define MALENA_FONTMANAGER_H
6
13
14namespace ml
15{
45 template<typename Manifest = DefaultManifest>
46 class FontManager : public ResourceManager<Manifest, sf::Font, &fileOpener>
47 {
48 public:
58 static const sf::Font& getDefault();
59
69 static void prewarm(const sf::Font& font, unsigned int charSize);
70 };
71
72} // namespace ml
73
74#include "../../../src/Resources/FontManager.tpp"
75#endif // MALENA_FONTMANAGER_H
Manifest-driven cache for sf::Font resources.
Definition FontManager.h:47
static const sf::Font & getDefault()
Return the built-in Arial font.
static void prewarm(const sf::Font &font, unsigned int charSize)
Pre-populate the glyph atlas for a font at a given character size.
Generic manifest-driven resource cache.
Definition Component.h:22