<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/changeFont:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)changeFont:"
  },
  "title" : "changeFont:"
}
-->

# changeFont:

Informs responders of a font change.

```
- (void) changeFont:(id) sender;
```

## Parameters

`sender`

The object that sent the message.

## Discussion

Generally this change is because the user changed the font either in the selection of a rich text field or in a whole plain text field. Any object that contains a font the user can change must respond to the [`changeFont:`](/documentation/ObjectiveC/NSObject-swift.class/changeFont:) message by sending a <doc://com.apple.documentation/documentation/AppKit/NSFontManager/convert(_:)> message back to `sender` (an NSFontManager object) for each font in the selection. For more information, see Responding to Font Changes.

Be aware that <doc://com.apple.documentation/documentation/AppKit/NSFontManager/selectedFont> at this point may return unpredictable results. The font in this property may not be the last font selected, or there may be multiple fonts selected at the time [`changeFont:`](/documentation/ObjectiveC/NSObject-swift.class/changeFont:) is called. The use of <doc://com.apple.documentation/documentation/AppKit/NSFontManager/selectedFont> from within [`changeFont:`](/documentation/ObjectiveC/NSObject-swift.class/changeFont:) is strongly discouraged.

## See Also

  <doc://com.apple.documentation/documentation/AppKit/NSFontManager/convert(_:toFamily:)>

  <doc://com.apple.documentation/documentation/AppKit/NSFontManager/addFontTrait(_:)>

  <doc://com.apple.documentation/documentation/AppKit/NSFontManager/convert(_:toSize:)>

  <doc://com.apple.documentation/documentation/AppKit/NSFontManager/convert(_:toHaveTrait:)>

  <doc://com.apple.documentation/documentation/AppKit/NSFontManager/modifyFont(_:)>

  <doc://com.apple.documentation/documentation/AppKit/NSFontManager/convert(_:toNotHaveTrait:)>

  <doc://com.apple.documentation/documentation/AppKit/NSFontManager/modifyFontViaPanel(_:)>

  <doc://com.apple.documentation/documentation/AppKit/NSFontManager/convertWeight(_:of:)>

  <doc://com.apple.documentation/documentation/AppKit/NSFontManager/convert(_:toFace:)>

  <doc://com.apple.documentation/documentation/AppKit/NSFontManager/removeFontTrait(_:)>



---

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)