<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTFontManagerSetAutoActivationSetting(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@F@CTFontManagerSetAutoActivationSetting"
  },
  "title" : "CTFontManagerSetAutoActivationSetting(_:_:)"
}
-->

# CTFontManagerSetAutoActivationSetting(_:_:)

Sets the auto-activation setting for the specified bundle identifier.

```
func CTFontManagerSetAutoActivationSetting(_ bundleIdentifier: CFString?, _ setting: CTFontManagerAutoActivationSetting)
```

## Parameters

`bundleIdentifier`

The bundle identifier used to specify a particular application bundle. If `NULL`, the current application bundle is used. If `kCTFontManagerBundleIdentifier` is specified, sets global auto-activation.

`setting`

The new setting. See [`CTFontManagerAutoActivationSetting`](/documentation/CoreText/CTFontManagerAutoActivationSetting) for possible values.

## 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)