FontManagerTryMatchCharacter Method
Tries to match a specified character to a
Typeface that supports specified font properties.
Namespace: Avalonia.MediaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public bool TryMatchCharacter(
int codepoint,
FontStyle fontStyle,
FontWeight fontWeight,
FontStretch fontStretch,
FontFamily? fontFamily,
CultureInfo? culture,
out Typeface? typeface
)
Public Function TryMatchCharacter (
codepoint As Integer,
fontStyle As FontStyle,
fontWeight As FontWeight,
fontStretch As FontStretch,
fontFamily As FontFamily,
culture As CultureInfo,
<OutAttribute> ByRef typeface As Typeface
) As Boolean
member TryMatchCharacter :
codepoint : int *
fontStyle : FontStyle *
fontWeight : FontWeight *
fontStretch : FontStretch *
fontFamily : FontFamily *
culture : CultureInfo *
typeface : Typeface byref -> bool
- codepoint Int32
- The codepoint to match against.
- fontStyle FontStyle
- The font style.
- fontWeight FontWeight
- The font weight.
- fontStretch FontStretch
- The font stretch.
- fontFamily FontFamily
- The font family. This is optional and used for fallback lookup.
- culture CultureInfo
- The culture.
- typeface Typeface
- The matching Typeface.
BooleanTrue, if the
FontManager could match the character to specified parameters,
False otherwise.