Package com.itextpdf.io.font.otf
Class GposAnchor
java.lang.Object
com.itextpdf.io.font.otf.GposAnchor
A GPOS table uses anchor points to position one glyph with respect to another: two glyphs each define an anchor point, and the text-processing client attaches the glyphs by aligning their corresponding anchor points.
For more information see Anchor table
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a GPOS Anchor object with zero x and y coordinates.GposAnchor(GposAnchor other) Creates a Gpos Anchor object based on a given Gpos Anchor object. -
Method Summary
Modifier and TypeMethodDescriptionintRetrieves the X coordinate of the Gpos Anchor.intRetrieves the Y coordinate of the Gpos Anchor.voidsetXCoordinate(int xCoordinate) Sets the x coordinate of the Gpos Anchor.voidsetYCoordinate(int yCoordinate) Sets the Y coordinate of the Gpos Anchor.
-
Constructor Details
-
GposAnchor
public GposAnchor()Creates a GPOS Anchor object with zero x and y coordinates. -
GposAnchor
Creates a Gpos Anchor object based on a given Gpos Anchor object.- Parameters:
-
other- other Gpos Anchor object
-
-
Method Details
-
getXCoordinate
public int getXCoordinate()Retrieves the X coordinate of the Gpos Anchor.- Returns:
- X coordinate
-
setXCoordinate
public void setXCoordinate(int xCoordinate) Sets the x coordinate of the Gpos Anchor.- Parameters:
-
xCoordinate- X coordinate
-
getYCoordinate
public int getYCoordinate()Retrieves the Y coordinate of the Gpos Anchor.- Returns:
- Y coordinate
-
setYCoordinate
public void setYCoordinate(int yCoordinate) Sets the Y coordinate of the Gpos Anchor.- Parameters:
-
yCoordinate- Y coordinate
-