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

# FontsConfig

> Represents the font configuration for the Mintlify documentation site.

## Definition

**Assembly:** Mintlify.Core.dll

**Namespace:** Mintlify.Core.Models

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
Mintlify.Core.Models.FontsConfig
```

## Summary

Represents the font configuration for the Mintlify documentation site.

## Remarks

This configuration allows customization of typography by specifying custom fonts
including font family, weight, source URLs, and format specifications.

## Constructors

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor

#### Syntax

```csharp theme={"dark"}
public FontsConfig()
```

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Body

Gets or sets the body text font configuration.

#### Syntax

```csharp theme={"dark"}
public Mintlify.Core.Models.FontConfig Body { get; set; }
```

#### Property Value

Type: `Mintlify.Core.Models.FontConfig?`

#### Remarks

Specifies a separate font for body text. When provided, the top-level font properties
(Family, Weight, Source, Format) are used as defaults, and this configuration overrides
them specifically for body text elements.

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Family

Gets or sets the font family name.

#### Syntax

```csharp theme={"dark"}
public string Family { get; set; }
```

#### Property Value

Type: `string?`

#### Remarks

Specifies the name of the font family to use, such as "Open Sans" or "Playfair Display".
This should match the font family name defined in the font file.

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Format

Gets or sets the font file format.

#### Syntax

```csharp theme={"dark"}
public string Format { get; set; }
```

#### Property Value

Type: `string?`

#### Remarks

Specifies the format of the font file. Valid values are "woff" or "woff2".
WOFF2 is preferred for modern browsers as it provides better compression.

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Heading

Gets or sets the heading font configuration.

#### Syntax

```csharp theme={"dark"}
public Mintlify.Core.Models.FontConfig Heading { get; set; }
```

#### Property Value

Type: `Mintlify.Core.Models.FontConfig?`

#### Remarks

Specifies a separate font for headings. When provided, the top-level font properties
(Family, Weight, Source, Format) are used as defaults, and this configuration overrides
them specifically for heading elements (h1-h6).

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Source

Gets or sets the font source URL.

#### Syntax

```csharp theme={"dark"}
public string Source { get; set; }
```

#### Property Value

Type: `string?`

#### Remarks

Specifies the URL where the font file can be downloaded from.
Should be a complete URL pointing to the font file, such as
"[https://mintlify-assets.b-cdn.net/fonts/Hubot-Sans.woff2](https://mintlify-assets.b-cdn.net/fonts/Hubot-Sans.woff2)".

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Weight

Gets or sets the font weight.

#### Syntax

```csharp theme={"dark"}
public System.Nullable<int> Weight { get; set; }
```

#### Property Value

Type: `System.Nullable<int>?`

#### Remarks

Specifies the font weight as a numeric value such as 400 (normal) or 700 (bold).
Precise font weights like 550 are supported for variable fonts.
Common values include 300 (light), 400 (normal), 500 (medium), 600 (semi-bold), 700 (bold).

## Methods

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Equals <Badge color="gray">Inherited</Badge> <Badge color="orange">Virtual</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name  | Type      | Description |
| ----- | --------- | ----------- |
| `obj` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Equals <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name   | Type      | Description |
| ------ | --------- | ----------- |
| `objA` | `object?` | -           |
| `objB` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetHashCode <Badge color="gray">Inherited</Badge> <Badge color="orange">Virtual</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetType <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> MemberwiseClone <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> ReferenceEquals <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name   | Type      | Description |
| ------ | --------- | ----------- |
| `objA` | `object?` | -           |
| `objB` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> ToString <Badge color="gray">Inherited</Badge> <Badge color="orange">Virtual</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`
