FontManager Class

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.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public sealed class FontManager
Inheritance
Object    FontManager

Properties

Current Get the current font manager instance.
DefaultFontFamily Gets the system's default font family.
SystemFonts Get all system fonts.

Methods

AddFontCollection(IFontCollection) Add a font collection to the manager.
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
RemoveFontCollection(Uri) Removes the font collection that corresponds to specified key.
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryGetGlyphTypeface(Typeface, IGlyphTypeface) Tries to get a glyph typeface for specified typeface.
TryMatchCharacter(Int32, FontStyle, FontWeight, FontStretch, FontFamily, CultureInfo, Typeface) Tries to match a specified character to a Typeface that supports specified font properties.

Fields

See Also