From f60cc131e748b7e10a12c0eb2d01cb46f4fd8064 Mon Sep 17 00:00:00 2001 From: adirh Date: Sat, 24 Aug 2024 12:15:59 +0300 Subject: [PATCH] Fixed nearest font matching not working --- src/Avalonia.Base/Media/Fonts/SystemFontCollection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Base/Media/Fonts/SystemFontCollection.cs b/src/Avalonia.Base/Media/Fonts/SystemFontCollection.cs index ce20ace90c9..3f4aeafdb2c 100644 --- a/src/Avalonia.Base/Media/Fonts/SystemFontCollection.cs +++ b/src/Avalonia.Base/Media/Fonts/SystemFontCollection.cs @@ -82,7 +82,7 @@ public override bool TryGetGlyphTypeface(string familyName, FontStyle style, Fon if (createdKey != key) { //Try to find nearest match if possible - if (!TryGetNearestMatch(glyphTypefaces, key, out var nearestMatch)) + if (TryGetNearestMatch(glyphTypefaces, key, out var nearestMatch)) { glyphTypeface = nearestMatch; }