Skip to content

Commit b1e9548

Browse files
author
Nikita Kovaliov
committed
Update NOTICE files and fonts
DEVSIX-6385
1 parent 4741f65 commit b1e9548

File tree

22 files changed

+17
-362
lines changed

22 files changed

+17
-362
lines changed

kernel/src/test/java/com/itextpdf/kernel/pdf/PdfFontTest.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ public class PdfFontTest extends ExtendedITextTest {
9292

9393
static final String author = "Alexander Chingarev";
9494
static final String creator = "iText 7";
95-
@SuppressWarnings("unused")
96-
static final String pangramme = "Amazingly few discotheques provide jukeboxes " +
97-
"but it now while sayingly ABEFGHJKNOPQRSTUWYZ?";
9895

9996
@BeforeClass
10097
public static void beforeClass() {
@@ -1655,7 +1652,7 @@ public void testNotoFont() throws IOException, InterruptedException {
16551652
}
16561653

16571654
@Test
1658-
public void testWoffFont() throws IOException, InterruptedException {
1655+
public void woffFontTest() throws IOException, InterruptedException {
16591656
String filename = destinationFolder + "testWoffFont.pdf";
16601657
String cmpFilename = sourceFolder + "cmp_testWoffFont.pdf";
16611658

@@ -1664,7 +1661,7 @@ public void testWoffFont() throws IOException, InterruptedException {
16641661
PdfDocument doc = new PdfDocument(new PdfWriter(filename));
16651662
PdfPage page = doc.addNewPage();
16661663

1667-
PdfFont font = PdfFontFactory.createFont(fontsFolder + "Amaranth-Regular.woff",
1664+
PdfFont font = PdfFontFactory.createFont(fontsFolder + "SourceSerif4-Black.woff",
16681665
"Identity-H", EmbeddingStrategy.PREFER_EMBEDDED);
16691666

16701667
PdfCanvas canvas = new PdfCanvas(page);
@@ -1938,12 +1935,12 @@ public void testFontDirectoryRegister() throws IOException {
19381935
}
19391936

19401937
@Test
1941-
public void testFontRegister() throws IOException {
1942-
FontProgramFactory.registerFont(fontsFolder + "Aller_Rg.ttf", "aller");
1938+
public void fontRegisterTest() throws IOException {
1939+
FontProgramFactory.registerFont(fontsFolder + "NotoSerif-Regular_v1.7.ttf", "notoSerifRegular");
19431940
PdfWriter writer = new PdfWriter(new ByteArrayOutputStream());
19441941
writer.setCompressionLevel(CompressionConstants.NO_COMPRESSION);
19451942
PdfDocument pdfDoc = new PdfDocument(writer);
1946-
PdfFont pdfFont = PdfFontFactory.createRegisteredFont("aller");
1943+
PdfFont pdfFont = PdfFontFactory.createRegisteredFont("notoSerifRegular");
19471944
//clear font cache for other tests
19481945
FontProgramFactory.clearRegisteredFonts();
19491946
Assert.assertTrue(pdfFont instanceof PdfType0Font);

kernel/src/test/resources/com/itextpdf/kernel/NOTICE.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
This software uses the following test resources under the following licenses:
2-
| NotoSans-Regular_v.1.8.2.ttf | OFL-1.1 | LICENSE-OFL.txt |
2+
//TODO DEVSIX-6473 Replace fonts in kernel
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This software uses the following test resources under the following licenses:
2+
| NotoSansOldItalic-Regular.ttf | OFL-1.1 | LICENSE-OFL.txt | Based on commit 20bc5918912503bc1537a407a694738c33c048aa (07.31.2020) from "https://github.com/googlefonts/noto-fonts"
3+
| NotoSerif-Regular_v1.7.ttf | OFL-1.1 | LICENSE-OFL.txt | Based on commit 5a89b487c648c34c2b6d1b9ebb73bb3fab1df4b2 (20.09.2017) from "https://github.com/googlefonts/noto-fonts"

kernel/src/test/resources/com/itextpdf/kernel/font/PdfType0FontTest/OFL.txt

Lines changed: 0 additions & 91 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This software uses the following test resources under the following licenses:
2+
//TODO DEVSIX-6473 Replace fonts in kernel

kernel/src/test/resources/com/itextpdf/kernel/pdf/fonts/ARPHICPL.TXT

Lines changed: 0 additions & 58 deletions
This file was deleted.
Binary file not shown.

0 commit comments

Comments
 (0)