FontFamily Class

Namespace
Avalonia.Media
Base Types
  • object
graph TD Base0["object"]-->Type Type["FontFamily"] class Type type-node

Syntax

public class FontFamily

Constructors

Name Summary
FontFamily(IEnumerable<string>) Initializes a new instance of the FontFamily class.
FontFamily(string) Initializes a new instance of the FontFamily class.
FontFamily(string, Uri, Uri) Initializes a new instance of the FontFamily class.

Properties

Name Value Summary
Default FontFamily
Represents the default font family
static
FamilyNames FamilyNameCollection
Gets the family names.
Key FontFamilyKey
Gets the key for associated assets.
Name string
Gets the primary family name of the font family.
SystemFontFamilies IEnumerable<FontFamily>
Represents all font families in the system. This can be an expensive call depending on platform implementation.
static

Methods

Name Value Summary
Equals(object) bool
GetHashCode() int
Returns a hash code for this instance.
Parse(string, Uri) FontFamily
Parses a FontFamily string.
static
ToString() string
Returns a string that represents this instance.

Operators

Name Value Summary
implicit operator FontFamily(string) FontFamily