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

Add black-and-white Noto Emoji #37

Draft
wants to merge 1 commit into
base: master
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
1 change: 1 addition & 0 deletions categories.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ GoNotoCurrent=(
"NotoSansSymbols2-Regular.ttf"
"NotoSansMath-Regular.ttf"
"NotoMusic-Regular.ttf"
"NotoEmoji-Regular.ttf"
)

GoNotoAfricaMiddleEast=(
Expand Down
19 changes: 19 additions & 0 deletions helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,25 @@ drop_vertical_tables() {
cd "$OLDPWD"
}

# download black-and-white Noto Emoji (not NotoColor)
fetch_noto_emoji() {
local output_font=NotoEmoji-Regular.ttf
local url="https://fonts.google.com/download?family=Noto%20Emoji"
local zipfile=$(basename "$url")

if [[ -e "$output_font" ]]; then
echo "Not overwriting existing font $output_font."
return
fi

cd cache/
download_url "$url"
python3 -m zipfile -e "$zipfile" .
mv static/"$output_font" .
rm -rf "$zipfile" static/
cd "$OLDPWD"
}

# create tibetan subset so that GSUB is not overflow'ed.
create_tibetan_subset() {
local input_font=NotoSerifTibetan-Regular.ttf
Expand Down
1 change: 1 addition & 0 deletions temporal_fonts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ source categories.sh
mkdir -p cache/

# GoNotoCurrent.ttf
fetch_noto_emoji
create_cjk_subset
create_japanese_kana_subset
create_korean_hangul_subset
Expand Down