Skip to content

Commit df5a793

Browse files
Nikita KovalioviText-CI
authored andcommitted
Update NOTICE files and fonts
DEVSIX-6385 Autoported commit. Original commit hash: [b1e95484d]
1 parent 8fcf80d commit df5a793

File tree

23 files changed

+18
-362
lines changed

23 files changed

+18
-362
lines changed

itext.tests/itext.kernel.tests/itext/kernel/pdf/PdfFontTest.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ public class PdfFontTest : ExtendedITextTest {
7474

7575
internal const String creator = "iText 7";
7676

77-
internal const String pangramme = "Amazingly few discotheques provide jukeboxes " + "but it now while sayingly ABEFGHJKNOPQRSTUWYZ?";
78-
7977
[NUnit.Framework.OneTimeSetUp]
8078
public static void BeforeClass() {
8179
CreateDestinationFolder(destinationFolder);
@@ -1196,13 +1194,13 @@ public virtual void TestNotoFont() {
11961194
}
11971195

11981196
[NUnit.Framework.Test]
1199-
public virtual void TestWoffFont() {
1197+
public virtual void WoffFontTest() {
12001198
String filename = destinationFolder + "testWoffFont.pdf";
12011199
String cmpFilename = sourceFolder + "cmp_testWoffFont.pdf";
12021200
String helloWorld = "Hello world";
12031201
PdfDocument doc = new PdfDocument(new PdfWriter(filename));
12041202
PdfPage page = doc.AddNewPage();
1205-
PdfFont font = PdfFontFactory.CreateFont(fontsFolder + "Amaranth-Regular.woff", "Identity-H", PdfFontFactory.EmbeddingStrategy
1203+
PdfFont font = PdfFontFactory.CreateFont(fontsFolder + "SourceSerif4-Black.woff", "Identity-H", PdfFontFactory.EmbeddingStrategy
12061204
.PREFER_EMBEDDED);
12071205
PdfCanvas canvas = new PdfCanvas(page);
12081206
canvas.SaveState().BeginText().MoveText(36, 680).SetFontAndSize(font, 12).ShowText(helloWorld).EndText().RestoreState
@@ -1392,12 +1390,12 @@ public virtual void TestFontDirectoryRegister() {
13921390
}
13931391

13941392
[NUnit.Framework.Test]
1395-
public virtual void TestFontRegister() {
1396-
FontProgramFactory.RegisterFont(fontsFolder + "Aller_Rg.ttf", "aller");
1393+
public virtual void FontRegisterTest() {
1394+
FontProgramFactory.RegisterFont(fontsFolder + "NotoSerif-Regular_v1.7.ttf", "notoSerifRegular");
13971395
PdfWriter writer = new PdfWriter(new ByteArrayOutputStream());
13981396
writer.SetCompressionLevel(CompressionConstants.NO_COMPRESSION);
13991397
PdfDocument pdfDoc = new PdfDocument(writer);
1400-
PdfFont pdfFont = PdfFontFactory.CreateRegisteredFont("aller");
1398+
PdfFont pdfFont = PdfFontFactory.CreateRegisteredFont("notoSerifRegular");
14011399
//clear font cache for other tests
14021400
FontProgramFactory.ClearRegisteredFonts();
14031401
NUnit.Framework.Assert.IsTrue(pdfFont is PdfType0Font);

itext.tests/itext.kernel.tests/resources/itext/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"

itext.tests/itext.kernel.tests/resources/itext/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

itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/fonts/ARPHICPL.TXT

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

0 commit comments

Comments
 (0)