|
|
|
@ -5,6 +5,7 @@ using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using Avalonia.Media.Fonts; |
|
|
|
using Avalonia.Platform; |
|
|
|
|
|
|
|
namespace Avalonia.Media |
|
|
|
{ |
|
|
|
@ -51,6 +52,12 @@ namespace Avalonia.Media |
|
|
|
/// </summary>
|
|
|
|
public static FontFamily Default => new FontFamily(String.Empty); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents all font families in the system
|
|
|
|
/// </summary>
|
|
|
|
public static IEnumerable<FontFamily> SystemFontFamilies => |
|
|
|
AvaloniaLocator.Current.GetService<IPlatformRenderInterface>().InstalledFontNames.Select(name => new FontFamily(name)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the primary family name of the font family.
|
|
|
|
/// </summary>
|
|
|
|
|