Skip to content

Commit cb926ea

Browse files
committed
fix unit test macos
1 parent 1538a56 commit cb926ea

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/Avalonia.Skia.UnitTests/Media/FontManagerImplTests.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,11 @@ public void Should_Create_Typeface_From_Fallback_Bold()
3333
{
3434
var fontManager = new FontManagerImpl();
3535

36-
//we need to have a valid font name different from the default one
37-
string fontName = fontManager.GetInstalledFontFamilyNames().First();
38-
3936
var glyphTypeface = (GlyphTypefaceImpl)fontManager.CreateGlyphTypeface(
40-
new Typeface(new FontFamily($"A, B, {fontName}"), weight: FontWeight.Bold));
37+
new Typeface(new FontFamily($"A, B, Arial"), weight: FontWeight.Bold));
4138

4239
var skTypeface = glyphTypeface.Typeface;
43-
44-
Assert.Equal(fontName, skTypeface.FamilyName);
40+
4541
Assert.True(skTypeface.FontWeight >= 600);
4642
}
4743

0 commit comments

Comments
 (0)