diff options
Diffstat (limited to 'xml/object.c')
-rw-r--r-- | xml/object.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xml/object.c b/xml/object.c index 6ea0ab6..73d8a26 100644 --- a/xml/object.c +++ b/xml/object.c @@ -140,10 +140,14 @@ 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() + "/fonts", mFontFace, mFontSize, mFontWidth)) != NULL) return font; @@ -152,6 +156,8 @@ const cFont *cxObject::Font(void) const mFontWidth)) != NULL) return font; + } + return cFont::GetFont(fontOsd); } |