Skip to main content

IFontCollection Interface

Definition

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

public interface IFontCollection : IReadOnlyList<FontFamily>, 
IEnumerable<FontFamily>, IEnumerable, IReadOnlyCollection<FontFamily>,
IDisposable
View Source
ImplementsIEnumerable(FontFamily), IReadOnlyCollection(FontFamily), IReadOnlyList(FontFamily), IEnumerable, IDisposable

Properties

CountGets the number of elements in the collection.
(Inherited from IReadOnlyCollection(FontFamily))
Item(Int32)Gets the element at the specified index in the read-only list.
(Inherited from IReadOnlyList(FontFamily))
KeyGet the font collection's key.

Methods

Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
GetEnumerator()Returns an enumerator that iterates through the collection.
(Inherited from IEnumerable(FontFamily))
TryGetGlyphTypeface(String, FontStyle, FontWeight, FontStretch, IGlyphTypeface)Try to get a glyph typeface for given parameters.
TryMatchCharacter(Int32, FontStyle, FontWeight, FontStretch, String, CultureInfo, Typeface)Tries to match a specified character to a Typeface that supports specified font properties.

See Also

Reference

Avalonia.Media.Fonts Namespace