Class FontVariationAxis
Describes a single design-variation axis in a variable font (OpenType "fvar" table).
Inherited Members
Namespace: DRIT.Drawing.Font.Core
Assembly: DRIT.Drawing.dll
Syntax
public sealed class FontVariationAxis
Constructors
FontVariationAxis(string, double, double, double, string)
Initializes a new FontVariationAxis with the specified parameters.
Declaration
public FontVariationAxis(string tag, double minValue, double defaultValue, double maxValue, string axisName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tag | Four-character axis tag, e.g. "wght", "wdth", "ital". |
| double | minValue | Minimum user-space value along this axis. |
| double | defaultValue | Default user-space value along this axis. |
| double | maxValue | Maximum user-space value along this axis. |
| string | axisName | Human-readable name of the axis. |
Properties
AxisName
Human-readable name of the axis (resolved from well-known tags or the name table).
Declaration
public string AxisName { get; }
Property Value
| Type | Description |
|---|---|
| string |
DefaultValue
Default user-space value along this axis.
Declaration
public double DefaultValue { get; }
Property Value
| Type | Description |
|---|---|
| double |
MaxValue
Maximum user-space value along this axis.
Declaration
public double MaxValue { get; }
Property Value
| Type | Description |
|---|---|
| double |
MinValue
Minimum user-space value along this axis.
Declaration
public double MinValue { get; }
Property Value
| Type | Description |
|---|---|
| double |
Tag
Four-character axis tag, e.g. "wght", "wdth", "ital".
Declaration
public string Tag { get; }
Property Value
| Type | Description |
|---|---|
| string |