FontVariationAxis Class

An axis a variable font varies along: its tag, its name and the range of its values.

public sealed class FontVariationAxis

Remarks

The registered axes are the weight (wght, where 400 is regular and 700 bold), the width (wdth, a percentage of the normal width), the slant (slnt, in degrees), the italic (ital, 0 or 1) and the optical size (opsz, in points). A font can define others, with a tag in uppercase letters.

Properties

NameDescription
DefaultGets the value of the axis in the default instance of the font.
IsHiddenGets a value indicating whether the font asks that the axis is not shown in a user interface.
MaximumGets the largest value of the axis.
MinimumGets the smallest value of the axis.
NameGets the name the font gives to the axis, such as "Weight"; its tag when the font gives none.
TagGets the tag of the axis: four characters, such as wght.

Gets the value of the axis in the default instance of the font.

public double Default { get; }

Property value

double

Gets a value indicating whether the font asks that the axis is not shown in a user interface.

public bool IsHidden { get; }

Property value

bool

Gets the largest value of the axis.

public double Maximum { get; }

Property value

double

Gets the smallest value of the axis.

public double Minimum { get; }

Property value

double

Gets the name the font gives to the axis, such as "Weight"; its tag when the font gives none.

public string Name { get; }

Property value

string

Gets the tag of the axis: four characters, such as wght.

public string Tag { get; }

Property value

string

Methods

NameDescription
ToString()Returns a string that represents the current object.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.