File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/com/itextpdf/html2pdf/attach Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ This file is part of the iText (R) project.
6060import com .itextpdf .layout .font .FontSet ;
6161import com .itextpdf .layout .font .Range ;
6262import com .itextpdf .styledxmlparser .css .media .MediaDeviceDescription ;
63+ import com .itextpdf .styledxmlparser .resolver .font .BasicFontProvider ;
6364import com .itextpdf .styledxmlparser .resolver .resource .ResourceResolver ;
6465
6566/**
@@ -414,7 +415,7 @@ public void reset() {
414415 this .linkContext = new LinkContext ();
415416 this .formFieldNameResolver .reset ();
416417 //Reset font provider. PdfFonts shall be reseted.
417- this .fontProvider = new FontProvider (this .fontProvider .getFontSet ());
418+ this .fontProvider = new BasicFontProvider (this .fontProvider .getFontSet (), this . fontProvider . getDefaultFontFamily ());
418419 this .tempFonts = null ;
419420 this .outlineHandler .reset ();
420421 this .processingInlineSvg = false ;
You can’t perform that action at this time.
0 commit comments