diff --git a/src/FbTk/Font.cc b/src/FbTk/Font.cc index 0164e774..efa6cfbd 100644 --- a/src/FbTk/Font.cc +++ b/src/FbTk/Font.cc @@ -43,6 +43,7 @@ #include #include #include +#include #ifdef HAVE_SETLOCALE #include @@ -231,6 +232,9 @@ bool Font::load(const string &name) { m_fontstr = name; resetEffects(*this); return true; + } else { + std::cerr << "Couldn't initialize fonts. Check your fontconfig installation.\n"; + exit(1); } delete tmp_font;