summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);