Class FontFace
Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.
public sealed class FontFace
- Inheritance
-
FontFace
- Inherited Members
Properties
FontDisplay
The font-display.
[JsonPropertyName("fontDisplay")]
public string FontDisplay { get; set; }
Property Value
FontFamily
The font-family.
[JsonPropertyName("fontFamily")]
public string FontFamily { get; set; }
Property Value
FontStretch
The font-stretch.
[JsonPropertyName("fontStretch")]
public string FontStretch { get; set; }
Property Value
FontStyle
The font-style.
[JsonPropertyName("fontStyle")]
public string FontStyle { get; set; }
Property Value
FontVariant
The font-variant.
[JsonPropertyName("fontVariant")]
public string FontVariant { get; set; }
Property Value
FontVariationAxes
Available variation settings (a.k.a. "axes").
[JsonPropertyName("fontVariationAxes")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public FontVariationAxis[]? FontVariationAxes { get; set; }
Property Value
FontWeight
The font-weight.
[JsonPropertyName("fontWeight")]
public string FontWeight { get; set; }
Property Value
PlatformFontFamily
The resolved platform font family
[JsonPropertyName("platformFontFamily")]
public string PlatformFontFamily { get; set; }
Property Value
Src
The src.
[JsonPropertyName("src")]
public string Src { get; set; }
Property Value
UnicodeRange
The unicode-range.
[JsonPropertyName("unicodeRange")]
public string UnicodeRange { get; set; }