IFontManagerImplTryMatchCharacter Method

Tries to match a specified character to a typeface that supports specified font properties.

Definition

Namespace: Avalonia.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
bool TryMatchCharacter(
	int codepoint,
	FontStyle fontStyle,
	FontWeight fontWeight,
	FontStretch fontStretch,
	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.
culture  CultureInfo
The culture.
typeface  Typeface
The matching typeface.

Return Value

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

See Also