> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CheckoutFontStyle

> Swift Structure

**Structure**

The font of one checkout element.

```swift theme={null}
struct CheckoutFontStyle
```

The checkout applies only the values you set. It keeps the default for the rest.

## Initializers

### init(family:size:weight:)

Creates a font style.

```swift theme={null}
init(family: String? = nil, size: CheckoutFontSize? = nil, weight: CheckoutFontWeight? = nil)
```

### init(family:size:weight:)

Creates a font style from CSS strings.

```swift theme={null}
init(family: String? = nil, size: String? = nil, weight: String? = nil)
```

Use `init(family:size:weight:)` instead.

### init(from:)

Inherited from `Decodable.init(from:)`.

```swift theme={null}
init(from decoder: any Decoder) throws
```

## Instance Properties

| Property | Type | Description |
| - | - | - |
| `family` | `String?` | The CSS `font-family` value, for example `"Inter, sans-serif"`. |
| `size` | `CheckoutFontSize?` | The font size. |
| `weight` | `CheckoutFontWeight?` | The font weight. |
