Package org.apache.fontbox.ttf
Class Glyph2D
- java.lang.Object
 - 
- org.apache.fontbox.ttf.Glyph2D
 
 
- 
public class Glyph2D extends java.lang.ObjectThis class provides a glyph to GeneralPath conversion. This class is based on code from Apache Batik a subproject of Apache XMLGraphics. see http://xmlgraphics.apache.org/batik/ for further details. 
- 
- 
Constructor Summary
Constructors Constructor Description Glyph2D(GlyphDescription gd, short lsb, int advance)Constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAdvanceWidth()Returns the advanceWidth value.shortgetLeftSideBearing()Returns the leftSideBearing value.java.awt.geom.GeneralPathgetPath()Returns the path describing the glyph. 
 - 
 
- 
- 
Constructor Detail
- 
Glyph2D
public Glyph2D(GlyphDescription gd, short lsb, int advance)
Constructor.- Parameters:
 gd- the glyph descriptionlsb- leftSideBearingadvance- advanceWidth
 
 - 
 
- 
Method Detail
- 
getAdvanceWidth
public int getAdvanceWidth()
Returns the advanceWidth value.- Returns:
 - the advanceWidth
 
 
- 
getLeftSideBearing
public short getLeftSideBearing()
Returns the leftSideBearing value.- Returns:
 - the leftSideBearing
 
 
- 
getPath
public java.awt.geom.GeneralPath getPath()
Returns the path describing the glyph.- Returns:
 - the GeneralPath of the glyph
 
 
 - 
 
 -