Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fonts library to beta19 #1971

Merged
merged 1 commit into from
Jan 14, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions ClosedXML.Tests/Graphics/FontTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ public void CanSpecifyExtraFontsAsStreamsWithoutFileSystem()
Assert.AreEqual(expectedWidthOfLetterB, widthOfLetterB, 0.0001);
}

[TestCase]
public void Issue_1916_CanMeasureSpecificArabicText()
{
using var wb = new XLWorkbook();
var ws = wb.AddWorksheet();
ws.Cell(1, 1).Value = @"اصين";
ws.Column(1).AdjustToContents();
}

private class DummyFont : IXLFontBase
{
public DummyFont(string name, double size)
Expand Down
2 changes: 1 addition & 1 deletion ClosedXML/ClosedXML.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<PackageReference Include="Janitor.Fody" Version="1.8.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="SixLabors.Fonts" Version="1.0.0-beta18" />
<PackageReference Include="SixLabors.Fonts" Version="1.0.0-beta19" />
<PackageReference Include="System.Buffers" Version="4.5.1" />
<!-- Pre-6.0.0 System.IO.Packaging has a race condition https://github.com/dotnet/runtime/issues/43012 -->
<PackageReference Include="System.IO.Packaging" Version="6.0.0" />
Expand Down
10 changes: 10 additions & 0 deletions docs/migrations/migrate-to-0.101.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#############################
Migration from 0.100 to 0.101
#############################

******************
Dependency updates
******************

Library ``SixLabors.Fonts`` has been updated from *1.0.0-beta18* to
*1.0.0-beta19* to due to bug fixing of font measurement.