Class PCLFontReader

  • Direct Known Subclasses:
    PCLTTFFontReader

    public abstract class PCLFontReader
    extends java.lang.Object
    • Constructor Detail

      • PCLFontReader

        public PCLFontReader​(Typeface font)
    • Method Detail

      • setFont

        public void setFont​(CustomFont mbFont)
      • getDescriptorSize

        public abstract int getDescriptorSize()
        Header Data
      • getHeaderFormat

        public abstract int getHeaderFormat()
      • getFontType

        public abstract int getFontType()
      • getStyleMSB

        public abstract int getStyleMSB()
      • getBaselinePosition

        public abstract int getBaselinePosition()
      • getCellWidth

        public abstract int getCellWidth()
      • getCellHeight

        public abstract int getCellHeight()
      • getOrientation

        public abstract int getOrientation()
      • getSpacing

        public abstract int getSpacing()
      • getSymbolSet

        public abstract int getSymbolSet()
      • getPitch

        public abstract int getPitch()
      • getHeight

        public abstract int getHeight()
      • getXHeight

        public abstract int getXHeight()
      • getWidthType

        public abstract int getWidthType()
      • getStyleLSB

        public abstract int getStyleLSB()
      • getStrokeWeight

        public abstract int getStrokeWeight()
      • getTypefaceLSB

        public abstract int getTypefaceLSB()
      • getTypefaceMSB

        public abstract int getTypefaceMSB()
      • getSerifStyle

        public abstract int getSerifStyle()
      • getQuality

        public abstract int getQuality()
      • getPlacement

        public abstract int getPlacement()
      • getUnderlinePosition

        public abstract int getUnderlinePosition()
      • getUnderlineThickness

        public abstract int getUnderlineThickness()
      • getTextHeight

        public abstract int getTextHeight()
      • getTextWidth

        public abstract int getTextWidth()
      • getFirstCode

        public abstract int getFirstCode()
      • getLastCode

        public abstract int getLastCode()
      • getPitchExtended

        public abstract int getPitchExtended()
      • getHeightExtended

        public abstract int getHeightExtended()
      • getCapHeight

        public abstract int getCapHeight()
      • getFontNumber

        public abstract int getFontNumber()
      • getFontName

        public abstract java.lang.String getFontName()
      • getScaleFactor

        public abstract int getScaleFactor()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getMasterUnderlinePosition

        public abstract int getMasterUnderlinePosition()
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getMasterUnderlineThickness

        public abstract int getMasterUnderlineThickness()
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • getFontScalingTechnology

        public abstract int getFontScalingTechnology()
      • getVariety

        public abstract int getVariety()
      • scanMtxCharacters

        public abstract java.util.Map<java.lang.Integer,​java.lang.Integer> scanMtxCharacters()
                                                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • getFontSegments

        public abstract java.util.List<PCLFontSegment> getFontSegments​(java.util.Map<java.lang.Character,​java.lang.Integer> mappedGlyphs)
                                                                throws java.io.IOException
        Segmented Font Data
        Throws:
        java.io.IOException
      • getCharacterOffsets

        public abstract java.util.Map<java.lang.Integer,​int[]> getCharacterOffsets()
                                                                                  throws java.io.IOException
        Character Definitions
        Throws:
        java.io.IOException
      • getFontFile

        public abstract OpenFont getFontFile()
      • getFontFileReader

        public abstract FontFileReader getFontFileReader()
      • getMSB

        protected int getMSB​(int s)
        Gets the most significant byte from a 16-bit integer
        Parameters:
        s - The number
        Returns:
        The resulting byte value as an integer
      • getLSB

        protected int getLSB​(int s)
        Gets the least significant byte from a 16-bit integer
        Parameters:
        s - The number
        Returns:
        The resulting byte value as an integer