Top Description Methods
org.apache.fontbox.ttf

public Interface GlyphDescription

Known Direct Implementers
org.apache.fontbox.ttf.GlyfDescript

Specifies access to glyph description classes, simple and composite. This class is based on code from Apache Batik a subproject of Apache XMLGraphics. see http://xmlgraphics.apache.org/batik/ for further details.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the number of contours
getContourCount
()

Returns the number of contours.

public int

Returns:

the index of the ending point of the given contour
getEndPtOfContours
(int
the number of the contour
i
)

Returns the index of the ending point of the given contour.

public byte

Returns:

the flags value for the given point
getFlags
(int
the given point
i
)

Returns the flags of the given point.

public int

Returns:

the number of points
getPointCount
()

Returns the number of points.

public short

Returns:

the x coordinate value for the given point
getXCoordinate
(int
the given point
i
)

Returns the x coordinate of the given point.

public short

Returns:

the y coordinate value for the given point
getYCoordinate
(int
the given point
i
)

Returns the y coordinate of the given point.

public boolean

Returns:

true if this point is a composite
isComposite
()

Returns whether this point is a composite or not.

public void
resolve()

Resolve all parts of an composite glyph.

Method Detail

getContourCountback to summary
public int getContourCount()

Returns the number of contours.

Returns:int

the number of contours

getEndPtOfContoursback to summary
public int getEndPtOfContours(int i)

Returns the index of the ending point of the given contour.

Parameters
i:int

the number of the contour

Returns:int

the index of the ending point of the given contour

getFlagsback to summary
public byte getFlags(int i)

Returns the flags of the given point. To decode these bit flags, use the static elements of GlyfDescript. See also "Outline flags" in The 'glyf' table in the TrueType Reference Manual.

Parameters
i:int

the given point

Returns:byte

the flags value for the given point

getPointCountback to summary
public int getPointCount()

Returns the number of points.

Returns:int

the number of points

getXCoordinateback to summary
public short getXCoordinate(int i)

Returns the x coordinate of the given point.

Parameters
i:int

the given point

Returns:short

the x coordinate value for the given point

getYCoordinateback to summary
public short getYCoordinate(int i)

Returns the y coordinate of the given point.

Parameters
i:int

the given point

Returns:short

the y coordinate value for the given point

isCompositeback to summary
public boolean isComposite()

Returns whether this point is a composite or not.

Returns:boolean

true if this point is a composite

resolveback to summary
public void resolve()

Resolve all parts of an composite glyph.