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

# fontDesign(_:)

Sets the font design of the text.

## Declaration

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

## Parameters

- `design`: One of the available font designs.

## Return Value

Return Value Text that uses the font design you specify.

## See Also

### Choosing a font

- [font(_:)](swiftui/text/font(_:).md)
- [fontWeight(_:)](swiftui/text/fontweight(_:).md)
- [fontWidth(_:)](swiftui/text/fontwidth(_:).md)
