Interface ITextShaper

  • All Superinterfaces:
    AutoCloseable

    public interface ITextShaper
    extends AutoCloseable
    Interface for shaping text. Text shaping is the process of converting a sequence of characters into a sequence of glyphs, together with the geometry (mainly width) of that glyph sequence.
    Since:
    8.4.0
    • Method Detail

      • shape

        IShapedText shape​(List<TextRun> runs,
                          double fontSize)
        Shapes a piece of text runs. Each run must be in the same script and direction.
        Parameters:
        runs - The text runs to shape.
        fontSize - The font size.
        Returns:
        The shaped text.