UIFontDescriptor(Blacklisting)

@interface UIFontDescriptor (Blacklisting)

Extends UIFontDescriptor to blacklist some specific fonts.

  • By default certain less commonly used fonts are blocked automatically. Array expects a list of regular expression strings. - note: Needs to be set before the font picker is displayed.

    Declaration

    Objective-C

    + (void)setPSPDFDefaultBlacklist:
        (nonnull NSArray<NSString *> *)defaultBlacklist;

    Swift

    class func setPSPDFDefaultBlacklist(_ defaultBlacklist: [String])
  • Returns all blacklisted fonts.

    Declaration

    Objective-C

    + (nonnull NSArray<NSString *> *)pspdf_defaultBlacklist;

    Swift

    class func pspdf_defaultBlacklist() -> [String]