Skip to content

Commit e9b9a3b

Browse files
committed
Remove Jaldi font in order to reduce package size.
1 parent fceb3d6 commit e9b9a3b

File tree

6 files changed

+4
-70
lines changed

6 files changed

+4
-70
lines changed

changelogs/2.2.2.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## 2.2.2
2+
* Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.5.0 to 3.11.2 by @dependabot in https://github.com/LibrePDF/OpenPDF/pull/1358
3+
* Rename openpdf-html config file til openpdf.conf and some minor fixes by @andreasrosdal in https://github.com/LibrePDF/OpenPDF/pull/1360
4+
* Remove GenShinGothic-Normal.ttf in order to reduce overall jar file size from 21MB to 15MB.

openpdf/src/test/java/com/lowagie/text/pdf/TTFCacheTest.java

Lines changed: 0 additions & 53 deletions
This file was deleted.

openpdf/src/test/java/com/lowagie/text/pdf/fonts/AdvanceTypographyTest.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,6 @@
1818
*/
1919
class AdvanceTypographyTest {
2020

21-
/**
22-
* Without glyph substitution out will be {660,666,676,1143,656,1130}, which is no correct FopGlyphProcessor
23-
* performs glyph substitution to correct the output
24-
*
25-
* @throws Exception - DocumentException or IOException thrown by the processedContent() method
26-
*/
27-
@Test
28-
void testTypographySubstitution() throws Exception {
29-
char[] expectedOutput = {660, 666, 911, 656, 1130};
30-
byte[] processedContent = FopGlyphProcessor.convertToBytesWithGlyphs(
31-
BaseFont.createFont("fonts/jaldi/Jaldi-Regular.ttf", BaseFont.IDENTITY_H, false),
32-
"नमस्ते", "fonts/jaldi/Jaldi-Regular.ttf", new HashMap<>(), "dflt");
33-
String str = new String(processedContent, "UnicodeBigUnmarked");
34-
35-
assertArrayEquals(expectedOutput, str.toCharArray());
36-
}
37-
3821
/**
3922
* In some fonts combination of two characters can be represented by single glyph This method tests above case.
4023
*
-452 KB
Binary file not shown.
-298 KB
Binary file not shown.
-440 KB
Binary file not shown.

0 commit comments

Comments
 (0)