Skip to main content

Typeface Structure

Represents a typeface.

Definition​

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

public readonly struct Typeface : IEquatable<Typeface>
View Source
InheritanceObject → ValueType → Typeface
ImplementsIEquatable(Typeface)

Constructors​

Typeface(FontFamily, FontStyle, FontWeight, FontStretch)Initializes a new instance of the Typeface class.
Typeface(String, FontStyle, FontWeight, FontStretch)Initializes a new instance of the Typeface class.

Properties​

Default 
FontFamilyGets the font family.
GlyphTypefaceGets the glyph typeface.
StretchGets the font stretch.
StyleGets the font style.
WeightGets the font weight.

Methods​

Equals(Object)
(Overrides ValueType.Equals(Object))
Equals(Typeface) 
GetHashCode()
(Overrides ValueType.GetHashCode())
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns the fully qualified type name of this instance.
(Inherited from ValueType)

Operators​

Equality(Typeface, Typeface) 
Inequality(Typeface, Typeface) 

See Also​

Reference​

Avalonia.Media Namespace