Skip to content

Commit cbd76d7

Browse files
Merge pull request #531 from SixLabors/js/update-render-tests
Update drawing tests to use new renderer
2 parents 4bbe910 + fdc3602 commit cbd76d7

209 files changed

Lines changed: 618 additions & 610 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/SixLabors.Fonts/TextBlock.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,10 @@ private static int FindWordMetricIndex(List<WordSegmentRun> wordSegments, int gr
498498
/// <param name="metrics">The word metrics to inspect.</param>
499499
/// <returns><see langword="true"/> when a grapheme has been accumulated for the segment.</returns>
500500
private static bool HasWordMetrics(in WordMetrics metrics)
501-
{
501+
502502
// Default WordMetrics has no source range. Any real word segment has an exclusive end
503503
// index, so the range is the sentinel that avoids treating FontRectangle.Empty as geometry.
504-
return metrics.GraphemeEnd != 0 || metrics.StringEnd != 0;
505-
}
504+
=> metrics.GraphemeEnd != 0 || metrics.StringEnd != 0;
506505

507506
/// <summary>
508507
/// Gets one per-glyph metrics collection by streaming laid-out glyphs.

src/SixLabors.Fonts/TextLineBreakEnumerator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
33

4-
using System.Collections.Generic;
54
using SixLabors.Fonts.Unicode;
65

76
namespace SixLabors.Fonts;
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)