IFontCollectionTryGetGlyphTypeface Method
Try to get a glyph typeface for given parameters.
Namespace: Avalonia.Media.FontsAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
bool TryGetGlyphTypeface(
string familyName,
FontStyle style,
FontWeight weight,
FontStretch stretch,
out IGlyphTypeface?? glyphTypeface
)
Function TryGetGlyphTypeface (
familyName As String,
style As FontStyle,
weight As FontWeight,
stretch As FontStretch,
<OutAttribute> ByRef glyphTypeface As IGlyphTypeface
) As Boolean
abstract TryGetGlyphTypeface :
familyName : string *
style : FontStyle *
weight : FontWeight *
stretch : FontStretch *
glyphTypeface : IGlyphTypeface byref -> bool
- 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.
BooleanReturns
true if a glyph typface can be found; otherwise,
false