Skip to content

Commit ed6afd8

Browse files
committed
Update licence information for kernel fonts
DEVSIX-7154
1 parent 20f909c commit ed6afd8

File tree

7 files changed

+104
-3
lines changed

7 files changed

+104
-3
lines changed

io/src/main/java/com/itextpdf/io/font/Pfm2afm.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ This file is part of the iText (R) project.
116116
********************************************************************/
117117
package com.itextpdf.io.font;
118118

119-
import com.itextpdf.io.source.RandomAccessFileOrArray;
120119
import com.itextpdf.commons.utils.FileUtil;
120+
import com.itextpdf.io.source.RandomAccessFileOrArray;
121121

122122
import java.io.OutputStream;
123123
import java.io.PrintWriter;
@@ -231,7 +231,9 @@ private void openpfm() throws java.io.IOException {
231231
kernpairs = input.readIntLE();
232232
res2 = input.readIntLE();
233233
fontname = input.readIntLE();
234-
if (h_len != input.length() || extlen != 30 || fontname < 75 || fontname > 512) {
234+
//Those checks come from an old C implementation of pfm2afm, when reading the specs
235+
//Nothing indicates the fontnameOffset should be max 512
236+
if (h_len != input.length() || extlen != 30 || fontname < 75 || fontname > 1024) {
235237
throw new java.io.IOException("not.a.valid.pfm.file");
236238
}
237239
input.seek(psext + 14);
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font
2+
Name 'Source'. Source is a trademark of Adobe in the United States
3+
and/or other countries.
4+
5+
This Font Software is licensed under the SIL Open Font License,
6+
Version 1.1.
7+
8+
This license is copied below, and is also available with a FAQ at:
9+
http://scripts.sil.org/OFL
10+
11+
-----------------------------------------------------------
12+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
13+
-----------------------------------------------------------
14+
15+
PREAMBLE
16+
The goals of the Open Font License (OFL) are to stimulate worldwide
17+
development of collaborative font projects, to support the font
18+
creation efforts of academic and linguistic communities, and to
19+
provide a free and open framework in which fonts may be shared and
20+
improved in partnership with others.
21+
22+
The OFL allows the licensed fonts to be used, studied, modified and
23+
redistributed freely as long as they are not sold by themselves. The
24+
fonts, including any derivative works, can be bundled, embedded,
25+
redistributed and/or sold with any software provided that any reserved
26+
names are not used by derivative works. The fonts and derivatives,
27+
however, cannot be released under any other type of license. The
28+
requirement for fonts to remain under this license does not apply to
29+
any document created using the fonts or their derivatives.
30+
31+
DEFINITIONS
32+
"Font Software" refers to the set of files released by the Copyright
33+
Holder(s) under this license and clearly marked as such. This may
34+
include source files, build scripts and documentation.
35+
36+
"Reserved Font Name" refers to any names specified as such after the
37+
copyright statement(s).
38+
39+
"Original Version" refers to the collection of Font Software
40+
components as distributed by the Copyright Holder(s).
41+
42+
"Modified Version" refers to any derivative made by adding to,
43+
deleting, or substituting -- in part or in whole -- any of the
44+
components of the Original Version, by changing formats or by porting
45+
the Font Software to a new environment.
46+
47+
"Author" refers to any designer, engineer, programmer, technical
48+
writer or other person who contributed to the Font Software.
49+
50+
PERMISSION & CONDITIONS
51+
Permission is hereby granted, free of charge, to any person obtaining
52+
a copy of the Font Software, to use, study, copy, merge, embed,
53+
modify, redistribute, and sell modified and unmodified copies of the
54+
Font Software, subject to the following conditions:
55+
56+
1) Neither the Font Software nor any of its individual components, in
57+
Original or Modified Versions, may be sold by itself.
58+
59+
2) Original or Modified Versions of the Font Software may be bundled,
60+
redistributed and/or sold with any software, provided that each copy
61+
contains the above copyright notice and this license. These can be
62+
included either as stand-alone text files, human-readable headers or
63+
in the appropriate machine-readable metadata fields within text or
64+
binary files as long as those fields can be easily viewed by the user.
65+
66+
3) No Modified Version of the Font Software may use the Reserved Font
67+
Name(s) unless explicit written permission is granted by the
68+
corresponding Copyright Holder. This restriction only applies to the
69+
primary font name as presented to the users.
70+
71+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
72+
Software shall not be used to promote, endorse or advertise any
73+
Modified Version, except to acknowledge the contribution(s) of the
74+
Copyright Holder(s) and the Author(s) or with their explicit written
75+
permission.
76+
77+
5) The Font Software, modified or unmodified, in part or in whole,
78+
must be distributed entirely under this license, and must not be
79+
distributed under any other license. The requirement for fonts to
80+
remain under this license does not apply to any document created using
81+
the Font Software.
82+
83+
TERMINATION
84+
This license becomes null and void if any of the above conditions are
85+
not met.
86+
87+
DISCLAIMER
88+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
89+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
90+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
91+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
92+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
93+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
94+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
95+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
96+
OTHER DEALINGS IN THE FONT SOFTWARE.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ This software uses the following test resources under the following licenses:
66
| NotoSerif-Regular_v1.7.ttf | OFL-1.1 | LICENSE-OFL-1.1.txt | Based on commit 5a89b487c648c34c2b6d1b9ebb73bb3fab1df4b2 (20.09.2017) from "https://github.com/googlefonts/noto-fonts"
77
| SourceSerif4-Black.woff | OFL-1.1 | LICENSE-OFL-1.1.txt | Based on commit a9eaef81588dddd479f2275d87b3707ed7ae2847 (26.01.2021) from "https://github.com/adobe-fonts/source-serif"
88
| SourceHanSerifKR-Regular.otf | OFL-1.1 | LICENSE-OFL-1.1.txt | Based on commit 59e61fd2e39967b6d3b713cdb47612893ab989e1 (26.01.2022) from "https://github.com/adobe-fonts/source-han-serif"
9-
| cmr10.afm | LPPL-1.3c | LICENSE-LPPL-1.3c.txt | https://ctan.org/tex-archive/fonts/amsfonts/afm?lang=en (26.06.2022)
9+
| cmr10.afm | SIL OFL-1.1 | LICENSE-SIL-1.1.txt | https://www.ams.org/arc/resources/amsfonts-about.html (13.09.2023)
10+
| cmr10.pfb | SIL OFL-1.1 | LICENSE-SIL-1.1.txt | https://www.ams.org/arc/resources/amsfonts-about.html (13.09.2023)
11+
| cmr10.pfm | SIL OFL-1.1 | LICENSE-SIL-1.1.txt | https://www.ams.org/arc/resources/amsfonts-about.html (13.09.2023)
12+
| SourceHanSansHW-Regular.otf | LICENCE-SIL-1.1.txt | https://github.com/adobe-fonts/source-han-sans/releases/tag/2.004R (File: Static Language Specific OTFs, path in zip folder:OTF/japanesHW) (07.09.2023)
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)