Class
FontVariationSettings
ChartForgeX.Typography
Immutable, case-sensitive OpenType axis coordinates in the font's design units. Unknown axes are ignored by a face; supported values are clamped to its declared range.
Inheritance
- object
- FontVariationSettings
Usage
Explore 8 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 4
- Property FontSpec.Variations
- Method FontVariationSettings.WithAxis
- Property FontVariationSettings.Default
- Property TextStyleOverride.Variations
Accepted by parameters 4
- Extension method FontSpec.Variations
- Method FontSpecFluent.Variations
- Extension method TextStyleOverride.Variations
- Method TextStyleOverrideFluent.Variations
Constructors
FontVariationSettings 2 overloads
public FontVariationSettings(IEnumerable<KeyValuePair<string, double>> axes) #Copies axis coordinates. Tags contain exactly four ASCII letters or digits; values must be finite. A specification can contain at most 32 axes.
Parameters
- axes System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, double>>
Methods
public bool ContainsKey(string key) #Tests whether an axis is explicitly selected.
Parameters
- key string
Returns
boolpublic IEnumerator<KeyValuePair<string, double>> GetEnumerator() #Enumerates selected coordinates in tag order.
Returns
IEnumerator<KeyValuePair<string, double>>public bool TryGetValue(string key, out double value) #Reads an explicitly selected design coordinate.
Parameters
- key string
- value double
Returns
boolpublic FontVariationSettings WithAxis(string tag, double value) #Returns an independent selection with one axis set or replaced.
Parameters
- tag string
- value double
Returns
FontVariationSettings