Struct FontVariation
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
tagstringThe four-character axis tag (e.g. "wght", "wdth", "opsz").
valuefloatThe axis value in design-space units.
Properties
Tag
Gets the four-character axis tag identifying the design variation.
public string Tag { get; }
Property Value
Value
Gets the axis value in design-space units.
public float Value { get; }