summaryrefslogtreecommitdiff
path: root/xml/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'xml/object.c')
-rw-r--r--xml/object.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/xml/object.c b/xml/object.c
index 6ea0ab6..3979384 100644
--- a/xml/object.c
+++ b/xml/object.c
@@ -140,17 +140,23 @@ const std::string &cxObject::TypeName(void) const
return ObjectNames[mType];
}
+int cxObject::UseTTF = true;
+
const cFont *cxObject::Font(void) const
{
const cFont *font;
+ if (UseTTF) {
+
+ if ((font = cText2SkinFont::Load(SkinPath() + "/" + mSkin->Name(), mFontFace, mFontSize,
+ mFontWidth)) != NULL)
+ return font;
+
if ((font = cText2SkinFont::Load(SkinPath() + "/fonts", mFontFace, mFontSize, mFontWidth))
!= NULL)
return font;
- if ((font = cText2SkinFont::Load(SkinPath() + "/" + mSkin->Name(), mFontFace, mFontSize,
- mFontWidth)) != NULL)
- return font;
+ }
return cFont::GetFont(fontOsd);
}