Package org.apache.fontbox.ttf
Interface GlyphDescription
- 
- All Known Implementing Classes:
 GlyfCompositeDescript,GlyfDescript,GlyfSimpleDescript
public interface GlyphDescriptionSpecifies 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetContourCount()Returns the number of contours.intgetEndPtOfContours(int i)Returns the index of the ending point of the given contour.bytegetFlags(int i)Returns the flags of the given point.intgetPointCount()Returns the number of points.shortgetXCoordinate(int i)Returns the x coordinate of the given point.shortgetYCoordinate(int i)Returns the y coordinate of the given point.booleanisComposite()Returns whether this point is a composite or not.voidresolve()Resolve all parts of an composite glyph. 
 - 
 
- 
- 
Method Detail
- 
getEndPtOfContours
int getEndPtOfContours(int i)
Returns the index of the ending point of the given contour.- Parameters:
 i- the number of the contour- Returns:
 - the index of the ending point of the given contour
 
 
- 
getFlags
byte getFlags(int i)
Returns the flags of the given point.- Parameters:
 i- the given point- Returns:
 - the flags value for the given point
 
 
- 
getXCoordinate
short getXCoordinate(int i)
Returns the x coordinate of the given point.- Parameters:
 i- the given point- Returns:
 - the x coordinate value for the given point
 
 
- 
getYCoordinate
short getYCoordinate(int i)
Returns the y coordinate of the given point.- Parameters:
 i- the given point- Returns:
 - the y coordinate value for the given point
 
 
- 
isComposite
boolean isComposite()
Returns whether this point is a composite or not.- Returns:
 - true if this point is a composite
 
 
- 
getPointCount
int getPointCount()
Returns the number of points.- Returns:
 - the number of points
 
 
- 
getContourCount
int getContourCount()
Returns the number of contours.- Returns:
 - the number of contours
 
 
- 
resolve
void resolve()
Resolve all parts of an composite glyph. 
 - 
 
 -