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 record FontFace : IEquatable<FontFace>
- Inheritance
-
FontFace
- Implements
- Inherited Members
Constructors
FontFace(string, string, string, string, string, string, string, string, string)
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 FontFace(string FontFamily, string FontStyle, string FontVariant, string FontWeight, string FontStretch, string FontDisplay, string UnicodeRange, string Src, string PlatformFontFamily)
Parameters
FontFamilystringThe font-family.
FontStylestringThe font-style.
FontVariantstringThe font-variant.
FontWeightstringThe font-weight.
FontStretchstringThe font-stretch.
FontDisplaystringThe font-display.
UnicodeRangestringThe unicode-range.
SrcstringThe src.
PlatformFontFamilystringThe resolved platform font family
Properties
FontDisplay
The font-display.
public string FontDisplay { get; init; }
Property Value
FontFamily
The font-family.
public string FontFamily { get; init; }
Property Value
FontStretch
The font-stretch.
public string FontStretch { get; init; }
Property Value
FontStyle
The font-style.
public string FontStyle { get; init; }
Property Value
FontVariant
The font-variant.
public string FontVariant { get; init; }
Property Value
FontVariationAxes
Available variation settings (a.k.a. "axes").
public ImmutableArray<FontVariationAxis>? FontVariationAxes { get; init; }
Property Value
FontWeight
The font-weight.
public string FontWeight { get; init; }
Property Value
PlatformFontFamily
The resolved platform font family
public string PlatformFontFamily { get; init; }
Property Value
Src
The src.
public string Src { get; init; }
Property Value
UnicodeRange
The unicode-range.
public string UnicodeRange { get; init; }