Table of Contents

Struct FontVariation

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

Represents a single variation axis setting for a variable font, consisting of a four-character tag and a value.

public readonly struct FontVariation
Inherited Members

Remarks

Follows CSS font-variation-settings semantics. Values are clamped to the axis range defined in the font's fvar table.

Constructors

FontVariation(string, float)

Initializes a new instance of the FontVariation struct.

public FontVariation(string tag, float value)

Parameters

tag string

The four-character axis tag (e.g. "wght", "wdth", "opsz").

value float

The axis value in design-space units.

Properties

Tag

Gets the four-character axis tag identifying the design variation.

public string Tag { get; }

Property Value

string

Value

Gets the axis value in design-space units.

public float Value { get; }

Property Value

float