Skip to content

Commit

Permalink
Fix some failing feature graphic generations
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastProject committed Feb 18, 2024
1 parent 2b8214e commit c6a34ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .scripts/generate_feature_graphic/generate_feature_graphic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ for lang in "$script_location/../../fastlane/metadata/android/"*; do
if grep -q — title.txt; then
# Try splitting title.txt on — (em dash)
IFS='' read -r appname subtext < title.txt
elif grep -q – title.txt; then
# No result, try splitting title.txt on – (en dash)
IFS='' read -r appname subtext < title.txt
else
# No result, try splitting on - (dash)
IFS='-' read -r appname subtext < title.txt
Expand All @@ -25,6 +28,7 @@ for lang in "$script_location/../../fastlane/metadata/android/"*; do
# We specifically need the Serif version because of the 200 weight
case "$(basename "$lang")" in
bg|el-GR|ru-RU|uk) sed -i "s/Lexend Deca/Noto Serif/" featureGraphic.svg ;;
hi-IN) sed -i "s/Lexend Deca/Noto Serif Devanagari/" featureGraphic.svg ;;
ja-JP) sed -i "s/Lexend Deca/Noto Serif CJK JP/" featureGraphic.svg ;;
ko) sed -i "s/Lexend Deca/Noto Serif CJK KR/" featureGraphic.svg ;;
kn-IN) sed -i -e 's/font-size="150"/font-size="100"/' -e 's/y="285.511"/y="235.511"/' featureGraphic.svg ;;
Expand Down

0 comments on commit c6a34ba

Please sign in to comment.