FontManager Class

Summary

The font manager is used to query the system's installed fonts and is responsible for caching loaded fonts. It is also responsible for the font fallback.
Namespace
Avalonia.Media
Base Types
  • object
graph BT Type-->Base0["object"] Type["FontManager"] class Type type-node

Syntax

public sealed class FontManager

Constructors

Properties

Name Value Summary
Current FontManager
static
DefaultFontFamilyName string
Gets the system's default font family's name.
PlatformImpl IFontManagerImpl

Methods

Name Value Summary
GetInstalledFontFamilyNames(bool) IEnumerable<string>
Get all installed font family names.
GetOrAddGlyphTypeface(Typeface) GlyphTypeface
Returns a new GlyphTypeface, or an existing one if a matching GlyphTypeface exists.
TryMatchCharacter(int, FontStyle, FontWeight, FontFamily, CultureInfo, Typeface) bool
Tries to match a specified character to a Typeface that supports specified font properties.