FontFaceDescriptors Class

The descriptors of a FontFace (https://drafts.csswg.org/css-font-loading/#dictdef-fontfacedescriptors).

public sealed class FontFaceDescriptors

Constructors

NameDescription
FontFaceDescriptors()

FontFaceDescriptors()

FontFace.cs
public FontFaceDescriptors()

No documentation is available.

Properties

NameDescription
AscentOverrideGets the value of the ascent-override descriptor of the font face.
DescentOverrideGets the value of the descent-override descriptor of the font face.
DisplayGets the value of the font-display descriptor of the font face.
FeatureSettingsGets the value of the font-feature-settings descriptor of the font face.
LineGapOverrideGets the value of the line-gap-override descriptor of the font face.
SizeAdjustGets the value of the size-adjust descriptor of the font face.
StretchThe legacy name alias of FontFaceDescriptors.Width, used when FontFaceDescriptors.Width is null.
StyleGets the value of the font-style descriptor of the font face.
UnicodeRangeGets the value of the unicode-range descriptor of the font face.
VariationSettingsGets the value of the font-variation-settings descriptor of the font face.
WeightGets the value of the font-weight descriptor of the font face.
WidthThe width of the font face, or null to use FontFaceDescriptors.Stretch.

AscentOverride

FontFace.cs

Gets the value of the ascent-override descriptor of the font face.

public string AscentOverride { get; init; }

DescentOverride

FontFace.cs

Gets the value of the descent-override descriptor of the font face.

public string DescentOverride { get; init; }

Gets the value of the font-display descriptor of the font face.

public string Display { get; init; }

FeatureSettings

FontFace.cs

Gets the value of the font-feature-settings descriptor of the font face.

public string FeatureSettings { get; init; }

LineGapOverride

FontFace.cs

Gets the value of the line-gap-override descriptor of the font face.

public string LineGapOverride { get; init; }

SizeAdjust

FontFace.cs

Gets the value of the size-adjust descriptor of the font face.

public string SizeAdjust { get; init; }

The legacy name alias of FontFaceDescriptors.Width, used when FontFaceDescriptors.Width is null.

public string Stretch { get; init; }

Gets the value of the font-style descriptor of the font face.

public string Style { get; init; }

UnicodeRange

FontFace.cs

Gets the value of the unicode-range descriptor of the font face.

public string UnicodeRange { get; init; }

VariationSettings

FontFace.cs

Gets the value of the font-variation-settings descriptor of the font face.

public string VariationSettings { get; init; }

Gets the value of the font-weight descriptor of the font face.

public string Weight { get; init; }

The width of the font face, or null to use FontFaceDescriptors.Stretch.

public string? Width { get; init; }