25 #ifndef GRAPHICS_AURORA_FONTMAN_H 26 #define GRAPHICS_AURORA_FONTMAN_H 83 std::map<Common::UString, Common::UString>
_aliases;
105 #define FontMan Graphics::Aurora::FontManager::instance() 107 #endif // GRAPHICS_AURORA_FONTMAN_H static ManagedFont * createFont(FontFormat format, const Common::UString &name, int height)
ABC/SBM font, used by Jade Empire.
A managed font, storing how often it's referenced.
Class and macro for implementing singletons.
NFTR font, used by Sonic.
A class holding an UTF-8 string.
FontHandle getIfExist(const Common::UString &name, int height=0)
Retrieve this named font, returning an empty handle if it's not managed.
std::map< Common::UString, Common::UString > _aliases
bool hasFont(const Common::UString &name, int height=0)
Does this named managed font exist?
Generic template base class for implementing the singleton design pattern.
FontFormat
The format of a font.
void addAlias(const Common::UString &alias, const Common::UString &realName)
Add an alias for a specific font name.
const char * kSystemFontMono
Identifier used for the monospaced system font.
A handle to an Aurora font.
void release(FontHandle &handle)
Low-level type definitions to handle fixed width types portably.
Common::UString getIndexName(Common::UString name, int height)
void clear()
Remove and delete all managed fonts.
void assign(FontHandle &font, const FontHandle &from)
Textured font, used by NWN and KotOR/KotOR2.
The global Aurora font manager.
Common::UString getAliasName(const Common::UString &name)
void setFormat(FontFormat format)
Load fonts in this format by default.
FontHandle add(Font *font, const Common::UString &name)
Add this font to the FontManager.