Table of Contents

Struct FontInfo

Namespace
Icy.Rendering.Fonts
Assembly
IcyUI.dll

Represents information about a font.

public readonly record struct FontInfo : IEquatable<FontInfo>
Implements
Inherited Members
Extension Methods

Constructors

FontInfo(string, float, FontStyle)

Represents information about a font.

public FontInfo(string Family, float Size, FontStyle Style)

Parameters

Family string

The font family name.

Size float

The font size in pixels.

Style FontStyle

The font style.

Properties

Family

The font family name.

public string Family { get; init; }

Property Value

string

IsDynamic

Gets a value indicating whether this font is dynamic.

public bool IsDynamic { get; }

Property Value

bool

Size

The font size in pixels.

public float Size { get; init; }

Property Value

float

Style

The font style.

public FontStyle Style { get; init; }

Property Value

FontStyle

Methods

WithSize(float)

Creates a new instance of FontInfo with the specified size.

public FontInfo WithSize(float size)

Parameters

size float

The new size.

Returns

FontInfo

A new instance with the specified size.