From 528c03ae1f12af4c8c5dae04af2e34fbe9095c3f Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sat, 16 Oct 2010 20:48:59 +0000 Subject: fix for #991 git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5083 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/editor/scripteditor.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/modules/editor/scripteditor.cpp') 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() -- cgit v1.3.1-10-gc9f91