Skip to main content

TryMatchCharacter Method

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

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

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

Parameters

  Int32
The codepoint to match against.
  FontStyle
The font style.
  FontWeight
The font weight.
  FontStretch
The font stretch.
  FontFamily
The font family. 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.

See Also

Reference

FontManager Class
Avalonia.Media Namespace