Class FontVariationInstance
Represents a named instance (a specific set of axis coordinates) in a variable font.
Inherited Members
Namespace: DRIT.Drawing.Font.Core
Assembly: DRIT.Drawing.dll
Syntax
public sealed class FontVariationInstance
Constructors
FontVariationInstance(string, IReadOnlyDictionary<string, double>)
Initializes a new FontVariationInstance with the specified name and coordinates.
Declaration
public FontVariationInstance(string name, IReadOnlyDictionary<string, double> coordinates)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Human-readable name for this instance. |
| IReadOnlyDictionary<string, double> | coordinates | Per-axis coordinate values for this instance. |
Properties
Coordinates
Per-axis coordinate values for this instance, keyed by axis tag (e.g. "wght" → 700.0).
Declaration
public IReadOnlyDictionary<string, double> Coordinates { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyDictionary<string, double> |
Name
Human-readable name for this instance (e.g. "Bold", "Light Condensed").
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |