Class XMLWorkerFontProvider

    • Field Detail

      • DONTLOOKFORFONTS

        public static final java.lang.String DONTLOOKFORFONTS
        See Also:
        Constant Field Values
      • fontSubstitutionMap

        protected java.util.HashMap<java.lang.String,​java.lang.String> fontSubstitutionMap
      • useUnicode

        protected boolean useUnicode
    • Constructor Detail

      • XMLWorkerFontProvider

        public XMLWorkerFontProvider()
      • XMLWorkerFontProvider

        public XMLWorkerFontProvider​(java.lang.String fontsPath)
      • XMLWorkerFontProvider

        public XMLWorkerFontProvider​(java.lang.String fontsPath,
                                     java.util.HashMap<java.lang.String,​java.lang.String> fontSubstitutionMap)
    • Method Detail

      • addFontSubstitute

        public void addFontSubstitute​(java.lang.String font,
                                      java.lang.String substitute)
      • setUseUnicode

        public void setUseUnicode​(boolean useUnicode)
      • getFont

        public Font getFont​(java.lang.String fontname,
                            java.lang.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​(java.lang.String fontname,
                            java.lang.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​(java.lang.String fontName,
                                    java.lang.String encoding,
                                    float size,
                                    int style)