Начало

This commit is contained in:
Andrei Astafev 2021-12-13 11:13:23 +03:00
commit c65a4795a6
4 changed files with 58 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
dist

9
README.md Normal file
View File

@ -0,0 +1,9 @@
== Iosevka Prog
Скрипт для сборки шрифта Iosevka Prog, похожего на [PragmataPro](https://fsd.it/shop/fonts/pragmatapro/).
Для работы требуется установка [Docker](https://www.docker.com/).
```sh
sudo apt-get install docker.io
```

17
build-iosevka-prog-font.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
FILE=$( readlink -f "${BASH_SOURCE[0]}" )
DIR=$( dirname ${FILE} )
CONFIG="${DIR}/private-build-plans.toml"
if [ -r "${CONFIG}" ]; then
if command -v docker; then
sudo docker run -it -v $(pwd):/build avivace/iosevka-build -- ttf::iosevka-prog
sudo chown -R $(id -u):$(id -g) "${DIR}/dist"
else
echo "Docker executable not found"
fi
else
echo "Can't read config file ${CONFIG}"
fi

30
private-build-plans.toml Normal file
View File

@ -0,0 +1,30 @@
[buildPlans.iosevka-prog]
family = "Iosevka Prog"
spacing = "fontconfig-mono"
serifs = "sans"
no-cv-ss = true
no-ligation = true
[buildPlans.iosevka-prog.variants]
inherits = "ss08"
[buildPlans.iosevka-prog.weights.thin]
shape = 100
menu = 100
css = 100
[buildPlans.iosevka-prog.weights.regular]
shape = 400
menu = 400
css = 400
[buildPlans.iosevka-prog.weights.bold]
shape = 700
menu = 700
css = 700
[buildPlans.iosevka-prog.widths.normal]
shape = 450
menu = 5
css = "normal"