#include <QApplication>
#include <QSplashScreen>
#include <QSettings>
+#include <QDir>
+#include <QFileInfo>
+#include <QFontDatabase>
#include <boost/scoped_ptr.hpp>
#include "MainWindow.hh"
#include "PythonPublisher.hh"
QString iconPath (settings.value("icon").toString());
settings.endGroup();
+
+ settings.beginGroup("Fonts");
+ QString loadFontDir (settings.value("loaddir").toString());
+ if (!loadFontDir.isEmpty()) {
+ QDir dir (loadFontDir);
+ if (dir.exists()) {
+ QFileInfoList files (dir.entryInfoList(QDir::Files));
+ for (QFileInfoList::iterator i (files.begin()), i_end (files.end());
+ i != i_end; ++i)
+ QFontDatabase::addApplicationFont(i->absoluteFilePath());
+ }
+ else
+ std::cerr << "WARNING: Font directory not found" << std::endl;
+ }
+ settings.endGroup();
+
settings.beginGroup("Viewer");
pykit::PythonPublisher publisher (settings.value("init").toString().toStdString());