summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-02-07 16:42:18 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-02-07 16:42:18 +0200
commit5b563daf33136c0b45cf9f8cc8b3d804350f32ce (patch)
treea7934d249a7d2aebfca901ce83965072cf6b69c6 /src
parent30f91134faa212fd2b47e224aa47112f9343f48c (diff)
downloadfpGUI-5b563daf33136c0b45cf9f8cc8b3d804350f32ce.tar.xz
Default Font changes.
* Linux now defaults to 'Liberation Sans' which comes standard with most Linux distros, and is metric compatible with Arial. The latter is freely available, but doesn't come standard with any Linux disto. * Windows default font size is now 8 (down from previous 10), which is now the same as the remainder of Windows apps. Strange that the same font as size (eg: Arial-10) is different sizes in pixels under Linux and Windows. Weird! :-/
Diffstat (limited to 'src')
-rw-r--r--src/corelib/fpg_base.pas9
-rw-r--r--src/corelib/fpg_main.pas4
2 files changed, 10 insertions, 3 deletions
diff --git a/src/corelib/fpg_base.pas b/src/corelib/fpg_base.pas
index 1a3b4089..c65d8176 100644
--- a/src/corelib/fpg_base.pas
+++ b/src/corelib/fpg_base.pas
@@ -109,7 +109,14 @@ const
var
- FPG_DEFAULT_FONT_DESC: string = 'Arial-10:antialias=true';
+ {$IFDEF MSWINDOWS}
+ FPG_DEFAULT_FONT_DESC: string = 'Arial-8:antialias=true';
+ FPG_DEFAULT_SANS: string = 'Arial';
+ {$ENDIF}
+ {$IFDEF UNIX}
+ FPG_DEFAULT_FONT_DESC: string = 'Liberation Sans-10:antialias=true';
+ FPG_DEFAULT_SANS: string = 'Liberation Sans';
+ {$ENDIF}
const
UserNamedColorStart = 128;
diff --git a/src/corelib/fpg_main.pas b/src/corelib/fpg_main.pas
index fd28ffa8..78269273 100644
--- a/src/corelib/fpg_main.pas
+++ b/src/corelib/fpg_main.pas
@@ -1969,8 +1969,8 @@ begin
fpgSetNamedFont('Edit1', FPG_DEFAULT_FONT_DESC);
fpgSetNamedFont('Edit2', 'Courier New-10');
fpgSetNamedFont('List', FPG_DEFAULT_FONT_DESC);
- fpgSetNamedFont('Grid', 'Arial-9');
- fpgSetNamedFont('GridHeader', 'Arial-9:bold');
+ fpgSetNamedFont('Grid', FPG_DEFAULT_SANS + '-9');
+ fpgSetNamedFont('GridHeader', FPG_DEFAULT_SANS + '-9:bold');
fpgSetNamedFont('Menu', FPG_DEFAULT_FONT_DESC);
fpgSetNamedFont('MenuAccel', FPG_DEFAULT_FONT_DESC + ':underline');
fpgSetNamedFont('MenuDisabled', FPG_DEFAULT_FONT_DESC);