Skip to main content

Typeface(String, FontStyle, FontWeight, FontStretch) Constructor

Initializes a new instance of the Typeface class.

Definition​

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

public Typeface(
string fontFamilyName,
FontStyle style = FontStyle.Normal,
FontWeight weight = FontWeight.Normal,
FontStretch stretch = FontStretch.Normal
)

Parameters​

  String
The name of the font family.
  FontStyle  (Optional)
The font style.
  FontWeight  (Optional)
The font weight.
  FontStretch  (Optional)
The font stretch.

See Also​

Reference​

Typeface Structure
Typeface Overload
Avalonia.Media Namespace