diff --git a/MainWindow.xaml b/MainWindow.xaml index bd049f3..c8edca6 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -13,6 +13,7 @@ MinWidth="1366" MinHeight="768" Icon="/ytLive;component/Assets/llamacasty-icon.png" Background="#1a1a2e" + FontFamily="{StaticResource FontFamily.Sans}" WindowStartupLocation="Manual" Closing="MainWindow_Closing" Loaded="MainWindow_Loaded" diff --git a/ytLive.Tests/BundledFontsTests.cs b/ytLive.Tests/BundledFontsTests.cs index c1f3ee0..89d2eb8 100644 --- a/ytLive.Tests/BundledFontsTests.cs +++ b/ytLive.Tests/BundledFontsTests.cs @@ -1,5 +1,10 @@ +using System; using System.IO; +using System.Collections.Generic; using System.Linq; +using System.Threading; +using System.Windows; +using System.Windows.Media; using Xunit; namespace ytLive.Tests; @@ -30,8 +35,10 @@ public class BundledFontsTests Assert.True(new FileInfo(path).Length > 50_000, $"{name} looks like a placeholder"); } - // 2. The project packages them as WPF resources. - Assert.Contains(@"Assets\Fonts\*.ttf", SourceAssert.Text("ytLive.csproj")); + // 2. The project packages each one as a WPF resource (an explicit item, not a guess). + var csproj = SourceAssert.Text("ytLive.csproj"); + foreach (var name in Files) + Assert.Contains($@"Assets\Fonts\{name}", csproj); // 3. The theme resolves each family from the pack folder — a bare family name would // only work if the user happened to have the font installed. diff --git a/ytLive.csproj b/ytLive.csproj index dc00ee9..b65e7ae 100644 --- a/ytLive.csproj +++ b/ytLive.csproj @@ -81,7 +81,12 @@ - + + + + + +