Skip to main content

Definition

Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models Inheritance: System.Object

Syntax

Mintlify.Core.Models.FontConfig

Summary

Represents a specific font configuration for the Mintlify documentation site.

Remarks

This configuration defines a font used for headings or body text in the documentation, including the font family, weight, and optional source URL for custom hosted fonts.

Constructors

.ctor

Syntax

public FontConfig()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

Family

Gets or sets the font family name.

Syntax

public string Family { get; set; }

Property Value

Type: string?

Remarks

Specifies the name of the font family to use. This can be a standard web font or a custom font loaded from the specified source URL.

Format

Gets or sets the font file format.

Syntax

public string Format { get; set; }

Property Value

Type: string?

Remarks

Specifies the format of the font file, such as “woff” or “woff2”. This helps the browser correctly interpret the font file loaded from the source URL.

Source

Gets or sets the URL to the hosted font file.

Syntax

public string Source { get; set; }

Property Value

Type: string?

Remarks

Specifies the URL where the font file is hosted. This is used to load custom fonts that are not available through standard font services. The URL should point directly to the font file.

Weight

Gets or sets the font weight.

Syntax

public System.Nullable<int> Weight { get; set; }

Property Value

Type: System.Nullable<int>?

Remarks

Specifies the weight of the font as a numeric value, such as 400 for normal weight or 700 for bold. The available weights depend on the specific font family being used.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?