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 Details

    • 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 Details

    • 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.