|
@@ -31,7 +31,7 @@ uses sysutils, classes, {$IFDEF DYNAMIC}freetypehdyn{$ELSE}freetypeh{$ENDIF}, FP
|
|
fontfiles and faces available in a fontfile }
|
|
fontfiles and faces available in a fontfile }
|
|
|
|
|
|
// determine if file comparison need to be case sensitive or not
|
|
// determine if file comparison need to be case sensitive or not
|
|
-{$ifdef WIN32}
|
|
|
|
|
|
+{$ifdef windows}
|
|
{$undef CaseSense}
|
|
{$undef CaseSense}
|
|
{$else}
|
|
{$else}
|
|
{$define CaseSense}
|
|
{$define CaseSense}
|
|
@@ -200,8 +200,6 @@ const
|
|
|
|
|
|
implementation
|
|
implementation
|
|
|
|
|
|
-{$IFDEF win32}uses dos;{$ENDIF}
|
|
|
|
-
|
|
|
|
procedure FTError (Event:string; Err:integer);
|
|
procedure FTError (Event:string; Err:integer);
|
|
begin
|
|
begin
|
|
raise FreeTypeException.CreateFmt (sErrFreeType, [Err,Event]);
|
|
raise FreeTypeException.CreateFmt (sErrFreeType, [Err,Event]);
|
|
@@ -1032,15 +1030,15 @@ begin
|
|
aRect := FBounds;
|
|
aRect := FBounds;
|
|
end;
|
|
end;
|
|
|
|
|
|
-{$ifdef win32}
|
|
|
|
|
|
+{$ifdef WINDOWS}
|
|
procedure SetWindowsFontPath;
|
|
procedure SetWindowsFontPath;
|
|
begin
|
|
begin
|
|
- DefaultSearchPath := includetrailingbackslash(GetEnv('windir')) + 'fonts';
|
|
|
|
|
|
+ DefaultSearchPath := includetrailingbackslash(GetEnvironmentVariable('windir')) + 'fonts';
|
|
end;
|
|
end;
|
|
{$endif}
|
|
{$endif}
|
|
|
|
|
|
initialization
|
|
initialization
|
|
- {$ifdef win32}
|
|
|
|
|
|
+ {$ifdef WINDOWS}
|
|
SetWindowsFontPath;
|
|
SetWindowsFontPath;
|
|
{$endif}
|
|
{$endif}
|
|
end.
|
|
end.
|