GSKTextLayoutToTextConverter

@interface GSKTextLayoutToTextConverter : NSObject

Converts a text layout to its textual representation

The goal is to properly recreate lines, paragraphs etc.

  • Create an text layout to text converter

    Declaration

    Objective-C

    + (nullable GSKTextLayoutToTextConverter *)create:
        (nullable id<GSKLogger>)logger;
  • Perform the conversion

    Declaration

    Objective-C

    - (nonnull GSKTextLayoutToTextConverterResult *)convert:
        (nonnull GSKTextLayout *)textLayout;

    Swift

    func convert(_ textLayout: GSKTextLayout) -> GSKTextLayoutToTextConverterResult