aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--INSTALL.md12
-rwxr-xr-xbuild.sh3
2 files changed, 7 insertions, 8 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 9ead25f..df9831d 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -60,17 +60,17 @@ sudo apt install openjdk-8-jdk openjdk-8-jre python3 fontforge
60curl -o BitsNPicas.jar "https://github.com/kreativekorp/bitsnpicas/blob/master/downloads/BitsNPicas.jar" 60curl -o BitsNPicas.jar "https://github.com/kreativekorp/bitsnpicas/blob/master/downloads/BitsNPicas.jar"
61``` 61```
62 62
631. Open `build.sh` and change variable `BNP` to the full 631. Set an environment variable `BNP` to the path of
64 path to the BitsNPicas `jar` file. 64 `BitsNPicas.jar`, defaults to the current directory if
65 unset
65```shell 66```shell
66# for example: 67# for example:
67export BNP="/home/nerdypepper/downloads/BitsNPicas.jar" 68user@host$ BNP="/home/nerdypepper/BitsNPicas.jar" ./build.sh
68``` 69```
69 70
702. Run `build.sh` 712. If everything went well, you will find the generated font
713. If everything went well, you will find the generated font
72 files under the `build` folder. 72 files under the `build` folder.
734. Continue with step 3 of "Install from release" 733. Continue with step 3 of "Install from release"
74 74
75## Verification 75## Verification
76 76
diff --git a/build.sh b/build.sh
index 5816819..2aae83a 100755
--- a/build.sh
+++ b/build.sh
@@ -1,7 +1,5 @@
1#! /usr/bin/env bash 1#! /usr/bin/env bash
2 2
3export BNP="BitsNPicas.jar"
4
5ff_filter() { 3ff_filter() {
6 fontforge -c 'open(argv[1]).generate(argv[2])' "$1" "$2" 4 fontforge -c 'open(argv[1]).generate(argv[2])' "$1" "$2"
7} 5}
@@ -9,6 +7,7 @@ ff_filter() {
9ttf_filter() { 7ttf_filter() {
10 # 1 - source file 8 # 1 - source file
11 # 2 - destination file 9 # 2 - destination file
10 BNP=${BNP:="./BitsNPicas.jar"}
12 java -jar "$BNP" convertbitmap -f ttf -o "$2" "$1" 11 java -jar "$BNP" convertbitmap -f ttf -o "$2" "$1"
13} 12}
14 13