Skip to content

Commit 0cf1104

Browse files
EvgenyB1001iText-CI
authored andcommitted
Fix woff2 converting method
DEVSIX-1612 Autoported commit. Original commit hash: [5a556a8b4]
1 parent d167849 commit 0cf1104

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

itext.tests/itext.io.tests/itext/io/font/woff2/w3c/decoder/ValidationOff012Test.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ source product.
4444
using iText.IO.Font.Woff2.W3c;
4545

4646
namespace iText.IO.Font.Woff2.W3c.Decoder {
47-
[NUnit.Framework.Ignore("DEVSIX-1612: different result in java and C#")]
4847
public class ValidationOff012Test : W3CWoff2DecodeTest {
49-
//NOTE: Should be invalid by w3c test suite spec. See w3cProblemTest07 in html font-face test for more details.
5048
protected internal override String GetFontName() {
5149
return "validation-off-012";
5250
}

itext/itext.io/itext/io/font/woff2/Woff2Dec.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ private static void WriteHeaders(byte[] data, int length, Woff2Dec.RebuildMetada
11281128
System.Diagnostics.Debug.Assert(firstTableOffset <= int.MaxValue);
11291129
byte[] output = new byte[(int)firstTableOffset];
11301130
// Re-order tables in output (OTSpec) order
1131-
IList<Woff2Common.Table> sorted_tables = JavaUtil.ArraysAsList(hdr.tables);
1131+
IList<Woff2Common.Table> sorted_tables = new List<Woff2Common.Table>(JavaUtil.ArraysAsList(hdr.tables));
11321132
if (hdr.header_version != 0) {
11331133
// collection font; we have to sort the table offset vector in each font
11341134
foreach (Woff2Dec.TtcFont ttc_font in hdr.ttc_fonts) {

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b09bdbb7a54f28e2cfbba757efdb8d41122d6baa
1+
5a556a8b4c265ca4c14c8703665d97bd589ca806

0 commit comments

Comments
 (0)