Skip to content

Commit 9d53a68

Browse files
committed
Remove KhmerOS usages
DEVSIX-3998
1 parent 4555422 commit 9d53a68

File tree

8 files changed

+6
-7
lines changed

8 files changed

+6
-7
lines changed

io/src/test/java/com/itextpdf/io/font/otf/GposLookupType5Test.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public class GposLookupType5Test extends ExtendedITextTest {
4141

4242
@Test
4343
public void verifyMarkToBaseAttachment() throws IOException {
44-
TrueTypeFont fontProgram = (TrueTypeFont)FontProgramFactory.createFont(RESOURCE_FOLDER + "KhmerOS.ttf");
44+
TrueTypeFont fontProgram = (TrueTypeFont)FontProgramFactory.createFont(RESOURCE_FOLDER + "NotoSansKhmer-Regular.ttf");
4545
GlyphPositioningTableReader gposTableReader = fontProgram.getGposTable();
46-
GposLookupType5 lookup = (GposLookupType5) gposTableReader.getLookupTable(0);
46+
GposLookupType5 lookup = (GposLookupType5) gposTableReader.getLookupTable(25);
4747
List<Glyph> glyphs = Arrays.asList(new Glyph(fontProgram.getGlyphByCode(445)), new Glyph(fontProgram.getGlyphByCode(394)));
4848
GlyphLine gl = new GlyphLine(glyphs);
4949
gl.setIdx(1);
@@ -52,8 +52,8 @@ public void verifyMarkToBaseAttachment() throws IOException {
5252
Assertions.assertEquals(2, gl.size());
5353
Assertions.assertEquals(445, gl.get(0).getCode());
5454
Assertions.assertEquals(394, gl.get(1).getCode());
55-
Assertions.assertEquals(-1, gl.get(1).getAnchorDelta());
56-
Assertions.assertEquals(756, gl.get(1).getXPlacement());
55+
Assertions.assertEquals(0, gl.get(1).getAnchorDelta());
56+
Assertions.assertEquals(0, gl.get(1).getXPlacement());
5757
}
5858

5959
@Test
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
This software uses the following test resources under the following licenses:
2-
| KhmerOS.ttf | LGPL License | https://sourceforge.net/projects/khmer/files/Fonts%20-%20KhmerOS/KhmerOS%20Fonts%205.0-%20LGPL%20Licence/ |
32
| NotoNaskhArabic-Regular | OFL-1.1 | LICENSE_OFL.txt | In development version of font based on commit 4cdde035fd5138d6653a2176ba728b5b6f8cc533 (30.10.2019) from repository: "https://github.com/googlefonts/noto-fonts"
3+
| NotoSansKhmer-Regular | OFL-1.1 | LICENSE_OFL.txt | In development version of font based on commit 4cdde035fd5138d6653a2176ba728b5b6f8cc533 (30.10.2019) from repository: "https://github.com/googlefonts/noto-fonts"

layout/src/test/java/com/itextpdf/layout/renderer/WordWrapUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class WordWrapUnitTest extends ExtendedITextTest {
6666

6767
public static final String THAI_FONT = "./src/test/resources/com/itextpdf/layout/fonts/NotoSansThai-Regular.ttf";
6868
public static final String REGULAR_FONT = "./src/test/resources/com/itextpdf/layout/fonts/NotoSans-Regular.ttf";
69-
public static final String KHMER_FONT = "./src/test/resources/com/itextpdf/layout/fonts/KhmerOS.ttf";
69+
public static final String KHMER_FONT = "./src/test/resources/com/itextpdf/layout/fonts/NotoSansKhmer-Regular.ttf";
7070

7171
// หากอากาศดีในวันพรุ่งนี้เราจะไปปิกนิก - one sentence, multiple words.
7272
public static final String THAI_TEXT = "\u0E2B\u0E32\u0E01\u0E2D\u0E32\u0E01\u0E32\u0E28\u0E14\u0E35"
Binary file not shown.

layout/src/test/resources/com/itextpdf/layout/fonts/NOTICE.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
Please notice that the following fonts are used with the mentioned below licenses.
22

33
* FreeSans - GPL license you can find following the link: https://www.gnu.org/licenses
4-
* KhmerOS - LGPL license you can find following the link: https://www.gnu.org/licenses
54
* NotoColorEmoji - SIL Open Font License v1.1
65
* NotoEmoji-Regular - SIL Open Font License v1.1
76
* NotoSansCJKjp-Bold - SIL Open Font License v1.1
Binary file not shown.

0 commit comments

Comments
 (0)