Browse Source

Apply fix submitted by Rika on discussion about issue #39366

Pierre Muller 1 year ago
parent
commit
9e341da6ed
1 changed files with 10 additions and 1 deletions
  1. 10 1
      packages/fcl-pdf/src/fpttf.pp

+ 10 - 1
packages/fcl-pdf/src/fpttf.pp

@@ -865,7 +865,7 @@ begin
     end;
     end;
   FcPatternDestroy(pat);
   FcPatternDestroy(pat);
 end;
 end;
-
+{$define tfontmapper_find_implemented}
 {$endif}
 {$endif}
 
 
 
 
@@ -1073,6 +1073,7 @@ begin
     reg.Free;
     reg.Free;
   end;
   end;
 end;
 end;
+{$define tfontmapper_find_implemented}
 {$endif}
 {$endif}
 
 
 {$ifdef DARWIN}
 {$ifdef DARWIN}
@@ -1134,6 +1135,14 @@ begin
     enum.done;
     enum.done;
   end;
   end;
 end;
 end;
+{$define tfontmapper_find_implemented}
+{$endif}
+
+{$ifndef tfontmapper_find_implemented}
+class function TFontMapper.find(const family, style: string; list: TStrings): boolean;
+begin
+  Result:=false;
+end;
 {$endif}
 {$endif}
 
 
 initialization
 initialization