TryGetGlyphTypeface Method
Try to get a glyph typeface for given parameters.
Definition
Namespace: Avalonia.Media.Fonts
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
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
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