Methods Summary |
---|
public float | getAdvance()Gets the glyph's advance along the baseline.
if (this.horizontal) {
return this.advanceX;
}
return this.advanceY;
|
public float | getAdvanceX()Gets the X component of the glyph's advance.
return this.advanceX;
|
public float | getAdvanceY()Gets the Y component of the glyph's advance.
return this.advanceY;
|
public java.awt.geom.Rectangle2D | getBounds2D()Gets the glyph's bounds.
return (Rectangle2D.Float)this.bounds.clone();
|
public float | getLSB()Gets the distance from 0, 0 to the left (for horizontal) or top (for
vertical) of the glyph bounds.
if (this.horizontal) {
return this.bounds.x;
}
return this.bounds.y;
|
public float | getRSB()Gets the distance from the right (for horizontal) or bottom (for
vertical) of the glyph bounds to the advance.
if (this.horizontal) {
return this.advanceX - this.bounds.x - (float)this.bounds.getWidth();
}
return this.advanceY - this.bounds.y - (float)this.bounds.getHeight();
|
public int | getType()Gets the glyph's type.
return this.glyphType;
|
public boolean | isCombining()Checks if this glyph is combining or not.
return ((this.glyphType & 3) == COMBINING);
|
public boolean | isComponent()Checks if this glyph is component or not.
return ((this.glyphType & 3) == COMPONENT);
|
public boolean | isLigature()Checks if this glyph is ligature or not.
return ((this.glyphType & 3) == LIGATURE);
|
public boolean | isStandard()Checks if this glyph is standard or not.
return ((this.glyphType & 3) == STANDARD);
|
public boolean | isWhitespace()Checks if this glyph is whitespace or not.
return ((this.glyphType & 4) == WHITESPACE);
|