From ff3acbfc19f3f50071003e6cc0e69abc847ce9c1 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Thu, 24 Aug 2023 21:14:56 +1000 Subject: [PATCH] Fix bad warning fix --- src/SixLabors.Fonts/FontCollection.cs | 2 +- .../SixLabors.Fonts.Benchmarks/MeasureTextBenchmark.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SixLabors.Fonts/FontCollection.cs b/src/SixLabors.Fonts/FontCollection.cs index 49207c1..28bcb7f 100644 --- a/src/SixLabors.Fonts/FontCollection.cs +++ b/src/SixLabors.Fonts/FontCollection.cs @@ -137,7 +137,7 @@ public sealed class FontCollection : IFontCollection, IFontMetricsCollection /// FontFamily IFontMetricsCollection.AddMetrics(FontMetrics metrics, CultureInfo culture) { - ((IFontMetricsCollection)this).AddMetrics(metrics, culture); + ((IFontMetricsCollection)this).AddMetrics(metrics); return new FontFamily(metrics.Description.FontFamily(culture), this, culture); } diff --git a/tests/SixLabors.Fonts.Benchmarks/SixLabors.Fonts.Benchmarks/MeasureTextBenchmark.cs b/tests/SixLabors.Fonts.Benchmarks/SixLabors.Fonts.Benchmarks/MeasureTextBenchmark.cs index 069887a..2818030 100644 --- a/tests/SixLabors.Fonts.Benchmarks/SixLabors.Fonts.Benchmarks/MeasureTextBenchmark.cs +++ b/tests/SixLabors.Fonts.Benchmarks/SixLabors.Fonts.Benchmarks/MeasureTextBenchmark.cs @@ -15,7 +15,7 @@ namespace SixLabors.Fonts.Benchmarks; /// We should see if we can include the Skia HarfBuzz extensions to see how we compare. /// [MediumRunJob] -public sealed class MeasureTextBenchmark : IDisposable +public class MeasureTextBenchmark : IDisposable { private readonly TextOptions textOptions; private readonly SKTypeface arialTypeface;