Fix build errors

This commit is contained in:
2023-04-25 16:34:13 +02:00
parent a0d9a11538
commit bde131f422
9 changed files with 189 additions and 125 deletions

View File

@@ -28,7 +28,7 @@ public class FontService : IFontService
public string? GetMainFont()
{
var installedFonts = FontManager.Current.GetInstalledFontFamilyNames().ToList();
var installedFonts = FontManager.Current.SystemFonts.Select(f => f.Name).ToList();
return _fontConfiguration.CurrentValue.Main.Find(installedFonts.Contains);
}
}