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)
72 const std::string& key =
node->findAttribute(
"key");
73 const std::string& value =
node->findAttribute(
"value");
74#ifdef MYGUI_USE_FREETYPE
77 if (key ==
"DefaultGenerated")
93 if (!
_name.empty() &&
_name != mXmlDefaultFontValue)
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)
static FactoryManager & getInstance()
IFont * getByName(const std::string &_name) const
void setDefaultFont(const std::string &_value)
const std::string & getDefaultFont() const
static const char * getClassTypeName()
void loadOldFontFormat(xml::ElementPtr _node, const std::string &_file, Version _version, const std::string &_tag)
static ResourceManager & getInstance()
delegates::DelegateFunction< Args... > * newDelegate(void(*_func)(Args... args))