Registers the specified graphics font with the font manager.
- iOS 4.1+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Text
The graphics font to be registered.
Returns by indirection an error object in the case of failed registration.
true if registration of the font was successful, otherwise
Registered fonts are discoverable through font descriptor matching. Any attempt to register a font that is either already registered or contains the same Postscript of an already registered font will fail. This behavior is useful for fonts that may be embedded in documents or constructed in memory. A graphics font is obtained by calling
init(_:). Fonts that are backed by files should be registered using