aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Font.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Font.cc')
-rw-r--r--src/FbTk/Font.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/FbTk/Font.cc b/src/FbTk/Font.cc
index e2e3dec..c7193f7 100644
--- a/src/FbTk/Font.cc
+++ b/src/FbTk/Font.cc
@@ -229,9 +229,14 @@ namespace FbTk {
229bool Font::m_multibyte = false; 229bool Font::m_multibyte = false;
230bool Font::m_utf8mode = false; 230bool Font::m_utf8mode = false;
231 231
232// some initialisation for using fonts 232
233void fontInit() { 233void Font::init() {
234 setlocale(LC_CTYPE, ""); 234 // must be set before the first XFontSet is created
235 setlocale(LC_CTYPE, "");
236}
237
238void Font::shutdown() {
239
235} 240}
236 241
237Font::Font(const char *name, bool antialias): 242Font::Font(const char *name, bool antialias):