Class GlyphData

java.lang.Object
org.apache.fontbox.ttf.GlyphData

public class GlyphData extends Object
A glyph data record in the glyf table.
Author:
Ben Litchfield (ben@benlitchfield.com)
  • Constructor Details

    • GlyphData

      public GlyphData()
  • Method Details

    • initData

      public void initData(GlyphTable glyphTable, TTFDataStream data) throws IOException
      This will read the required data from the stream.
      Parameters:
      glyphTable - The glyph table this glyph belongs to.
      data - The stream to read the data from.
      Throws:
      IOException - If there is an error reading the data.
    • getBoundingBox

      public BoundingBox getBoundingBox()
      Returns:
      Returns the boundingBox.
    • setBoundingBox

      public void setBoundingBox(BoundingBox boundingBoxValue)
      Parameters:
      boundingBoxValue - The boundingBox to set.
    • getNumberOfContours

      public short getNumberOfContours()
      Returns:
      Returns the numberOfContours.
    • setNumberOfContours

      public void setNumberOfContours(short numberOfContoursValue)
      Parameters:
      numberOfContoursValue - The numberOfContours to set.
    • getDescription

      public GlyphDescription getDescription()
      Returns the description of the glyph.
      Returns:
      the glyph description
    • getXMaximum

      public short getXMaximum()
      Returns the xMax value.
      Returns:
      the XMax value
    • getXMinimum

      public short getXMinimum()
      Returns the xMin value.
      Returns:
      the xMin value
    • getYMaximum

      public short getYMaximum()
      Returns the yMax value.
      Returns:
      the yMax value
    • getYMinimum

      public short getYMinimum()
      Returns the yMin value.
      Returns:
      the yMin value