aboutsummaryrefslogtreecommitdiff
path: root/INSTALL.md
blob: 9ead25f938b473bb2d5219acf1de33cb341332ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Installation

 - [Enable bitmap fonts](#enable-bitmap-fonts)
 - [Install from release](#install-from-release)
 - [Build from source](#build-from-source)
 - [Verification](#verification)
 - [Troubleshooting](#troubleshooting)

## Enable bitmap fonts

If you are an Debian/Ubuntu based system, chances are bitmap
fonts are disabled, go ahead and enable them:

```
sudo mv /etc/fonts/conf.d/10-* /etc/fonts/conf.avail/
sudo mv /etc/fonts/conf.d/70-no-bitmaps.conf /etc/fonts/conf.avail/
```

If you would like to disable them for some reason, simply
move the files back back from `/etc/fonts/conf.avail` to
`/etc/fonts/conf.d`.

## Install from release

 1. Grab the latest release from the
[releases](https://github.com/NerdyPepper/scientifica/releases)
page.

 2. Extract the release package:
```shell
tar xzf scientifica-v1.2.tar.gz
```

3. You may install either the `ttf`s or the `otb`s or the
`bdf`s
```shell
# ttfs are recommended
cp ttf/* ~/.local/share/fonts/

# but you may install the otbs if you want to
cp otb/* ~/.local/share/fonts

# bdfs are not recommended
cp bdf/* ~/.local/share/fonts
```

## Build from source

Requirements:

 - java
 - [BitsNPicas](https://github.com/kreativekorp/bitsnpicas)
 - [fontforge](https://fontforge.org)
 - python3

On Debian based distros, you can install all requirements
via:
```
sudo apt install openjdk-8-jdk openjdk-8-jre python3 fontforge
curl -o BitsNPicas.jar "https://github.com/kreativekorp/bitsnpicas/blob/master/downloads/BitsNPicas.jar"
```

1. Open `build.sh` and change variable `BNP` to the full
   path to the BitsNPicas `jar` file.
```shell
# for example:
export BNP="/home/nerdypepper/downloads/BitsNPicas.jar"
```

2. Run `build.sh`
3. If everything went well, you will find the generated font
   files under the `build` folder.
4. Continue with step 3 of "Install from release"

## Verification

Check if your installation procedure was a success:

 1. Run `fc-list | grep sci`
 2. If the output is **not** null, congrats!
 3. Proceed to [Troubleshooting](#troubleshooting) if the output is empty

## Troubleshooting

 If your application does not recognize the font, you can
try a couple of things:

 - use `ttf` variant instead of the `otb` or `bdf`
   variants
 - run `fc-cache --really-force -v` and verify again
 - open an issue, I'd love to help you out!