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

# CTFontManagerUnregisterGraphicsFont(_:_:)

Unregisters the specified graphics font with the font manager.

```
func CTFontManagerUnregisterGraphicsFont(_ font: CGFont, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> Bool
```

## Parameters

`font`

The graphics font to be unregistered.

`error`

Returns by indirection an error object in the case of failed unregistration.

## Return Value

`true` if unregistration of the font was successful, otherwise `false`.

## Discussion

Unregistered fonts are no longer discoverable through font descriptor matching. Fonts that are backed by files should be unregistered using [`CTFontManagerUnregisterFontsForURL(_:_:_:)`](/documentation/CoreText/CTFontManagerUnregisterFontsForURL(_:_:_:)).

## See Also

[`CTFontManagerRegisterGraphicsFont`](/documentation/CoreText/CTFontManagerRegisterGraphicsFont(_:_:))

Registers the specified graphics font with the font manager.



---

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)