Skip to content

Commit b3327a8

Browse files
committed
Merge branch 'develop' into devsecops
2 parents aa3baca + f705f92 commit b3327a8

File tree

9 files changed

+8
-8
lines changed

9 files changed

+8
-8
lines changed

itext.tests/itext.io.tests/itext/io/font/otf/GposLookupType5Test.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ public class GposLookupType5Test : ExtendedITextTest {
3434

3535
[NUnit.Framework.Test]
3636
public virtual void VerifyMarkToBaseAttachment() {
37-
TrueTypeFont fontProgram = (TrueTypeFont)FontProgramFactory.CreateFont(RESOURCE_FOLDER + "KhmerOS.ttf");
37+
TrueTypeFont fontProgram = (TrueTypeFont)FontProgramFactory.CreateFont(RESOURCE_FOLDER + "NotoSansKhmer-Regular.ttf"
38+
);
3839
GlyphPositioningTableReader gposTableReader = fontProgram.GetGposTable();
39-
GposLookupType5 lookup = (GposLookupType5)gposTableReader.GetLookupTable(0);
40+
GposLookupType5 lookup = (GposLookupType5)gposTableReader.GetLookupTable(25);
4041
IList<Glyph> glyphs = JavaUtil.ArraysAsList(new Glyph(fontProgram.GetGlyphByCode(445)), new Glyph(fontProgram
4142
.GetGlyphByCode(394)));
4243
GlyphLine gl = new GlyphLine(glyphs);
@@ -45,8 +46,8 @@ public virtual void VerifyMarkToBaseAttachment() {
4546
NUnit.Framework.Assert.AreEqual(2, gl.Size());
4647
NUnit.Framework.Assert.AreEqual(445, gl.Get(0).GetCode());
4748
NUnit.Framework.Assert.AreEqual(394, gl.Get(1).GetCode());
48-
NUnit.Framework.Assert.AreEqual(-1, gl.Get(1).GetAnchorDelta());
49-
NUnit.Framework.Assert.AreEqual(756, gl.Get(1).GetXPlacement());
49+
NUnit.Framework.Assert.AreEqual(0, gl.Get(1).GetAnchorDelta());
50+
NUnit.Framework.Assert.AreEqual(0, gl.Get(1).GetXPlacement());
5051
}
5152

5253
[NUnit.Framework.Test]
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"

itext.tests/itext.layout.tests/itext/layout/renderer/WordWrapUnitTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class WordWrapUnitTest : ExtendedITextTest {
4747
.CurrentContext.TestDirectory) + "/resources/itext/layout/fonts/NotoSans-Regular.ttf";
4848

4949
public static readonly String KHMER_FONT = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
50-
.CurrentContext.TestDirectory) + "/resources/itext/layout/fonts/KhmerOS.ttf";
50+
.CurrentContext.TestDirectory) + "/resources/itext/layout/fonts/NotoSansKhmer-Regular.ttf";
5151

5252
// หากอากาศดีในวันพรุ่งนี้เราจะไปปิกนิก - one sentence, multiple words.
5353
public const String THAI_TEXT = "\u0E2B\u0E32\u0E01\u0E2D\u0E32\u0E01\u0E32\u0E28\u0E14\u0E35" + "\u0E43\u0E19\u0E27\u0E31\u0E19\u0E1E\u0E23\u0E38\u0E48\u0E07\u0E19\u0E35\u0E49"
Binary file not shown.

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

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
45554228c115f16152064c2fe9580e0542dd381e
1+
9d53a68ec0f6b37fca7a158173dd4186797af57b

0 commit comments

Comments
 (0)