Contents

CTFontManagerUnregisterGraphicsFont(_:_:)

Unregisters the specified graphics font with the font manager.

Declaration

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(_:_:_:).

See Also

Related Documentation

Functions