Skip to content

Commit

Permalink
pdf fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jstaerk committed Sep 11, 2023
1 parent 5ee488e commit cdde3f2
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 8 deletions.
2 changes: 2 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
=======

Improvement of included notes #331
fixes #259 by Heavenfighter
java -Ddisable-file-logging -jar ..\..\..\mustangproject\Mustang-CLI\target\Mustang-CLI-2.7.4-SNAPSHOT.jar --action validate --source Storno_A.xml

2.7.3
=======
Expand Down
21 changes: 21 additions & 0 deletions Mustang-CLI/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,27 @@
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
<manifestSections>
<manifestSection>
<name>FreeSans.ttf</name>
<manifestEntries>
<Content-Type>font/ttf</Content-Type>
</manifestEntries>
</manifestSection>
<manifestSection>
<name>FreeSerif.ttf</name>
<manifestEntries>
<Content-Type>application/x-font</Content-Type>
</manifestEntries>
</manifestSection>
<manifestSection>
<name>Times-Bold.ttf</name>
<manifestEntries>
<Content-Type>application/x-font</Content-Type>
</manifestEntries>
</manifestSection>
</manifestSections>

</archive>
</configuration>
</plugin>
Expand Down
27 changes: 26 additions & 1 deletion library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
<version>2.8</version>
<version>2.9</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -170,6 +170,31 @@
<excludes>
<exclude>**/logback.xml</exclude>
</excludes>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
<manifestSections>
<manifestSection>
<name>FreeSans.ttf</name>
<manifestEntries>
<Content-Type>font/ttf</Content-Type>
</manifestEntries>
</manifestSection>
<manifestSection>
<name>FreeSerif.ttf</name>
<manifestEntries>
<Content-Type>application/x-font</Content-Type>
</manifestEntries>
</manifestSection>
<manifestSection>
<name>Times-Bold.ttf</name>
<manifestEntries>
<Content-Type>application/x-font</Content-Type>
</manifestEntries>
</manifestSection>
</manifestSections>
</archive>
</configuration>
</plugin>
<plugin>
Expand Down
Binary file removed library/src/main/resources/Times-Bold.ttf
Binary file not shown.
13 changes: 6 additions & 7 deletions library/src/main/resources/fop-config.xconf
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
<strict-validation>true</strict-validation>

<!-- Base URL for resolving relative URLs -->
<base>./</base>

<!-- Font Base URL for resolving relative font URLs -->
<font-base>./</font-base>

<!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->
<source-resolution>72</source-resolution>
<source-resolution>96</source-resolution>
<!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
<target-resolution>72</target-resolution>
<target-resolution>96</target-resolution>

<!-- default page-height and page-width, in case
value is specified as auto -->
Expand All @@ -25,11 +23,12 @@

<renderers>
<renderer mime="application/pdf">
<fonts><!-- https://xmlgraphics.apache.org/fop/1.1/fonts.html auto-embed-->
<font kerning="no" embed-url="file:src/main/resources/FreeSans.ttf" embedding-mode="subset">
<fonts><!-- https://xmlgraphics.apache.org/fop/1.1/fonts.html auto-embed -->
<auto-detect/>
<font kerning="no" embed-url="FreeSans.ttf" embedding-mode="subset">
<font-triplet name="SourceSerifPro" style="normal" weight="normal" />
<font-triplet name="Times-Bold" style="normal" weight="normal" />
</font>

</fonts>
<output-profile>classpath:AdobeCompat-v2.icc</output-profile>
</renderer>
Expand Down
Binary file added library/src/main/resources/src/main/FreeSans.ttf
Binary file not shown.

0 comments on commit cdde3f2

Please sign in to comment.