43typedef std::pair<std::string, float> FontDescription;
57 {
return m_fonts[desc]; }
63 std::map<FontDescription, ImFont*> m_fonts;
Definition: FontManager.h:46
void AddFontDescriptions(PreferenceCategory &cat, std::set< FontDescription > &fonts)
Get the font descriptions for each preference category.
Definition: FontManager.cpp:139
ImFont * GetFont(FontDescription desc)
Gets the font, if any, for the provided description.
Definition: FontManager.h:56
bool UpdateFonts(PreferenceCategory &root, float contentScale)
Check for changes to our fonts and, if any are found, reload.
Definition: FontManager.cpp:55
Definition: PreferenceTree.h:133