diff options
-rw-r--r-- | INSTALL.md | 12 | ||||
-rwxr-xr-x | build.sh | 3 |
2 files changed, 7 insertions, 8 deletions
@@ -60,17 +60,17 @@ sudo apt install openjdk-8-jdk openjdk-8-jre python3 fontforge | |||
60 | curl -o BitsNPicas.jar "https://github.com/kreativekorp/bitsnpicas/blob/master/downloads/BitsNPicas.jar" | 60 | curl -o BitsNPicas.jar "https://github.com/kreativekorp/bitsnpicas/blob/master/downloads/BitsNPicas.jar" |
61 | ``` | 61 | ``` |
62 | 62 | ||
63 | 1. Open `build.sh` and change variable `BNP` to the full | 63 | 1. 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: |
67 | export BNP="/home/nerdypepper/downloads/BitsNPicas.jar" | 68 | user@host$ BNP="/home/nerdypepper/BitsNPicas.jar" ./build.sh |
68 | ``` | 69 | ``` |
69 | 70 | ||
70 | 2. Run `build.sh` | 71 | 2. If everything went well, you will find the generated font |
71 | 3. If everything went well, you will find the generated font | ||
72 | files under the `build` folder. | 72 | files under the `build` folder. |
73 | 4. Continue with step 3 of "Install from release" | 73 | 3. Continue with step 3 of "Install from release" |
74 | 74 | ||
75 | ## Verification | 75 | ## Verification |
76 | 76 | ||
@@ -1,7 +1,5 @@ | |||
1 | #! /usr/bin/env bash | 1 | #! /usr/bin/env bash |
2 | 2 | ||
3 | export BNP="BitsNPicas.jar" | ||
4 | |||
5 | ff_filter() { | 3 | ff_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() { | |||
9 | ttf_filter() { | 7 | ttf_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 | ||