<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFontDescriptor/withFace(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFontDescriptor(im)fontDescriptorWithFace:"
  },
  "title" : "withFace(_:)"
}
-->

# withFace(_:)

Returns a new font descriptor based on the current object, but with the specified face.

```
func withFace(_ newFace: String) -> NSFontDescriptor
```

## Parameters

`newFace`

The replacement font face.

## Return Value

The new font descriptor.

## See Also

[`+  fontDescriptorWithFontAttributes:`](/documentation/AppKit/NSFontDescriptor/fontDescriptorWithFontAttributes:)

Returns a font descriptor with a dictionary of attributes.



---

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)