PTTextSettings

@interface PTTextSettings : NSObject

A class that stores image text optimization settings.

  • create an TextSettings object with default options

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()
  • Sets whether embedded fonts will be subset. This will generally reduce the size of fonts, but will strip font hinting. Subsetting is off by default.

    Declaration

    Objective-C

    - (void)SubsetFonts:(BOOL)subset;

    Swift

    func subsetFonts(_ subset: Bool)

    Parameters

    subset

    if true all embedded fonts will be subsetted.

  • Sets whether fonts should be embedded. This will generally increase the size of the file, but will make the file appear the same on different machines. Font embedding is off by default.

    Declaration

    Objective-C

    - (void)EmbedFonts:(BOOL)embed;

    Swift

    func embedFonts(_ embed: Bool)

    Parameters

    embed

    if true all fonts will be embedded.