<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTFontDescriptorMatchFontDescriptorsWithProgressHandler(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@F@CTFontDescriptorMatchFontDescriptorsWithProgressHandler"
  },
  "title" : "CTFontDescriptorMatchFontDescriptorsWithProgressHandler(_:_:_:)"
}
-->

# CTFontDescriptorMatchFontDescriptorsWithProgressHandler(_:_:_:)

Matches font descriptors and tracks progress with a progress handler.

```
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 <doc://com.apple.documentation/documentation/Swift/true> to continue or <doc://com.apple.documentation/documentation/Swift/false> to cancel the process.

    This block is called on a private serial queue.

## Return Value

<doc://com.apple.documentation/documentation/Swift/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)