Class PDFFontNonBase14

    • Constructor Detail

      • PDFFontNonBase14

        public PDFFontNonBase14​(java.lang.String fontname,
                                FontType subtype,
                                java.lang.String basefont,
                                java.lang.Object encoding)
        Create the /Font object
        Parameters:
        fontname - the internal name for the font
        subtype - the font's subtype
        basefont - the base font name
        encoding - the character encoding schema used by the font
    • Method Detail

      • setWidthMetrics

        public void setWidthMetrics​(int firstChar,
                                    int lastChar,
                                    PDFArray widths)
        Set the width metrics for the font
        Parameters:
        firstChar - the first character code in the font
        lastChar - the last character code in the font
        widths - an array of size (lastChar - firstChar +1)
      • setDescriptor

        public void setDescriptor​(PDFFontDescriptor descriptor)
        Set the font descriptor (unused for the Type3 fonts)
        Parameters:
        descriptor - the descriptor for other font's metrics
      • getDescriptor

        public PDFFontDescriptor getDescriptor()
        Returns:
        the FontDescriptor or null if there is none
      • validate

        protected void validate()
        Validates the PDF object prior to serialization.
        Overrides:
        validate in class PDFFont