-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #407 from SixLabors/js/fix-400-whitespace-trim
Ensure only trailing whitespace is trimmed.
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) Six Labors. | ||
// Licensed under the Six Labors Split License. | ||
|
||
namespace SixLabors.Fonts.Tests.Issues; | ||
public class Issues_400 | ||
{ | ||
[Fact] | ||
public void RenderingTextIncludesAllGlyphs() | ||
{ | ||
#if OS_WINDOWS | ||
|
||
TextOptions options = new(new Font(SystemFonts.Get("Arial"), 16 * 2)) | ||
{ | ||
WrappingLength = 1900 | ||
}; | ||
|
||
const string content = """ | ||
NEWS_CATEGORY=EWF&NEWS_HASH=4b298ff9277ef9fdf515356be95ea3caf57cd36&OFFSET=0&SEARCH_VALUE=CA88105E1088&ID_NEWS | ||
"""; | ||
|
||
int lineCount = TextMeasurer.CountLines(content, options); | ||
Assert.Equal(2, lineCount); | ||
#endif | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters