Class XMLWorkerFontProvider

    • Constructor Detail

      • XMLWorkerFontProvider

        public XMLWorkerFontProvider()
      • XMLWorkerFontProvider

        public XMLWorkerFontProvider​(String fontsPath)
    • Method Detail

      • 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