2 instantiations of FontDescriptor
Microsoft.Maui (2)
Hosting\Fonts\FontCollectionExtensions.cs (2)
24
fontCollection.Add(new
FontDescriptor
(filename, alias, null));
45
fontCollection.Add(new
FontDescriptor
(filename, alias, assembly));
14 references to FontDescriptor
Microsoft.Maui (14)
Hosting\Fonts\FontsMauiAppBuilderExtensions.cs (1)
82
foreach (
var
font in fontsBuilder)
Hosting\Fonts\IFontCollection.cs (3)
9
public interface IFontCollection : IList<
FontDescriptor
>, ICollection<
FontDescriptor
>, IEnumerable<
FontDescriptor
>, IEnumerable
Hosting\Internal\FontCollection.cs (10)
8
readonly List<
FontDescriptor
> _descriptors = new List<
FontDescriptor
>();
14
public
FontDescriptor
this[int index]
20
public void Add(
FontDescriptor
item)
28
public bool Contains(
FontDescriptor
item) => _descriptors.Contains(item);
30
public IEnumerator<
FontDescriptor
> GetEnumerator() => _descriptors.GetEnumerator();
34
public bool Remove(
FontDescriptor
item) => _descriptors.Remove(item);
36
public void CopyTo(
FontDescriptor
[] array, int arrayIndex) => _descriptors.CopyTo(array, arrayIndex);
38
public int IndexOf(
FontDescriptor
item) => _descriptors.IndexOf(item);
40
public void Insert(int index,
FontDescriptor
item) => _descriptors.Insert(index, item);