22 mXmlFontTagName(
"Font"),
23 mXmlPropertyTagName(
"Property"),
24 mXmlDefaultFontValue(
"Default"),
25 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)
void unregisterFactory(const std::string &_category, const std::string &_type)
static FactoryManager & getInstance()
void registerFactory(const std::string &_category, const std::string &_type, Delegate::IDelegate *_delegate)
IFont * getByName(const std::string &_name) const
void setDefaultFont(const std::string &_value)
const std::string & getDefaultFont() const
static const char * getClassTypeName()
Type * castType(bool _throw=true)
void loadOldFontFormat(xml::ElementPtr _node, const std::string &_file, Version _version, const std::string &_tag)
const std::string & getCategoryName() const
IResource * getByName(const std::string &_name, bool _throw=true) const
void unregisterLoadXmlDelegate(const std::string &_key)
static ResourceManager & getInstance()
LoadXmlDelegate & registerLoadXmlDelegate(const std::string &_key)
ElementEnumerator getElementEnumerator()
const std::string & getName() const
bool findAttribute(const std::string &_name, std::string &_value)
delegates::DelegateFunction< Args... > * newDelegate(void(*_func)(Args... args))
MYGUI_SINGLETON_DEFINITION(ClipboardManager)