File tree Expand file tree Collapse file tree 9 files changed +8
-8
lines changed
resources/itext/io/font/otf/GposLookupType5Test
resources/itext/layout/fonts Expand file tree Collapse file tree 9 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,10 @@ public class GposLookupType5Test : ExtendedITextTest {
34
34
35
35
[ NUnit . Framework . Test ]
36
36
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
+ ) ;
38
39
GlyphPositioningTableReader gposTableReader = fontProgram . GetGposTable ( ) ;
39
- GposLookupType5 lookup = ( GposLookupType5 ) gposTableReader . GetLookupTable ( 0 ) ;
40
+ GposLookupType5 lookup = ( GposLookupType5 ) gposTableReader . GetLookupTable ( 25 ) ;
40
41
IList < Glyph > glyphs = JavaUtil . ArraysAsList ( new Glyph ( fontProgram . GetGlyphByCode ( 445 ) ) , new Glyph ( fontProgram
41
42
. GetGlyphByCode ( 394 ) ) ) ;
42
43
GlyphLine gl = new GlyphLine ( glyphs ) ;
@@ -45,8 +46,8 @@ public virtual void VerifyMarkToBaseAttachment() {
45
46
NUnit . Framework . Assert . AreEqual ( 2 , gl . Size ( ) ) ;
46
47
NUnit . Framework . Assert . AreEqual ( 445 , gl . Get ( 0 ) . GetCode ( ) ) ;
47
48
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 ( ) ) ;
50
51
}
51
52
52
53
[ NUnit . Framework . Test ]
Original file line number Diff line number Diff line change 1
1
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/ |
3
2
| 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"
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public class WordWrapUnitTest : ExtendedITextTest {
47
47
. CurrentContext . TestDirectory ) + "/resources/itext/layout/fonts/NotoSans-Regular.ttf" ;
48
48
49
49
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" ;
51
51
52
52
// หากอากาศดีในวันพรุ่งนี้เราจะไปปิกนิก - one sentence, multiple words.
53
53
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 "
Original file line number Diff line number Diff line change 1
1
Please notice that the following fonts are used with the mentioned below licenses.
2
2
3
3
* 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
5
4
* NotoColorEmoji - SIL Open Font License v1.1
6
5
* NotoEmoji-Regular - SIL Open Font License v1.1
7
6
* NotoSansCJKjp-Bold - SIL Open Font License v1.1
Original file line number Diff line number Diff line change 1
- 45554228c115f16152064c2fe9580e0542dd381e
1
+ 9d53a68ec0f6b37fca7a158173dd4186797af57b
You can’t perform that action at this time.
0 commit comments