Skip to main content

IPlatformTypeface Interface

Definition​

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia
public interface IPlatformTypeface

Implements: IFontMemory, IDisposable

Methods​

NameDescription
TryGetStreamNo summary available.

TryGetStream Method​

public bool TryGetStream(System.IO.Stream& stream)

Parameters​

stream System.IO.Stream&

Returns​

bool

Properties​

NameDescription
FamilyNameGets the font family name.
FontSimulationsGets the algorithmic style simulations applied to Avalonia.Media.IPlatformTypeface object.
StretchGets the Avalonia.Media.FontStretch value for the Avalonia.Media.IPlatformTypeface object.
StyleGets the style for the Avalonia.Media.IPlatformTypeface object.
WeightGets the designed weight of the font represented by the Avalonia.Media.IPlatformTypeface object.

FamilyName Property​

Gets the font family name.

public string FamilyName { get; set; }

Remarks​

The family name should be the same as the one used to create the typeface via the platform font manager. It can be different from the actaual family name because an alias or a fallback name could have been used.

FontSimulations Property​

Gets the algorithmic style simulations applied to Avalonia.Media.IPlatformTypeface object.

public Avalonia.Media.FontSimulations FontSimulations { get; set; }

Stretch Property​

Gets the Avalonia.Media.FontStretch value for the Avalonia.Media.IPlatformTypeface object.

public Avalonia.Media.FontStretch Stretch { get; set; }

Style Property​

Gets the style for the Avalonia.Media.IPlatformTypeface object.

public Avalonia.Media.FontStyle Style { get; set; }

Weight Property​

Gets the designed weight of the font represented by the Avalonia.Media.IPlatformTypeface object.

public Avalonia.Media.FontWeight Weight { get; set; }