aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: e8f8b728d27ecdf3fbff057ab539ca75bb5515a7 (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
# Alicorn Network website

Just a simple website, for fun.

The glitch animation is generated from the glitch.scss file. The output file
is commited because the glitch is randomly generated when we compilated
the glitch.scss file and we *want* to keep the animation when we push the
website elsewhere.

For keeping this repo light, the font unifont_jp-13.0.03.ttf is not commited.
The official website is: http://unifoundry.com/unifont/index.html

*BUT* the font is overweight (11MB!) for reduce it one can use the following
command to generate the ascii list of used char (don't forget to update it
if needed). The unicode list aswell the unicode list is commited for simplicity.

```
python -c 'import sys; print("\n".join(["u+%04x" % (ord(c)) for c in sys.stdin.read()]))' < letters-in-unicode.txt > letters-in-ascii.txt
```

Then you need to generated the lightened font based on the official you need
to install [fonttools](https://github.com/fonttools/fonttools) and use the
following command:

```
pyftsubset unifont_jp-13.0.03.ttf --output-file=unifont_jp-13.0.03_custom.ttf --unicodes-file=letters-in-ascii.txt
```

The file `unifont_jp-13.0.03_custom.ttf` *IS* the font name hardcoded in the
page style!