Interface IShapingTextWrapperBuilder

All Superinterfaces:
IShapingTextWrapperMutator<IShapingTextWrapperBuilder>

public interface IShapingTextWrapperBuilder extends IShapingTextWrapperMutator<IShapingTextWrapperBuilder>
Builder for a shaping text wrapper.
Since:
8.4.0
  • Method Details

    • buildThreadSafe

      ITextWrapper buildThreadSafe()
      Builds a thread-safe text wrapper with the current settings. The returned text wrapper is thread-safe and can be used in a multi-threaded environment.
      Returns:
      The thread-safe text wrapper.
    • buildThreadUnsafe

      IMutableShapingTextWrapper buildThreadUnsafe()
      Builds a thread-unsafe text wrapper with the current settings. The returned text wrapper is not thread-safe and must be synchronized externally if needed. In exchange, it might perform better.
      Returns:
      The thread-unsafe text wrapper.
    • shaper

      Sets the text shaper to use for shaping the text.
      Parameters:
      shaper - The text shaper to use.
      Returns:
      This builder for chaining method calls.