Skip to content

Commit

Permalink
Merge pull request #19214 from unoplatform/dev/doti/repoint-segoe-icons
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund authored Jan 15, 2025
2 parents 5485bce + a8cb22b commit eb33ecd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Uno.UI/UI/Xaml/FontFamily.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Uno.UI;
using Windows.Networking;

namespace Microsoft.UI.Xaml.Media
{
Expand All @@ -11,9 +12,14 @@ public partial class FontFamily
public FontFamily(string familyName)
{
Source = familyName;

Init(familyName);

// A workaround before font fallback is supported. Issue: https://github.com/unoplatform/uno/issues/10148
if (familyName.Equals("Segoe Fluent Icons,Segoe MDL2 Assets", StringComparison.OrdinalIgnoreCase))
{
Source = "Segoe MDL2 Assets";
}

// This instance is immutable, we can cache the hash code.
_hashCode = familyName.GetHashCode();
}
Expand Down

0 comments on commit eb33ecd

Please sign in to comment.