Skip to main content

FontFamily Class

Definition​

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public sealed class FontFamily
View Source
InheritanceObject → FontFamily

Constructors​

FontFamily(String)Initializes a new instance of the FontFamily class.
FontFamily(Uri, String)Initializes a new instance of the FontFamily class.

Properties​

DefaultRepresents the default font family
FamilyNamesGets the family names.
FamilyTypefacesGets the typefaces for this font family.
KeyGets the key for associated assets.
NameGets the primary family name of the font family.

Methods​

Equals(Object)
(Overrides Object.Equals(Object))
GetHashCode()Returns a hash code for this instance.
(Overrides Object.GetHashCode())
GetType()Gets the Type of the current instance.
(Inherited from Object)
Parse(String)Parses a FontFamily string.
Parse(String, Uri)Parses a FontFamily string.
ToString()Returns a String that represents this instance.
(Overrides Object.ToString())

Operators​

Equality(FontFamily, FontFamily) 
Implicit(String to FontFamily)Implicit conversion of string to FontFamily
Inequality(FontFamily, FontFamily) 

Fields​

DefaultFontFamilyName 

See Also​

Reference​

Avalonia.Media Namespace