21 mXmlFontTagName(
"Font"),
22 mXmlPropertyTagName(
"Property"),
23 mXmlDefaultFontValue(
"Default"),
24 mSingletonHolder(this)
40 mDefaultName =
"Default";
58 mIsInitialise =
false;
63#ifndef MYGUI_DONT_USE_OBSOLETE
70 if (node->
getName() == mXmlPropertyTagName)
74#ifdef MYGUI_USE_FREETYPE
77 if (key ==
"DefaultGenerated")
86 mDefaultName = _value;
93 if (!_name.empty() && _name != mXmlDefaultFontValue)
96 if (result ==
nullptr)
99 if (!_name.empty() && _name != mXmlDefaultFontValue)
101 MYGUI_LOG(Error,
"Font '" << _name <<
"' not found. Replaced with default font.");
#define MYGUI_ASSERT(exp, dest)
#define MYGUI_LOG(level, text)
#define MYGUI_SINGLETON_DEFINITION(ClassName)
void registerFactory(std::string_view _category, std::string_view _type, Delegate::IDelegate *_delegate)
static FactoryManager & getInstance()
void unregisterFactory(std::string_view _category, std::string_view _type)
void setDefaultFont(std::string_view _value)
static std::string_view getClassTypeName()
IFont * getByName(std::string_view _name) const
const std::string & getDefaultFont() const
Type * castType(bool _throw=true)
void loadOldFontFormat(xml::ElementPtr _node, std::string_view _file, Version _version, std::string_view _tag)
void unregisterLoadXmlDelegate(std::string_view _key)
const std::string & getCategoryName() const
LoadXmlDelegate & registerLoadXmlDelegate(std::string_view _key)
IResource * getByName(std::string_view _name, bool _throw=true) const
static ResourceManager & getInstance()
bool findAttribute(std::string_view _name, std::string &_value)
ElementEnumerator getElementEnumerator()
const std::string & getName() const
delegates::DelegateFunction< Args... > * newDelegate(void(*_func)(Args... args))