mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 09:06:02 +02:00
Enable fcl-pdf for BSD and solaris OSes
This commit is contained in:
parent
98c11c2365
commit
e657d6a07d
@ -34,7 +34,7 @@ begin
|
|||||||
P.Dependencies.Add('fcl-xml');
|
P.Dependencies.Add('fcl-xml');
|
||||||
P.Dependencies.Add('paszlib');
|
P.Dependencies.Add('paszlib');
|
||||||
P.Dependencies.add('winunits-base',AllWindowsOSes-[wince]);
|
P.Dependencies.add('winunits-base',AllWindowsOSes-[wince]);
|
||||||
P.Dependencies.add('libfontconfig',[linux] + AllBSDOses);
|
P.Dependencies.add('libfontconfig',[linux, solaris] + AllBSDOses);
|
||||||
P.Version:='3.3.1';
|
P.Version:='3.3.1';
|
||||||
T:=P.Targets.AddUnit('src/fpttfencodings.pp');
|
T:=P.Targets.AddUnit('src/fpttfencodings.pp');
|
||||||
T:=P.Targets.AddUnit('src/fpparsettf.pp');
|
T:=P.Targets.AddUnit('src/fpparsettf.pp');
|
||||||
|
@ -179,7 +179,7 @@ uses
|
|||||||
,WinApi.Activex
|
,WinApi.Activex
|
||||||
,System.Registry
|
,System.Registry
|
||||||
{$endif}
|
{$endif}
|
||||||
{$if (defined(LINUX) or defined(BSD)) and not defined(DARWIN)}
|
{$if (defined(LINUX) or defined(SOLARIS) or defined(BSD)) and not defined(DARWIN)}
|
||||||
, Api.Libfontconfig
|
, Api.Libfontconfig
|
||||||
, UnixApi.types
|
, UnixApi.types
|
||||||
{$endif}
|
{$endif}
|
||||||
@ -193,7 +193,7 @@ uses
|
|||||||
,Windows, // for SHGetFolderPath API call used by gTTFontCache.ReadStandardFonts() method
|
,Windows, // for SHGetFolderPath API call used by gTTFontCache.ReadStandardFonts() method
|
||||||
Shlobj, activex, registry
|
Shlobj, activex, registry
|
||||||
{$endif}
|
{$endif}
|
||||||
{$if (defined(LINUX) or defined(BSD)) and not defined(DARWIN)}
|
{$if (defined(LINUX) or defined(SOLARIS) or defined(BSD)) and not defined(DARWIN)}
|
||||||
, libfontconfig, unixtype
|
, libfontconfig, unixtype
|
||||||
{$ifend}
|
{$ifend}
|
||||||
;
|
;
|
||||||
@ -630,7 +630,7 @@ procedure TFPFontCacheList.ReadStandardFonts;
|
|||||||
cFontsConf = '/usr/local/etc/fonts/fonts.conf';
|
cFontsConf = '/usr/local/etc/fonts/fonts.conf';
|
||||||
{$endif}
|
{$endif}
|
||||||
{ Use same default for Linux and other BSD non-Darwin systems. }
|
{ Use same default for Linux and other BSD non-Darwin systems. }
|
||||||
{$if (defined(linux) or (defined(bsd) and not(defined(darwin)) and not defined(HasFontsConf)))}
|
{$if (defined(linux) or defined(solaris) or (defined(bsd) and not(defined(darwin)) and not defined(HasFontsConf)))}
|
||||||
{$define HasFontsConf}
|
{$define HasFontsConf}
|
||||||
const
|
const
|
||||||
cFontsConf = '/etc/fonts/fonts.conf';
|
cFontsConf = '/etc/fonts/fonts.conf';
|
||||||
@ -876,7 +876,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$if (defined(LINUX) or defined(BSD)) and not defined(DARWIN)}
|
{$if (defined(LINUX) or defined(SOLARIS) or defined(BSD)) and not defined(DARWIN)}
|
||||||
|
|
||||||
//https://stackoverflow.com/questions/10542832/how-to-use-fontconfig-to-get-font-list-c-c
|
//https://stackoverflow.com/questions/10542832/how-to-use-fontconfig-to-get-font-list-c-c
|
||||||
class function TFontMapper.find(const family, style: string; list: TStrings): boolean;
|
class function TFontMapper.find(const family, style: string; list: TStrings): boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user