feat(Desktop): Enable color emoji flag rendering on Windows

- Upgrade SkiaSharp to 3.119.0 for full COLR/CPAL color font support
- Add HarfBuzzSharp 8.3.1.1 for text shaping support
- Add Windows font fallback for Segoe UI Emoji
This commit is contained in:
hqyz 2026-01-17 14:18:12 +08:00
parent fe183798b6
commit 4467789bb4
3 changed files with 11 additions and 0 deletions

View file

@ -27,6 +27,8 @@
<PackageVersion Include="TaskScheduler" Version="2.12.2" />
<PackageVersion Include="WebDav.Client" Version="2.9.0" />
<PackageVersion Include="YamlDotNet" Version="16.3.0" />
<PackageVersion Include="SkiaSharp" Version="3.119.0" />
<PackageVersion Include="HarfBuzzSharp" Version="8.3.1.1" />
<PackageVersion Include="ZXing.Net.Bindings.SkiaSharp" Version="0.16.14" />
</ItemGroup>
</Project>

View file

@ -16,6 +16,13 @@ public static class AppBuilderExtension
FontFamily = new FontFamily("Noto Color Emoji")
});
}
else if (OperatingSystem.IsWindows())
{
fallbacks.Add(new FontFallback
{
FontFamily = new FontFamily("Segoe UI Emoji")
});
}
return appBuilder.With(new FontManagerOptions
{

View file

@ -28,6 +28,8 @@
<PackageReference Include="ReactiveUI.Fody">
<TreatAsUsed>true</TreatAsUsed>
</PackageReference>
<PackageReference Include="SkiaSharp" />
<PackageReference Include="HarfBuzzSharp" />
</ItemGroup>
<ItemGroup>