TryMatchCharacter Method
Tries to match a specified character to a Typeface that supports specified font properties.
Definition
Namespace: Avalonia.Media.Fonts
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
bool TryMatchCharacter(
int codepoint,
FontStyle fontStyle,
FontWeight fontWeight,
FontStretch fontStretch,
string? familyName,
CultureInfo? culture,
out Typeface? typeface
)
Function TryMatchCharacter (
codepoint As Integer,
fontStyle As FontStyle,
fontWeight As FontWeight,
fontStretch As FontStretch,
familyName As String,
culture As CultureInfo,
<OutAttribute> ByRef typeface As Typeface
) As Boolean
abstract TryMatchCharacter :
codepoint : int *
fontStyle : FontStyle *
fontWeight : FontWeight *
fontStretch : FontStretch *
familyName : string *
culture : CultureInfo *
typeface : Typeface byref -> bool
Parameters
- Int32
- The codepoint to match against.
- FontStyle
- The font style.
- FontWeight
- The font weight.
- FontStretch
- The font stretch.
- String
- The family name. This is optional and used for fallback lookup.
- CultureInfo
- The culture.
- Typeface
- The matching Typeface.
Return Value
Boolean
True
, if the FontManager could match the character to specified parameters, False
otherwise.