IFontManagerImpl.

TryMatchCharacter(int, FontStyle, FontWeight, FontFamily, CultureInfo, Typeface) Method

Summary

Tries to match a specified character to a typeface that supports specified font properties.
Namespace
Avalonia.Platform
Containing Type
IFontManagerImpl

Syntax

bool TryMatchCharacter(int codepoint, FontStyle fontStyle, FontWeight fontWeight, FontFamily fontFamily, CultureInfo culture, out Typeface typeface)

Parameters

Name Type Description
codepoint int The codepoint to match against.
fontStyle FontStyle The font style.
fontWeight FontWeight The font weight.
fontFamily FontFamily The font family. This is optional and used for fallback lookup.
culture CultureInfo The culture.
typeface Typeface The matching typeface.

Return Value

Type Description
bool True, if the IFontManagerImpl could match the character to specified parameters, False otherwise.