IFontCollectionTryMatchCharacter 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) Version: 11.3.999
bool TryMatchCharacter(
	int codepoint,
	FontStyle fontStyle,
	FontWeight fontWeight,
	FontStretch fontStretch,
	string? familyName,
	CultureInfo? culture,
	out Typeface? typeface
)

Parameters

codepoint  Int32
The codepoint to match against.
fontStyle  FontStyle
The font style.
fontWeight  FontWeight
The font weight.
fontStretch  FontStretch
The font stretch.
familyName  String
The family name. This is optional and used for fallback lookup.
culture  CultureInfo
The culture.
typeface  Typeface
The matching Typeface.

Return Value

Boolean
True, if the FontManager could match the character to specified parameters, False otherwise.

See Also