IFontCollectionTryGetGlyphTypeface Method

Try to get a glyph typeface for given parameters.

Definition

Namespace: Avalonia.Media.Fonts
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
bool TryGetGlyphTypeface(
	string familyName,
	FontStyle style,
	FontWeight weight,
	FontStretch stretch,
	out IGlyphTypeface?? glyphTypeface
)

Parameters

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

Return Value

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

See Also