* Search with Postscript font name and humanreadable font name

git-svn-id: trunk@43806 -
This commit is contained in:
michael 2019-12-28 21:21:13 +00:00
parent 9bd7401ce9
commit f01495668e

View File

@ -127,9 +127,13 @@ begin
if Assigned(fnt) then
Result := Document.AddFont(fnt.FileName, AFontName)
else
begin
fnt:=gTTFontCache.FindFont(AFontName);
if fnt=Nil then
raise Exception.CreateFmt('fpreport: Could not find the font <%s> in the font cache.', [AFontName]);
end;
end;
end;
end;
procedure TFPReportExportPDF.SetupPDFDocument;