---
title: "custom(_:fixedSize:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/font/custom(_:fixedsize:)"
---

# custom(_:fixedSize:)

Create a custom font with the given name and a fixed size that does not scale with Dynamic Type.

## Declaration

```swift
static func custom(_ name: String, fixedSize: CGFloat) -> Font
```

## See Also

### Creating custom fonts

- [custom(_:size:relativeTo:)](swiftui/font/custom(_:size:relativeto:).md)
- [custom(_:size:)](swiftui/font/custom(_:size:).md)
