diff options
author | Akshay <[email protected]> | 2020-04-13 15:52:02 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-04-13 15:52:02 +0100 |
commit | 32920b337ac9381fda5ae1b5ac539df79d3daec0 (patch) | |
tree | c136d5d6e3783e62e22bc7476b6455a66f828b95 | |
parent | 5fac18ec0afedc1a4fe921ba9c21e4c0e9c18d82 (diff) |
change up path configuration
-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 | ||