Glyph
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.Cloneable
public class Glyph implements Cloneable
Represents a Font glyph.
Methods
Method | Description |
---|---|
getState() | Gets glyph state. |
isEmpty() | True if the glyph doesn’t contain drawing instructions. |
getPath() | Gets glyph path. |
getLeftSidebearingX() | Gets glyph side bearing x coordinate. |
getLeftSidebearingY() | Gets glyph side bearing y coordinate. |
getWidthVectorX() | Gets glyph width vector. |
getWidthVectorY() | Gets glyph width vector. |
getSourceResolution() | Gets resolution of the source command set. |
getGlyphBBox() | Gets glyph BBox. |
clone() | Returns copy of glyph. |
getState()
public GlyphState getState()
Gets glyph state.
Returns: GlyphState - Glyph state.
isEmpty()
public boolean isEmpty()
True if the glyph doesn’t contain drawing instructions.
Returns: boolean - True if the glyph doesn’t contain drawing instructions.
getPath()
public SegmentPath getPath()
Gets glyph path.
Returns: SegmentPath - Glyph path.
getLeftSidebearingX()
public double getLeftSidebearingX()
Gets glyph side bearing x coordinate.
Returns: double - Glyph side bearing x coordinate.
getLeftSidebearingY()
public double getLeftSidebearingY()
Gets glyph side bearing y coordinate.
Returns: double - Glyph side bearing y coordinate.
getWidthVectorX()
public double getWidthVectorX()
Gets glyph width vector. Coordinate x.
Returns: double - Glyph width vector. Coordinate x.
getWidthVectorY()
public double getWidthVectorY()
Gets glyph width vector. Coordinate y.
Returns: double - Glyph width vector. Coordinate y.
getSourceResolution()
public int getSourceResolution()
Gets resolution of the source command set.
Returns: int - Resolution of the source command set.
getGlyphBBox()
public FontBBox getGlyphBBox()
Gets glyph BBox.
Returns: FontBBox - Glyph BBox
clone()
public Object clone()
Returns copy of glyph.
Returns: java.lang.Object - Copy of Glyph.