Contents

CTFontDescriptorMatchFontDescriptorsWithProgressHandler(_:_:_:)

Matches font descriptors and tracks progress with a progress handler.

Declaration

func CTFontDescriptorMatchFontDescriptorsWithProgressHandler(_ descriptors: CFArray, _ mandatoryAttributes: CFSet?, _ progressBlock: @escaping  CTFontDescriptorProgressHandler) -> Bool

Parameters

  • descriptors:

    An array of descriptors to process.

  • mandatoryAttributes:

    A set of attributes to match.

  • progressBlock:

    A callback block that indicates the progress of the matching process. Return True to continue or False to cancel the process.

    This block is called on a private serial queue.

Return Value

false if the system couldn’t start the matching process.

Discussion

This function returns immediately, but it can take longer to finish the process. The progressBlock handler tracks the progress.

See Also

Functions