aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Fabio Bas2010-10-16 20:48:59 +0000
committerGravatar Fabio Bas2010-10-16 20:48:59 +0000
commit528c03ae1f12af4c8c5dae04af2e34fbe9095c3f (patch)
treef2a953eec8d3d1afb70a2ee7a4965cbe0c6b8ebc /src/modules
parentimplemented #987 (diff)
downloadKVIrc-528c03ae1f12af4c8c5dae04af2e34fbe9095c3f.tar.gz
KVIrc-528c03ae1f12af4c8c5dae04af2e34fbe9095c3f.tar.bz2
KVIrc-528c03ae1f12af4c8c5dae04af2e34fbe9095c3f.zip
fix for #991
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5083 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/editor/scripteditor.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp
index 9a035fb1e..6a1b4a56d 100644
--- a/src/modules/editor/scripteditor.cpp
+++ b/src/modules/editor/scripteditor.cpp
@@ -71,8 +71,13 @@ static QColor g_clrKeyword(85,85,255);
static QColor g_clrVariable(255,0,0);
static QColor g_clrPunctuation(180,180,0);
static QColor g_clrFind(0,0,0);
-static QFont g_fntNormal("Courier New",8);
+#if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW)
+ #define KVI_SCRIPTEDITOR_DEFAULT_FONT "Courier New"
+#else
+ #define KVI_SCRIPTEDITOR_DEFAULT_FONT "Monospace"
+#endif
+static QFont g_fntNormal(KVI_SCRIPTEDITOR_DEFAULT_FONT,8);
static bool bSemaphore=false;
static bool bCompleterReady=false;
@@ -808,7 +813,7 @@ void KviScriptEditorImplementation::loadOptions()
g_clrVariable = cfg.readColorEntry("Variable",QColor(200,200,200));
g_clrPunctuation = cfg.readColorEntry("Punctuation",QColor(180,180,0));
g_clrFind = cfg.readColorEntry("Find",QColor(255,0,0));
- g_fntNormal = cfg.readFontEntry("Font",QFont("Courier New",8));
+ g_fntNormal = cfg.readFontEntry("Font",QFont(KVI_SCRIPTEDITOR_DEFAULT_FONT,8));
}
bool KviScriptEditorImplementation::isModified()