From e5bbeb0f6c54586e643fbd24f2d449ace048df1e Mon Sep 17 00:00:00 2001 From: Thatchapon Unprasert Date: Fri, 26 Jan 2024 13:25:59 +0700 Subject: [PATCH] Updated for when only iOS ACE is available --- README.md | 2 ++ apple.sh | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 32a6733..61fd2a1 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,8 @@ Python and shell scripts to backport and theme [Apple Color Emoji font](https:// Execute `./apple.sh HD`, you will get `AppleColorEmoji@2x.ttc` (for iOS 10 and above) and `AppleColorEmoji@2x.ttf` (for iOS 9 and below) under `apple` directory. +If you only have `AppleColorEmoji_iOS.ttc`, execute `./apple.sh HD iOS` instead. + # Notable Python Scripts EmojiFonts deals with certain font tables; mainly `GDEF` and `sbix`. diff --git a/apple.sh b/apple.sh index 35b694c..be4ef07 100755 --- a/apple.sh +++ b/apple.sh @@ -3,10 +3,12 @@ set -e NAME=apple +MOD=$1 +KIND=$2 +[[ $KIND == '' ]] && KIND=macOS IOS_FONT_NAME=AppleColorEmoji_iOS -MAC_FONT_NAME=AppleColorEmoji_macOS +MAC_FONT_NAME=AppleColorEmoji_$KIND ASSETS=$NAME -MOD=$1 COLORS= [[ $MOD = 'HD' ]] && HD=true || HD=false