Skip to content

Commit

Permalink
Issue #43 fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Aug 5, 2020
1 parent a95471d commit 2b1d0a0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ You will need the `maven` build tool and `make`.

[source,sh]
----
java -Xss5m -Xmx1024m -jar target/mn2pdf-1.18.jar --xml-file <XML-FileName> --xsl-file <XSLT-FileName> --pdf-file <Output-PDF-FileName>
java -Xss5m -Xmx1024m -jar target/mn2pdf-1.19.jar --xml-file <XML-FileName> --xsl-file <XSLT-FileName> --pdf-file <Output-PDF-FileName>
----

e.g.

[source,sh]
----
java -Xss5m -Xmx1024m -jar target/mn2pdf-1.18.jar --xml-file tests/G.191.xml --xsl-file tests/itu.recommendation.xsl --pdf-file tests/G.191.pdf
java -Xss5m -Xmx1024m -jar target/mn2pdf-1.19.jar --xml-file tests/G.191.xml --xsl-file tests/itu.recommendation.xsl --pdf-file tests/G.191.pdf
----


Expand All @@ -42,7 +42,7 @@ Update version in `pom.xml`, e.g.:
----
<groupId>com.metanorma.fop</groupId>
<artifactId>mn2pdf</artifactId>
<version>1.18</version>
<version>1.19</version>
<name>Metanorma XML to PDF converter</name>
----

Expand All @@ -53,8 +53,8 @@ Tag the same version in Git:

[source,xml]
----
git tag v1.18
git push origin v1.18
git tag v1.19
git push origin v1.19
----

Then the corresponding GitHub release will be automatically created at:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.metanorma.fop</groupId>
<artifactId>mn2pdf</artifactId>
<version>1.18</version>
<version>1.19</version>
<name>Metanorma XML to PDF converter</name>
<packaging>jar</packaging>
<url>https://www.metanorma.com</url>
Expand Down
28 changes: 28 additions & 0 deletions src/main/resources/pdf_fonts_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,34 @@ Relative config URLs are resolved relative to location of this file.
<font-triplet name="SFMono-Regular" style="italic" weight="bold"/>
</font>

<!-- Lato -->
<font kerning="yes" embed-url="Lato-Regular.ttf">
<font-triplet name="Lato" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="Lato-Bold.ttf">
<font-triplet name="Lato" style="normal" weight="bold"/>
</font>
<font kerning="yes" embed-url="Lato-Italic.ttf">
<font-triplet name="Lato" style="italic" weight="normal"/>
</font>
<font kerning="yes" embed-url="Lato-BoldItalic.ttf">
<font-triplet name="Lato" style="italic" weight="bold"/>
</font>

<!-- Lato Light -->
<font kerning="yes" embed-url="Lato-Light.ttf">
<font-triplet name="Lato Light" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="Lato-Regular.ttf">
<font-triplet name="Lato Light" style="normal" weight="bold"/>
</font>
<font kerning="yes" embed-url="Lato-LightItalic.ttf">
<font-triplet name="Lato Light" style="italic" weight="normal"/>
</font>
<font kerning="yes" embed-url="Lato-Italic.ttf">
<font-triplet name="Lato Light" style="italic" weight="bold"/>
</font>

<font kerning="yes" embed-url="TestFont.ttf" simulate-style="true">
<font-triplet name="TestFont" style="normal" weight="normal"/>
<font-triplet name="TestFont" style="normal" weight="bold"/>
Expand Down

0 comments on commit 2b1d0a0

Please sign in to comment.