From: Manuel Nickschas Date: Wed, 9 Apr 2008 11:02:22 +0000 (+0000) Subject: This should finally fix the remaining font issues, caused by not having explicitely... X-Git-Tag: 0.2.0-alpha5~2 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=ff488c1ca6e380e4e6b0641702c445501e0cd4ab This should finally fix the remaining font issues, caused by not having explicitely specified a font for the default format. Even though the docs say that "the default font is used" in that case, obviously it wasn't used correctly... Now even fresh installs (with no custom font set) should display correctly. Please let me know if that also works on Windows and MacOSX, or if any issues remain. --- diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index cbf2eca8..94c9742b 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -17,6 +17,7 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ +#include #include "uistyle.h" #include "uistylesettings.h" @@ -25,7 +26,7 @@ UiStyle::UiStyle(const QString &settingsKey) : _settingsKey(settingsKey) { // Default format QTextCharFormat def; def.setForeground(QBrush("#000000")); - //def.setFont(QFont("Mono", 10)); + def.setFont(QFont("Monospace", QApplication::font().pointSize())); def.font().setFixedPitch(true); def.font().setStyleHint(QFont::TypeWriter); _defaultFormats = QVector(NumFormatTypes, def); diff --git a/version.inc b/version.inc index 404720b8..4481b18e 100644 --- a/version.inc +++ b/version.inc @@ -5,7 +5,7 @@ quasselVersion = "0.2.0-alpha5-pre"; quasselDate = "2008-04-09"; - quasselBuild = 715; + quasselBuild = 716; //! Minimum client build number the core needs clientBuildNeeded = 642;