---
title: "withFace(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfontdescriptor/withface(_:)"
---

# withFace(_:)

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

## Declaration

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

## Parameters

- `newFace`: The replacement font face.

## Return Value

Return Value The new font descriptor.

## See Also

### Modifying an Existing Font Descriptor

- [addingAttributes(_:)](appkit/nsfontdescriptor/addingattributes(_:).md)
- [withFamily(_:)](appkit/nsfontdescriptor/withfamily(_:).md)
- [withMatrix(_:)](appkit/nsfontdescriptor/withmatrix(_:).md)
- [withSize(_:)](appkit/nsfontdescriptor/withsize(_:).md)
- [withSymbolicTraits(_:)](appkit/nsfontdescriptor/withsymbolictraits(_:).md)
- [withDesign(_:)](appkit/nsfontdescriptor/withdesign(_:).md)
- [NSFontDescriptor.SystemDesign](appkit/nsfontdescriptor/systemdesign.md)
