---
title: "CTFontManagerUnregisterFontURLs(_:_:_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctfontmanagerunregisterfonturls(_:_:_:)"
---

# CTFontManagerUnregisterFontURLs(_:_:_:)

Unregisters fonts from the specified font URLs with the font manager.

## Declaration

```swift
func CTFontManagerUnregisterFontURLs(_ fontURLs: CFArray, _ scope: CTFontManagerScope, _ registrationHandler: ((CFArray, Bool) -> Bool)?)
```

## Parameters

- `fontURLs`: An array of font URLs.
- `scope`: A scope constant that defines the availability and lifetime of the registration. This value should match the scope the fonts are registered in. See doc://com.apple.coretext/documentation/CoreText/CTFontManagerScope for more details.
- `registrationHandler`: A block called as errors arise or upon completion. The block’s errors parameter contains an array of doc://com.apple.documentation/documentation/CoreFoundation/CFError references; an empty array indicates no errors unregistering the files. Each error reference contains a doc://com.apple.documentation/documentation/CoreFoundation/CFArray of font URLs corresponding to doc://com.apple.coretext/documentation/CoreText/kCTFontManagerErrorFontURLsKey. These URLs represent the font files causing the error and failing to unregister successfully. This block may be called multiple times during the unregistration process. The done parameter becomes doc://com.apple.documentation/documentation/Swift/true when the unregistration process completes. Return doc://com.apple.documentation/documentation/Swift/false from the block to stop the unregistration operation, like after receiving an error.

## Discussion

Discussion Unregistered fonts don’t participate in font descriptor matching. note: On iOS, you can only use this function to unregister fonts that you registered using CTFontManagerRegisterFontsForURL(_:_:_:) or CTFontManagerRegisterFontsForURLs(_:_:_:).

## See Also

### Functions

- [CTFontDescriptorMatchFontDescriptorsWithProgressHandler(_:_:_:)](coretext/ctfontdescriptormatchfontdescriptorswithprogresshandler(_:_:_:).md)
- [CTFontManagerCompareFontFamilyNames(_:_:_:)](coretext/ctfontmanagercomparefontfamilynames(_:_:_:).md)
- [CTFontManagerCopyAvailableFontFamilyNames()](coretext/ctfontmanagercopyavailablefontfamilynames().md)
- [CTFontManagerCopyAvailableFontURLs()](coretext/ctfontmanagercopyavailablefonturls().md)
- [CTFontManagerCopyAvailablePostScriptNames()](coretext/ctfontmanagercopyavailablepostscriptnames().md)
- [CTFontManagerCreateFontDescriptorFromData(_:)](coretext/ctfontmanagercreatefontdescriptorfromdata(_:).md)
- [CTFontManagerCreateFontDescriptorsFromURL(_:)](coretext/ctfontmanagercreatefontdescriptorsfromurl(_:).md)
- [CTFontManagerCreateFontRequestRunLoopSource(_:_:)](coretext/ctfontmanagercreatefontrequestrunloopsource(_:_:).md)
- [CTFontManagerEnableFontDescriptors(_:_:)](coretext/ctfontmanagerenablefontdescriptors(_:_:).md)
- [CTFontManagerGetAutoActivationSetting(_:)](coretext/ctfontmanagergetautoactivationsetting(_:).md)
- [CTFontManagerGetScopeForURL(_:)](coretext/ctfontmanagergetscopeforurl(_:).md)
- [CTFontManagerIsSupportedFont(_:)](coretext/ctfontmanagerissupportedfont(_:).md)
- [CTFontManagerRegisterFontsForURL(_:_:_:)](coretext/ctfontmanagerregisterfontsforurl(_:_:_:).md)
- [CTFontManagerRegisterFontsForURLs(_:_:_:)](coretext/ctfontmanagerregisterfontsforurls(_:_:_:).md)
- [CTFontManagerRegisterGraphicsFont(_:_:)](coretext/ctfontmanagerregistergraphicsfont(_:_:).md)
