Class DefaultFontStrategy

java.lang.Object
com.itextpdf.kernel.pdf.DefaultFontStrategy
Direct Known Subclasses:
PdfADefaultFontStrategy

public class DefaultFontStrategy extends Object
The class defines a default font strategy for PdfDocument which is used in the scope of PdfDocument.getDefaultFont().
  • Constructor Details

    • DefaultFontStrategy

      public DefaultFontStrategy (PdfDocument pdfDocument)
      Instantiates a new instance of DefaultFontStrategy which will be used for passed PdfDocument instance.
      Parameters:
      pdfDocument - the pdf document for which the strategy will be used to
  • Method Details

    • getFont

      public PdfFont getFont()
      Gets default font.
      Returns:
      the PdfFont instance