Typeface Class

Summary

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

Syntax

public class Typeface

Constructors

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

Fields

Name Constant Value Summary
Default
static

Properties

Name Value Summary
FontFamily FontFamily
Gets the font family.
FontSize double
Gets the size of the font in DIPs.
Style FontStyle
Gets the font style.
Weight FontWeight
Gets the font weight.