mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:09:27 +02:00
* freetype windows compat patch from Pascal Riekenberg, mantis #35644
git-svn-id: trunk@42144 -
This commit is contained in:
parent
6d65a8f1e3
commit
455cb6758f
@ -31,7 +31,7 @@ uses sysutils, classes, {$IFDEF DYNAMIC}freetypehdyn{$ELSE}freetypeh{$ENDIF}, FP
|
||||
fontfiles and faces available in a fontfile }
|
||||
|
||||
// determine if file comparison need to be case sensitive or not
|
||||
{$ifdef WIN32}
|
||||
{$ifdef windows}
|
||||
{$undef CaseSense}
|
||||
{$else}
|
||||
{$define CaseSense}
|
||||
@ -200,8 +200,6 @@ const
|
||||
|
||||
implementation
|
||||
|
||||
{$IFDEF win32}uses dos;{$ENDIF}
|
||||
|
||||
procedure FTError (Event:string; Err:integer);
|
||||
begin
|
||||
raise FreeTypeException.CreateFmt (sErrFreeType, [Err,Event]);
|
||||
@ -1032,15 +1030,15 @@ begin
|
||||
aRect := FBounds;
|
||||
end;
|
||||
|
||||
{$ifdef win32}
|
||||
{$ifdef WINDOWS}
|
||||
procedure SetWindowsFontPath;
|
||||
begin
|
||||
DefaultSearchPath := includetrailingbackslash(GetEnv('windir')) + 'fonts';
|
||||
DefaultSearchPath := includetrailingbackslash(GetEnvironmentVariable('windir')) + 'fonts';
|
||||
end;
|
||||
{$endif}
|
||||
|
||||
initialization
|
||||
{$ifdef win32}
|
||||
{$ifdef WINDOWS}
|
||||
SetWindowsFontPath;
|
||||
{$endif}
|
||||
end.
|
||||
|
@ -6,7 +6,7 @@ Const
|
||||
|
||||
// Windows
|
||||
{$ifdef windows}
|
||||
FreeTypeDLL = 'freetype-6.dll'; // version 2.1.4
|
||||
FreeTypeDLL = 'freetype.dll';
|
||||
{$define ft_found_platform}
|
||||
{$endif}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user