Skip to content

Commit

Permalink
Do not add default font to document, just make it indirect
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-alay authored and iText-CI committed Feb 7, 2019
1 parent beb64ed commit e94e438
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1670,7 +1670,7 @@ public PdfFont getDefaultFont() {
if (defaultFont == null) {
try {
defaultFont = PdfFontFactory.createFont();
addFont(defaultFont);
defaultFont.makeIndirect(this);
} catch (IOException e) {
Logger logger = LoggerFactory.getLogger(PdfDocument.class);
logger.error(LogMessageConstant.EXCEPTION_WHILE_CREATING_DEFAULT_FONT, e);
Expand Down

0 comments on commit e94e438

Please sign in to comment.