File tree Expand file tree Collapse file tree 8 files changed +6
-7
lines changed
java/com/itextpdf/io/font/otf
resources/com/itextpdf/io/font/otf/GposLookupType5Test
java/com/itextpdf/layout/renderer
resources/com/itextpdf/layout/fonts Expand file tree Collapse file tree 8 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ public class GposLookupType5Test extends ExtendedITextTest {
41
41
42
42
@ Test
43
43
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" );
45
45
GlyphPositioningTableReader gposTableReader = fontProgram .getGposTable ();
46
- GposLookupType5 lookup = (GposLookupType5 ) gposTableReader .getLookupTable (0 );
46
+ GposLookupType5 lookup = (GposLookupType5 ) gposTableReader .getLookupTable (25 );
47
47
List <Glyph > glyphs = Arrays .asList (new Glyph (fontProgram .getGlyphByCode (445 )), new Glyph (fontProgram .getGlyphByCode (394 )));
48
48
GlyphLine gl = new GlyphLine (glyphs );
49
49
gl .setIdx (1 );
@@ -52,8 +52,8 @@ public void verifyMarkToBaseAttachment() throws IOException {
52
52
Assertions .assertEquals (2 , gl .size ());
53
53
Assertions .assertEquals (445 , gl .get (0 ).getCode ());
54
54
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 ());
57
57
}
58
58
59
59
@ 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 @@ -66,7 +66,7 @@ public class WordWrapUnitTest extends ExtendedITextTest {
66
66
67
67
public static final String THAI_FONT = "./src/test/resources/com/itextpdf/layout/fonts/NotoSansThai-Regular.ttf" ;
68
68
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" ;
70
70
71
71
// หากอากาศดีในวันพรุ่งนี้เราจะไปปิกนิก - one sentence, multiple words.
72
72
public static final String THAI_TEXT = "\u0E2B \u0E32 \u0E01 \u0E2D \u0E32 \u0E01 \u0E32 \u0E28 \u0E14 \u0E35 "
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
You can’t perform that action at this time.
0 commit comments