Class VariationAxis
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
TagstringFour-character axis tag: "wght" for weight, "wdth" for width, "ital" for italic, etc.
MinValuefloatMinimum allowed value (e.g., 100 for thin weight).
DefaultValuefloatDefault value used when no override is specified.
MaxValuefloatMaximum allowed value (e.g., 900 for black weight).
NamestringFriendly 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
MaxValue
Maximum allowed value (e.g., 900 for black weight).
public float MaxValue { get; init; }
Property Value
MinValue
Minimum allowed value (e.g., 100 for thin weight).
public float MinValue { get; init; }
Property Value
Name
Friendly name like "Weight" or "Width", if the font provides one.
public string? Name { get; init; }
Property Value
Tag
Four-character axis tag: "wght" for weight, "wdth" for width, "ital" for italic, etc.
public string Tag { get; init; }