Class XMLWorkerFontProvider

java.lang.Object
com.itextpdf.text.FontFactoryImp
com.itextpdf.tool.xml.XMLWorkerFontProvider
All Implemented Interfaces:
FontProvider

public class XMLWorkerFontProvider extends FontFactoryImp
  • Field Details

  • Constructor Details

    • XMLWorkerFontProvider

      public XMLWorkerFontProvider()
    • XMLWorkerFontProvider

      public XMLWorkerFontProvider(String fontsPath)
    • XMLWorkerFontProvider

      public XMLWorkerFontProvider(String fontsPath, HashMap<String,String> fontSubstitutionMap)
  • Method Details

    • addFontSubstitute

      public void addFontSubstitute(String font, String substitute)
    • setUseUnicode

      public void setUseUnicode(boolean useUnicode)
    • getFont

      public Font getFont(String fontname, String encoding, boolean embedded, float size, int style, BaseColor color)
      Description copied from class: FontFactoryImp
      Constructs a Font-object.
      Specified by:
      getFont in interface FontProvider
      Overrides:
      getFont in class FontFactoryImp
      Parameters:
      fontname - the name of the font
      encoding - the encoding of the font
      embedded - true if the font is to be embedded in the PDF
      size - the size of this font
      style - the style of this font
      color - the BaseColor of this font.
      Returns:
      the Font constructed based on the parameters
    • getFont

      public Font getFont(String fontname, String encoding, float size, int style)
      Description copied from class: FontFactoryImp
      Constructs a Font-object.
      Overrides:
      getFont in class FontFactoryImp
      Parameters:
      fontname - the name of the font
      encoding - the encoding of the font
      size - the size of this font
      style - the style of this font
      Returns:
      the Font constructed based on the parameters
    • getUnicodeFont

      private Font getUnicodeFont(String fontName, String encoding, float size, int style)