org.apache.fontbox.ttf

Class GlyphData

public class GlyphData extends Object

A glyph data record in the glyf table.

Version: $Revision: 1.1 $

Author: Ben Litchfield (ben@benlitchfield.com)

Method Summary
BoundingBoxgetBoundingBox()
shortgetNumberOfContours()
voidinitData(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.
voidsetBoundingBox(BoundingBox boundingBoxValue)
voidsetNumberOfContours(short numberOfContoursValue)

Method Detail

getBoundingBox

public BoundingBox getBoundingBox()

Returns: Returns the boundingBox.

getNumberOfContours

public short getNumberOfContours()

Returns: Returns the numberOfContours.

initData

public void initData(TrueTypeFont ttf, TTFDataStream data)
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.

Throws: IOException If there is an error reading the data.

setBoundingBox

public void setBoundingBox(BoundingBox boundingBoxValue)

Parameters: boundingBoxValue The boundingBox to set.

setNumberOfContours

public void setNumberOfContours(short numberOfContoursValue)

Parameters: numberOfContoursValue The numberOfContours to set.

Copyright © 2008-2011 Apache Software Foundation. All Rights Reserved.