Skip to content

Commit

Permalink
FiraCode font added into config
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Sep 1, 2020
1 parent 2b1d0a0 commit a59e0cb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SHELL ?= /bin/bash

#JAR_VERSION := $(shell mvn -q -Dexec.executable="echo" -Dexec.args='$${project.version}' --non-recursive exec:exec -DforceStdout)
JAR_VERSION := 1.17
JAR_VERSION := 1.20
JAR_FILE := mn2pdf-$(JAR_VERSION).jar

all: target/$(JAR_FILE)
Expand Down
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.19.jar --xml-file <XML-FileName> --xsl-file <XSLT-FileName> --pdf-file <Output-PDF-FileName>
java -Xss5m -Xmx1024m -jar target/mn2pdf-1.20.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.19.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.20.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.19</version>
<version>1.20</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.19
git push origin v1.19
git tag v1.20
git push origin v1.20
----

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.19</version>
<version>1.20</version>
<name>Metanorma XML to PDF converter</name>
<packaging>jar</packaging>
<url>https://www.metanorma.com</url>
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/pdf_fonts_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ Relative config URLs are resolved relative to location of this file.
<font-triplet name="Lato Light" style="italic" weight="bold"/>
</font>

<!-- FiraCode -->
<font kerning="yes" embed-url="FiraCode-Regular.ttf">
<font-triplet name="FiraCode" style="normal" weight="normal"/>
</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 a59e0cb

Please sign in to comment.