Skip to content

Commit

Permalink
Merge pull request #18 from metanorma/font-add
Browse files Browse the repository at this point in the history
FOP font config updated
  • Loading branch information
Intelligent2013 authored Mar 27, 2020
2 parents b69123a + 6e67024 commit fbd172b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ You will need the `maven` build tool and `make`.

[source,sh]
----
java -jar target/mn2pdf-1.4.jar --xml-file <XML-FileName> --xsl-file <XSLT-FileName> --pdf-file <Output-PDF-FileName>
java -jar target/mn2pdf-1.5.jar --xml-file <XML-FileName> --xsl-file <XSLT-FileName> --pdf-file <Output-PDF-FileName>
----

e.g.

[source,sh]
----
java -jar target/mn2pdf-1.4.jar --xml-file tests/G.191.xml --xsl-file tests/itu.recommendation.xsl --pdf-file tests/G.191.pdf
java -jar target/mn2pdf-1.5.jar --xml-file tests/G.191.xml --xsl-file tests/itu.recommendation.xsl --pdf-file tests/G.191.pdf
----


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

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

[source,xml]
----
git tag v1.4
git push origin v1.4
git tag v1.5
git push origin v1.5
----

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.4</version>
<version>1.5</version>
<name>Metanorma XML to PDF converter</name>
<packaging>jar</packaging>
<url>https://www.metanorma.com</url>
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/pdf_fonts_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ Relative config URLs are resolved relative to location of this file.
<alternate embed-url="cambria.ttf"/>
<font-triplet name="Cambria Math" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="cambria.ttc" sub-font="Cambria Math" simulate-style="true">
<alternate embed-url="cambria.ttf"/>
<font-triplet name="Cambria Math" style="normal" weight="bold"/>
</font>
<font kerning="yes" embed-url="cambriab.ttf">
<alternate embed-url="Cambria Bold.ttf"/>
<font-triplet name="Cambria" style="normal" weight="bold"/>
Expand Down Expand Up @@ -159,6 +163,9 @@ Relative config URLs are resolved relative to location of this file.
<font kerning="yes" embed-url="SourceHanSans-Normal.ttc" sub-font="Source Han Sans Normal" simulate-style="true">
<font-triplet name="HanSans" style="italic" weight="normal"/>
</font>
<font kerning="yes" embed-url="SourceHanSans-Normal.ttc" sub-font="Source Han Sans Normal" simulate-style="true">
<font-triplet name="HanSans" style="italic" weight="bold"/>
</font>
<font kerning="yes" embed-url="SourceHanSans-Bold.ttc" sub-font="Source Han Sans Bold">
<font-triplet name="HanSans" style="normal" weight="bold"/>
</font>
Expand Down

0 comments on commit fbd172b

Please sign in to comment.