diff --git a/src/lib/views/sunlight/vTitleTab.cpp b/src/lib/views/sunlight/vTitleTab.cpp index 6d8ce77..22a6037 100644 --- a/src/lib/views/sunlight/vTitleTab.cpp +++ b/src/lib/views/sunlight/vTitleTab.cpp @@ -4,10 +4,19 @@ #include vTitleTab::vTitleTab(vContext * parent) : vContext(parent) { + // Allocate a new font font = new ogBitFont(); + + // Set the title to nothing title = ""; + + // Retrieve the default font filename out of the style tree sString * fontFileName = dynamic_cast(GetStyle("default font")); + + // Attempt to load the font if (NULL != fontFileName) { + // I should check for failure here, although everything fails quietly... + // so even if it does fail it won't matter much font->Load(fontFileName->name.c_str(), 0); } return;