org.fontbox.ttf

Class GlyphData


public class GlyphData
extends java.lang.Object

A glyph data record in the glyf table.
Version:
$Revision: 1.1 $
Author:
Ben Litchfield (ben@benlitchfield.com)

Method Summary

BoundingBox
getBoundingBox()
short
getNumberOfContours()
void
initData(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.
void
setBoundingBox(BoundingBox boundingBoxValue)
void
setNumberOfContours(short numberOfContoursValue)

Method Details

getBoundingBox

public BoundingBox getBoundingBox()
Returns:
Returns the boundingBox.

getNumberOfContours

public short getNumberOfContours()
Returns:
Returns the numberOfContours.

initData

public void initData(TrueTypeFont ttf,
                     TTFDataStream data)
            throws IOException
This will read the required data from the stream.
Parameters:
ttf - The font that is being read.
data - The stream to read the data from.

setBoundingBox

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

setNumberOfContours

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