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)
- C#
- VB
- F#
public sealed class FontManager : IDisposable
Public NotInheritable Class FontManager
Implements IDisposable
[<SealedAttribute>]
type FontManager =
class
interface IDisposable
end
| Inheritance | Object → FontManager |
| Implements | IDisposable |
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) |
| 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 |