Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Twemoji COLRv0 #28550

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified res/fonts/Twemoji_Mozilla/TwemojiMozilla-colr.woff2
Binary file not shown.
23 changes: 23 additions & 0 deletions scripts/update-twemoji.sh
Original file line number Diff line number Diff line change
@@ -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"
Loading