IPlatformTypeface Interface
Definition
public interface IPlatformTypeface
Methods
| Name | Description |
|---|---|
| TryGetStream | No summary available. |
TryGetStream Method
public bool TryGetStream(System.IO.Stream& stream)
Parameters
stream System.IO.Stream&
Returns
bool
Properties
| Name | Description |
|---|---|
| FamilyName | Gets the font family name. |
| FontSimulations | Gets the algorithmic style simulations applied to Avalonia.Media.IPlatformTypeface object. |
| Stretch | Gets the Avalonia.Media.FontStretch value for the Avalonia.Media.IPlatformTypeface object. |
| Style | Gets the style for the Avalonia.Media.IPlatformTypeface object. |
| Weight | Gets 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; }