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

# CTFontManagerRegisterFontsForURL(_:_:_:)

Registers fonts from the specified font URL with the Font Manager. Registered fonts are discoverable through font descriptor matching.

```
func CTFontManagerRegisterFontsForURL(_ fontURL: CFURL, _ scope: CTFontManagerScope, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> Bool
```

## Parameters

`fontURL`

The font URL.

`scope`

Scope constant defining the availability and lifetime of the registration. See [`CTFontManagerScope`](/documentation/CoreText/CTFontManagerScope) for values to pass for this parameter.

`error`

Pointer to a CFError object which, in case of failed registration, contains error information.

## Return Value

Returns `true` if registration of the fonts was successful, otherwise `false`.

## Discussion

---

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)