Fixes X11 font path and compilation

git-svn-id: trunk@35692 -
This commit is contained in:
sekelsenmat 2012-03-03 20:44:26 +00:00
parent 276ce26bb5
commit c65328d7bc
2 changed files with 3 additions and 4 deletions

View File

@ -395,6 +395,8 @@ const
{$ifdef CD_Cocoa}
const
CDBackendNativeHandle = nhtCocoaNSWindow;
{$define CD_HasNativeFormHandle}
{$endif}
{ TLazCDCustomFont }
@ -414,9 +416,6 @@ begin
inherited Destroy;
end;
{$define CD_HasNativeFormHandle}
{$endif}
{$I customdrawnobject.inc}
{$I customdrawnwinapi.inc}

View File

@ -633,7 +633,7 @@ end;*)
{$ifndef CD_UseNativeText}
function TCDWidgetSet.BackendGetFontPath(const LogFont: TLogFont; const LongFontName: string): string;
begin
Result := '/Library/Fonts/Arial.ttf';
Result := '/usr/share/fonts/TTF/liberation/LiberationSans-Regular.ttf';
end;
{$endif}