Skip to content

Commit 5a556a8

Browse files
committed
Fix woff2 converting method
DEVSIX-1612
1 parent b09bdbb commit 5a556a8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

io/src/main/java/com/itextpdf/io/font/woff2/Woff2Dec.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,8 @@ private static void writeHeaders(byte[] data, int length, RebuildMetadata metada
11401140
byte[] output = new byte[(int) firstTableOffset];
11411141

11421142
// Re-order tables in output (OTSpec) order
1143-
List<Woff2Common.Table> sorted_tables = Arrays.asList(hdr.tables);
1143+
List<Woff2Common.Table> sorted_tables = new ArrayList<>(Arrays.asList(hdr.tables));
1144+
11441145
if (hdr.header_version != 0) {
11451146
// collection font; we have to sort the table offset vector in each font
11461147
for (TtcFont ttc_font : hdr.ttc_fonts) {

io/src/test/java/com/itextpdf/io/font/woff2/w3c/decoder/ValidationOff012Test.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ This file is part of the iText (R) project.
4545
import com.itextpdf.io.font.woff2.w3c.W3CWoff2DecodeTest;
4646
import org.junit.Ignore;
4747

48-
@Ignore("DEVSIX-1612: different result in java and C#")
49-
//NOTE: Should be invalid by w3c test suite spec. See w3cProblemTest07 in html font-face test for more details.
5048
public class ValidationOff012Test extends W3CWoff2DecodeTest {
5149
@Override
5250
protected String getFontName() {

0 commit comments

Comments
 (0)