Skip to main content

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)

public sealed class FontManager
View Source
InheritanceObject → FontManager

Properties

CurrentGet the current font manager instance.
DefaultFontFamilyGets the system's default font family.
SystemFontsGet 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)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
RemoveFontCollection(Uri)Removes the font collection that corresponds to specified key.
ToString()Returns 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

CompositeFontScheme 
FontCollectionScheme 
SystemFontScheme 

See Also

Reference

Avalonia.Media Namespace