comparison ui/main.cpp @ 879:59fc7ececa5f

Reference bug id for font database problem
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 07 Aug 2014 19:19:36 +0200
parents 0051cb07da28
children 574cd1fae1dc
comparison
equal deleted inserted replaced
878:ad3b32a7375f 879:59fc7ececa5f
133 startup_file.close(); 133 startup_file.close();
134 #endif 134 #endif
135 135
136 /* Install static fonts */ 136 /* Install static fonts */
137 137
138 /* The putenv here works around a bug in qt. Qt thinks it is a fatal 138 /* The putenv here works around a bug in qt (#29192). Qt thinks it is a fatal
139 * error if the font directory does not exist. */ 139 * error if the font directory does not exist. */
140 qputenv("QT_QPA_FONTDIR", get_install_dir()); 140 qputenv("QT_QPA_FONTDIR", get_install_dir());
141 int fontId = QFontDatabase::addApplicationFont(":/fonts/DejaVuSans.ttf"); 141 int fontId = QFontDatabase::addApplicationFont(":/fonts/DejaVuSans.ttf");
142 if (fontId != -1) 142 if (fontId != -1)
143 { 143 {

http://wald.intevation.org/projects/trustbridge/