aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbTk/Font.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/FbTk/Font.cc b/src/FbTk/Font.cc
index 0164e77..efa6cfb 100644
--- a/src/FbTk/Font.cc
+++ b/src/FbTk/Font.cc
@@ -43,6 +43,7 @@
43#include <map> 43#include <map>
44#include <typeinfo> 44#include <typeinfo>
45#include <langinfo.h> 45#include <langinfo.h>
46#include <iostream>
46 47
47#ifdef HAVE_SETLOCALE 48#ifdef HAVE_SETLOCALE
48#include <locale.h> 49#include <locale.h>
@@ -231,6 +232,9 @@ bool Font::load(const string &name) {
231 m_fontstr = name; 232 m_fontstr = name;
232 resetEffects(*this); 233 resetEffects(*this);
233 return true; 234 return true;
235 } else {
236 std::cerr << "Couldn't initialize fonts. Check your fontconfig installation.\n";
237 exit(1);
234 } 238 }
235 239
236 delete tmp_font; 240 delete tmp_font;