Table of Contents

Class VariationAxis

Namespace
KernSmith.Font.Tables
Assembly
KernSmith.dll

A variation axis of a variable font, such as weight or width.

public sealed record VariationAxis : IEquatable<VariationAxis>
Inheritance
VariationAxis
Implements
Inherited Members

Constructors

VariationAxis(string, float, float, float, string?)

A variation axis of a variable font, such as weight or width.

public VariationAxis(string Tag, float MinValue, float DefaultValue, float MaxValue, string? Name)

Parameters

Tag string

Four-character axis tag: "wght" for weight, "wdth" for width, "ital" for italic, etc.

MinValue float

Minimum allowed value (e.g., 100 for thin weight).

DefaultValue float

Default value used when no override is specified.

MaxValue float

Maximum allowed value (e.g., 900 for black weight).

Name string

Friendly name like "Weight" or "Width", if the font provides one.

Properties

DefaultValue

Default value used when no override is specified.

public float DefaultValue { get; init; }

Property Value

float

MaxValue

Maximum allowed value (e.g., 900 for black weight).

public float MaxValue { get; init; }

Property Value

float

MinValue

Minimum allowed value (e.g., 100 for thin weight).

public float MinValue { get; init; }

Property Value

float

Name

Friendly name like "Weight" or "Width", if the font provides one.

public string? Name { get; init; }

Property Value

string

Tag

Four-character axis tag: "wght" for weight, "wdth" for width, "ital" for italic, etc.

public string Tag { get; init; }

Property Value

string