Skip to content

Commit

Permalink
Do not register standard fonts for DefaultFontProvider (#880)
Browse files Browse the repository at this point in the history
* Do not register standard fonts for DefaultFontProvider as it sets wrong fonts for some HTML elements.

* Avoid loading standardFonts and shippedFonts in the DefaultFontProvider as fonts are already specified in the PDFReport.ini
  • Loading branch information
claudiamurialdo authored Oct 6, 2023
1 parent 8457795 commit 803e420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotnet/src/dotnetcore/GxPdfReportsCS/PDFReportItext8.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected override void init(ref int gxYPage, ref int gxXPage, int pageWidth, in
pdfDocument = new PdfDocument(writer);
pdfDocument.SetDefaultPageSize(this.pageSize);
document = new Document(pdfDocument);
document.SetFontProvider(new DefaultFontProvider());
document.SetFontProvider(new DefaultFontProvider(false, false, false));
}
catch (PdfException de)
{
Expand Down

0 comments on commit 803e420

Please sign in to comment.