Struct FontInfo
Represents information about a font.
public readonly record struct FontInfo : IEquatable<FontInfo>
- Implements
- Inherited Members
- Extension Methods
Constructors
FontInfo(string, float, FontStyle)
Represents information about a font.
public FontInfo(string Family, float Size, FontStyle Style)
Parameters
FamilystringThe font family name.
SizefloatThe font size in pixels.
StyleFontStyleThe font style.
Properties
Family
The font family name.
public string Family { get; init; }
Property Value
IsDynamic
Gets a value indicating whether this font is dynamic.
public bool IsDynamic { get; }
Property Value
Size
The font size in pixels.
public float Size { get; init; }
Property Value
Style
The font style.
public FontStyle Style { get; init; }
Property Value
Methods
WithSize(float)
Creates a new instance of FontInfo with the specified size.
public FontInfo WithSize(float size)
Parameters
sizefloatThe new size.
Returns
- FontInfo
A new instance with the specified size.