From b64f3add27bac6914ea1f8b2a5e801c7f73bcc76 Mon Sep 17 00:00:00 2001 From: Vika Date: Thu, 3 Mar 2022 00:04:16 +0300 Subject: fonts: init font update script This will be used to embed fonts into the executable to not rely on Google Fonts anymore. --- .gitignore | 3 ++- fonts/update.sh | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 fonts/update.sh diff --git a/.gitignore b/.gitignore index fbaa011..e4d4a27 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ dump.rdb .\#* .*~ *~ -/test-dir \ No newline at end of file +/test-dir +fonts/* diff --git a/fonts/update.sh b/fonts/update.sh new file mode 100755 index 0000000..02dcbee --- /dev/null +++ b/fonts/update.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -e +cd fonts +url='https://fonts.google.com/download?family=Lato|Caveat|Noto%20Color%20Emoji|Noto%20Colr%20Emoji%20Glyf' +tmp=$(mktemp) +curl "$url" > "$tmp" +unzip -uo "$tmp" +rm "$tmp" -- cgit 1.4.1