Package de.xima.fc.common.text.shape
Class TextRun
- java.lang.Object
-
- de.xima.fc.common.text.shape.TextRun
-
public final class TextRun extends Object
Represents a single run of text to be shaped. A text run must have a single script and text direction.
-
-
Constructor Summary
Constructors Constructor Description TextRun(String text, String script, EBidiTextDirection textDirection)
Creates a new text run.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
script()
The script of the text.String
text()
The text to be shaped.EBidiTextDirection
textDirection()
The direction of the text, either left-to-right or right-to-left.
-
-
-
Constructor Detail
-
TextRun
public TextRun(String text, String script, EBidiTextDirection textDirection)
Creates a new text run.- Parameters:
text
- The text to be shaped.script
- The script of the text. A case-insensitive match for the values as defined by ISO 15924: Code for the Representation of Names of Scripts. See also the Unicode standard.textDirection
- The direction of the text, either left-to-right or right-to-left.
-
-
Method Detail
-
script
public String script()
The script of the text. A case-insensitive match for the values as defined by ISO 15924: Code for the Representation of Names of Scripts. See also the Unicode standard.- Returns:
- The script of the text.
-
text
public String text()
The text to be shaped.- Returns:
- The text to be shaped.
-
textDirection
public EBidiTextDirection textDirection()
The direction of the text, either left-to-right or right-to-left.- Returns:
- The direction of the text.
-
-