<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Font/system(size:weight:design:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4FontV6system4size6weight6designAC14CoreFoundation7CGFloatV_AC6WeightVSgAC6DesignOSgtFZ::OverloadGroup"
  },
  "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? = nil, design: Font.Design? = nil) -> 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))
```

Both `weight` and `design` can be optional. When you do not provide a
`weight` or `design`, the system can pick one based on the current
context, which may not be [`regular`](/documentation/SwiftUI/Font/Weight/regular) or
[`Font.Design.default`](/documentation/SwiftUI/Font/Design/default) in certain context. The following example styles
the text as 17 point system font using [`Font.Design.rounded`](/documentation/SwiftUI/Font/Design/rounded) design,
while its weight can depend on the current context:

```
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)