Top Description Fields Constructors Methods
org.apache.fontbox.ttf

public Class GlyphData

extends Object
Class Inheritance
Imports
java.awt.geom.GeneralPath, java.io.IOException, org.apache.fontbox.util.BoundingBox

A glyph data record in the glyf table.
Author
Ben Litchfield

Field Summary

Modifier and TypeField and Description
private BoundingBox
private GlyfDescript
private short
private short
private short
private short
private short

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BoundingBox

Returns:

Returns the boundingBox.
getBoundingBox
()

public GlyphDescription

Returns:

the glyph description
getDescription
()

Returns the description of the glyph.

public short

Returns:

Returns the numberOfContours.
getNumberOfContours
()

public GeneralPath

Returns:

the path
getPath
()

Returns the path of the glyph.

public short

Returns:

the XMax value
getXMaximum
()

Returns the xMax value.

public short

Returns:

the xMin value
getXMinimum
()

Returns the xMin value.

public short

Returns:

the yMax value
getYMaximum
()

Returns the yMax value.

public short

Returns:

the yMin value
getYMinimum
()

Returns the yMin value.

pack-priv void
initData(GlyphTable
The glyph table this glyph belongs to.
glyphTable
,
TTFDataStream
The stream to read the data from.
data
,
int
The left side bearing for this glyph.
leftSideBearing
,
int
composite level
level
)

This will read the required data from the stream.

pack-priv void
initEmptyData()

Initialize an empty glyph record.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

boundingBoxback to summary
private BoundingBox boundingBox
glyphDescriptionback to summary
private GlyfDescript glyphDescription
numberOfContoursback to summary
private short numberOfContours
xMaxback to summary
private short xMax
xMinback to summary
private short xMin
yMaxback to summary
private short yMax
yMinback to summary
private short yMin

Constructor Detail

GlyphDataback to summary
public GlyphData()

Method Detail

getBoundingBoxback to summary
public BoundingBox getBoundingBox()
Returns:BoundingBox

Returns the boundingBox.

getDescriptionback to summary
public GlyphDescription getDescription()

Returns the description of the glyph.

Returns:GlyphDescription

the glyph description

getNumberOfContoursback to summary
public short getNumberOfContours()
Returns:short

Returns the numberOfContours.

getPathback to summary
public GeneralPath getPath()

Returns the path of the glyph.

Returns:GeneralPath

the path

getXMaximumback to summary
public short getXMaximum()

Returns the xMax value.

Returns:short

the XMax value

getXMinimumback to summary
public short getXMinimum()

Returns the xMin value.

Returns:short

the xMin value

getYMaximumback to summary
public short getYMaximum()

Returns the yMax value.

Returns:short

the yMax value

getYMinimumback to summary
public short getYMinimum()

Returns the yMin value.

Returns:short

the yMin value

initDataback to summary
pack-priv void initData(GlyphTable glyphTable, TTFDataStream data, int leftSideBearing, int level) throws IOException

This will read the required data from the stream.

Parameters
glyphTable:GlyphTable

The glyph table this glyph belongs to.

data:TTFDataStream

The stream to read the data from.

leftSideBearing:int

The left side bearing for this glyph.

level:int

composite level

Exceptions
IOException:
If there is an error reading the data.
initEmptyDataback to summary
pack-priv void initEmptyData()

Initialize an empty glyph record.