<!--
{
  "availability" : [
    "iOS: 13.0.0 - 27.2.0",
    "iPadOS: 13.0.0 - 27.2.0",
    "macCatalyst: 13.0.0 - 27.2.0",
    "macOS: 10.15.0 - 27.2.0",
    "tvOS: 13.0.0 - 27.2.0",
    "visionOS: 1.0.0 - 27.2.0",
    "watchOS: 6.0.0 - 27.2.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Font/system(size:weight:design:)-73a88",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4FontV6system4size6weight6designAC14CoreFoundation7CGFloatV_AC6WeightVAC6DesignOtFZ"
  },
  "title" : "system(size:weight:design:)"
}
-->

# system(size:weight:design:)

Specifies a system font to use, along with the style, weight, and any
design parameters you want applied to the text.

```
static func system(size: CGFloat, weight: Font.Weight = .regular, design: Font.Design = .default) -> Font
```

## Discussion

Use this function to create a system font by specifying the size and
weight, and a type design together. The following styles the system font
as 17 point, [`semibold`](/documentation/SwiftUI/Font/Weight/semibold) text:

```
Text("Hello").font(.system(size: 17, weight: .semibold))
```

While the following styles the text as 17 point [`bold`](/documentation/SwiftUI/Font/Weight/bold),
and applies a `serif` [`Font.Design`](/documentation/SwiftUI/Font/Design) to the system font:

```
Text("Hello").font(.system(size: 17, weight: .bold, design: .serif))
```

If you want to use the default [`Font.Weight`](/documentation/SwiftUI/Font/Weight)
([`regular`](/documentation/SwiftUI/Font/Weight/regular)), you don’t need to specify the `weight` in the
method. The following example styles the text as 17 point
[`regular`](/documentation/SwiftUI/Font/Weight/regular), and uses a [`Font.Design.rounded`](/documentation/SwiftUI/Font/Design/rounded) system font:

```
Text("Hello").font(.system(size: 17, design: .rounded))
```

---

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)