Update Twemoji COLRv0

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-11-26 13:37:43 +00:00
parent 7f13495b03
commit f2c59cf2f2
No known key found for this signature in database
GPG key ID: A2B008A5F49F5D0D
2 changed files with 23 additions and 0 deletions

23
scripts/update-twemoji.sh Executable file
View file

@ -0,0 +1,23 @@
#!/bin/bash
set -ex
tmpdir=$(mktemp -d)
scriptdir=$(dirname "$(realpath "$0")")
git clone --depth 1 https://github.com/win98se/twemoji-colr.git "$tmpdir"
pushd "$tmpdir"
# Install dependencies
npm i
# Build fonts
make
woff2_compress "build/Twemoji Mozilla.ttf"
# Move into the right place
mv "build/Twemoji Mozilla.woff2" "$scriptdir/../res/fonts/Twemoji_Mozilla/TwemojiMozilla-colr.woff2"
# cleanup
popd
rm -Rf "$tmpdir"