Font fallbacks.

This commit is contained in:
2025-06-29 16:51:06 +02:00
parent b3c1db3145
commit 26cb66dbe0
6 changed files with 113 additions and 7 deletions

View File

@@ -52,6 +52,28 @@ namespace Voile
{
Guid = guid;
}
public override bool Equals(object? obj)
{
return obj is ResourceRef<T> other && Guid.Equals(other.Guid);
}
public override int GetHashCode()
{
return Guid.GetHashCode();
}
public static bool operator ==(ResourceRef<T>? left, ResourceRef<T>? right)
{
if (ReferenceEquals(left, right)) return true;
if (left is null || right is null) return false;
return left.Guid == right.Guid;
}
public static bool operator !=(ResourceRef<T>? left, ResourceRef<T>? right)
{
return !(left == right);
}
}
/// <summary>