Package org.apache.fontbox.ttf
Class Glyph2D
java.lang.Object
org.apache.fontbox.ttf.Glyph2D
This 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 -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the advanceWidth value.short
Returns the leftSideBearing value.getPath()
Returns the path describing the glyph.
-
Constructor Details
-
Glyph2D
Constructor.- Parameters:
gd
- the glyph descriptionlsb
- leftSideBearingadvance
- advanceWidth
-
-
Method Details
-
getAdvanceWidth
public int getAdvanceWidth()Returns the advanceWidth value.- Returns:
- the advanceWidth
-
getLeftSideBearing
public short getLeftSideBearing()Returns the leftSideBearing value.- Returns:
- the leftSideBearing
-
getPath
Returns the path describing the glyph.- Returns:
- the GeneralPath of the glyph
-