Class PCLFontReader

java.lang.Object
org.apache.fop.render.pcl.fonts.PCLFontReader
Direct Known Subclasses:
PCLTTFFontReader

public abstract class PCLFontReader extends Object
  • Field Details

  • Constructor Details

    • PCLFontReader

      public PCLFontReader(Typeface font)
  • Method Details

    • 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 String getFontName()
    • getScaleFactor

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

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

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

      public abstract int getFontScalingTechnology()
    • getVariety

      public abstract int getVariety()
    • scanMtxCharacters

      public abstract Map<Integer,Integer> scanMtxCharacters() throws IOException
      Throws:
      IOException
    • getFontSegments

      public abstract List<PCLFontSegment> getFontSegments(Map<Character,Integer> mappedGlyphs) throws IOException
      Segmented Font Data
      Throws:
      IOException
    • getCharacterOffsets

      public abstract Map<Integer,int[]> getCharacterOffsets() throws IOException
      Character Definitions
      Throws:
      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