Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/SixLabors.Fonts/TextBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,10 @@ private static int FindWordMetricIndex(List<WordSegmentRun> wordSegments, int gr
/// <param name="metrics">The word metrics to inspect.</param>
/// <returns><see langword="true"/> when a grapheme has been accumulated for the segment.</returns>
private static bool HasWordMetrics(in WordMetrics metrics)
{

// Default WordMetrics has no source range. Any real word segment has an exclusive end
// index, so the range is the sentinel that avoids treating FontRectangle.Empty as geometry.
return metrics.GraphemeEnd != 0 || metrics.StringEnd != 0;
}
=> metrics.GraphemeEnd != 0 || metrics.StringEnd != 0;

/// <summary>
/// Gets one per-glyph metrics collection by streaming laid-out glyphs.
Expand Down
1 change: 0 additions & 1 deletion src/SixLabors.Fonts/TextLineBreakEnumerator.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.

using System.Collections.Generic;
using SixLabors.Fonts.Unicode;

namespace SixLabors.Fonts;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/Images/ReferenceOutput/CanRenderEmojiFont_With_SVG-.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/Images/ReferenceOutput/Issue_444_A_860.png
4 changes: 2 additions & 2 deletions tests/Images/ReferenceOutput/Issue_444_B_860.png
4 changes: 2 additions & 2 deletions tests/Images/ReferenceOutput/Issue_444_C_860.png
4 changes: 2 additions & 2 deletions tests/Images/ReferenceOutput/Issue_444_D_860.png
4 changes: 2 additions & 2 deletions tests/Images/ReferenceOutput/Issue_444_E_860.png
4 changes: 2 additions & 2 deletions tests/Images/ReferenceOutput/Issue_446_A_860.png
4 changes: 2 additions & 2 deletions tests/Images/ReferenceOutput/Issue_446_B_860.png
4 changes: 2 additions & 2 deletions tests/Images/ReferenceOutput/Issue_448_150.png
4 changes: 2 additions & 2 deletions tests/Images/ReferenceOutput/Issue_450_960.png
4 changes: 2 additions & 2 deletions tests/Images/ReferenceOutput/Issue_451_A-.png
4 changes: 2 additions & 2 deletions tests/Images/ReferenceOutput/Issue_451_B-.png
4 changes: 2 additions & 2 deletions tests/Images/ReferenceOutput/Issue_451_C-.png
Loading
Loading