---
title: "fontDesign(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/fontdesign(_:)"
---

# fontDesign(_:)

Sets the font design of the text in this view.

## Declaration

```swift
nonisolated func fontDesign(_ design: Font.Design?) -> some View

```

## Parameters

- `design`: One of the available font designs. Providing nil removes the effect of any font design modifier applied higher in the view hierarchy.

## Return Value

Return Value A view that uses the font design you specify.

## See Also

### Setting a font

- [Applying custom fonts to text](swiftui/applying-custom-fonts-to-text.md)
- [font(_:)](swiftui/view/font(_:).md)
- [fontWeight(_:)](swiftui/view/fontweight(_:).md)
- [fontWidth(_:)](swiftui/view/fontwidth(_:).md)
- [font](swiftui/environmentvalues/font.md)
- [Font](swiftui/font.md)
