Добавлены глифы Nerd Fonts

This commit is contained in:
Andrei Astafev 2023-01-13 16:24:52 +03:00
parent d0c6ff6e98
commit 608f7fa600

View File

@ -1,14 +1,27 @@
#!/bin/bash #!/bin/bash
set -e
IOSEVKA_VERSION="17.0.2" IOSEVKA_VERSION="17.0.2"
FONT_NAME=iosevka-prog
FILE=$( readlink -f "${BASH_SOURCE[0]}" ) FILE=$( readlink -f "${BASH_SOURCE[0]}" )
DIR=$( dirname "${FILE}" ) DIR=$( dirname "${FILE}" )
DIST="${DIR}/dist"
OBLIQUE="${DIST}/oblique"
REGULAR="${DIST}/regular"
CONFIG="${DIR}/private-build-plans.toml" CONFIG="${DIR}/private-build-plans.toml"
OUT_DIR="${DIST}/${FONT_NAME}/ttf"
if [ -r "${CONFIG}" ]; then if [ -r "${CONFIG}" ]; then
if command -v docker >/dev/null 2>&1; then if command -v docker >/dev/null 2>&1; then
sudo docker run -e FONT_VERSION="${IOSEVKA_VERSION}" -it -v "$(pwd)":/build avivace/iosevka-build -- ttf::iosevka-prog docker run -e FONT_VERSION="${IOSEVKA_VERSION}" -it -v "$DIR":/build avivace/iosevka-build -- ttf::${FONT_NAME}
sudo chown -R "$(id -u)":"$(id -g)" "${DIR}/dist" sudo chown -R "$(id -u)":"$(id -g)" "${DIST}"
mkdir -p "${OBLIQUE}"
cp "${OUT_DIR}/${FONT_NAME}-oblique.ttf" "${OBLIQUE}"
docker run -v "${OBLIQUE}":/in -v "${OUT_DIR}":/out nerdfonts/patcher --complete --careful --adjust-line-height
mkdir -p "${REGULAR}"
cp "${OUT_DIR}/${FONT_NAME}-regular.ttf" "${REGULAR}"
docker run -v "${REGULAR}":/in -v "${OUT_DIR}":/out nerdfonts/patcher --complete --careful --adjust-line-height --mono --removeligatures
else else
echo "Docker executable not found" echo "Docker executable not found"
fi fi