Browse Source

* Fix compilation on windows

(cherry picked from commit e1befb165e039bbdd62ffd28b4c2f0bceb1b34eb)
Michaël Van Canneyt 2 years ago
parent
commit
95cb0b81f3
1 changed files with 5 additions and 4 deletions
  1. 5 4
      packages/fcl-image/src/freetype.pp

+ 5 - 4
packages/fcl-image/src/freetype.pp

@@ -188,17 +188,18 @@ Const
   DefaultFontExtension = '.ttf';
   DefaultFontExtention = DefaultFontExtension deprecated 'Use DefaultFontExtension';
 
+Var
   // Standard location for fonts in the Operating System
   {$ifdef Darwin}
-  DefaultSearchPath = '/Library/Fonts/';
+  DefaultSearchPath : string = '/Library/Fonts/';
   {$else}
-  DefaultSearchPath = '';
+  DefaultSearchPath : string = '';
   {$endif}
 
   {$IFDEF MAC}
-  DefaultResolution = 72;
+  DefaultResolution : Integer = 72;
   {$ELSE}
-  DefaultResolution = 96;
+  DefaultResolution : Integer = 96;
   {$ENDIF}
 
 implementation