Typeface Struct

Summary

Represents a typeface.
Namespace
Avalonia.Media
Interfaces
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type-.->Interface0["IEquatable<Typeface>"] Type["Typeface"] class Type type-node

Syntax

[DebuggerDisplay("Name = {FontFamily.Name}, Weight = {Weight}, Style = {Style}")]
public readonly struct Typeface : ValueType, IEquatable<Typeface>

Attributes

Type Description
DebuggerDisplayAttribute

Constructors

Name Summary
Typeface(FontFamily, FontStyle, FontWeight) Initializes a new instance of the Typeface class.
Typeface(string, FontStyle, FontWeight) Initializes a new instance of the Typeface class.

Properties

Name Value Summary
Default Typeface
static
FontFamily FontFamily
Gets the font family.
GlyphTypeface GlyphTypeface
Gets the glyph typeface.
Style FontStyle
Gets the font style.
Weight FontWeight
Gets the font weight.

Methods

Name Value Summary
Equals(object) bool
Equals(Typeface) bool
GetHashCode() int

Operators

Name Value Summary
operator !=(Typeface, Typeface) bool
operator ==(Typeface, Typeface) bool