Skip to main content

TryGetGlyphTypeface Method

Try to get a glyph typeface for given parameters.

Definition

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

bool TryGetGlyphTypeface(
string familyName,
FontStyle style,
FontWeight weight,
FontStretch stretch,
out IGlyphTypeface?? glyphTypeface
)
View Source

Parameters

  String
The family name.
  FontStyle
The font style.
  FontWeight
The font weight.
  FontStretch
The font stretch.
  IGlyphTypeface
The glyph typeface.

Return Value

Boolean
Returns true if a glyph typface can be found; otherwise, false

See Also

Reference

IFontCollection Interface
Avalonia.Media.Fonts Namespace