Skip to content

Commit cba8d63

Browse files
Merge pull request #2628 from il-Luca/main
Fix for minor issues with feature graphic generation
2 parents 79853e5 + dd69182 commit cba8d63

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.scripts/generate_feature_graphic/featureGraphic.svg

Lines changed: 2 additions & 2 deletions
Loading

.scripts/generate_feature_graphic/generate_feature_graphic.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,18 @@ for lang in "$script_location/../../fastlane/metadata/android/"*; do
3636
# (Lobster and Lexend have limited language support)
3737
case "$(basename "$lang")" in
3838
bg|el-GR|ru-RU|uk) sed -i "s/Lexend/Noto Sans/" featureGraphic.svg ;;
39-
fa-IR) sed -i -e 's/svg direction="ltr"/svg direction="rtl"/' -e "s/Lobster/Noto Sans Arabic/" -e "s/Lexend/Noto Sans Arabic/" featureGraphic.svg ;;
39+
ar|fa-IR) sed -i -e 's/svg direction="ltr"/svg direction="rtl"/' -e "s/Lobster/Noto Sans Arabic/" -e "s/Lexend/Noto Sans Arabic/" featureGraphic.svg ;;
40+
he-IL) sed -i -e "s/Lobster/Noto Sans Hebrew/" -e "s/Lexend/Noto Sans Hebrew/" featureGraphic.svg ;;
4041
hi-IN) sed -i -e "s/Lobster/Noto Sans Devanagari/" -e "s/Lexend/Noto Sans Devanagari/" featureGraphic.svg ;;
4142
ja-JP) sed -i "s/Lexend/Noto Sans CJK JP/" featureGraphic.svg ;;
42-
kn-IN) sed -i -e 's/font-size="150"/font-size="125"/' -e "s/Lobster/Noto Sans Kannada/" featureGraphic.svg ;;
43+
kn-IN) sed -i -e 's/font-size="150"/font-size="125"/' -e 's/\(<tspan x="469" \)y="270"/\1y="240"/' -e "s/Lobster/Noto Sans Kannada/" -e "s/Lexend/Noto Sans Kannada/" featureGraphic.svg ;;
4344
ko) sed -i "s/Lexend/Noto Sans CJK KR/" featureGraphic.svg ;;
4445
zh-CN) sed -i "s/Lexend/Noto Sans CJK SC/" featureGraphic.svg ;;
4546
zh-TW) sed -i -e "s/Lobster/Noto Sans CJK TC/" -e "s/Lexend/Noto Sans CJK TC/" featureGraphic.svg ;;
4647
*) ;;
4748
esac
4849
fi
50+
4951
# Ensure images directory exists
5052
mkdir -p images
5153
# Generate .png (we use Inkscape because ImageMagick ignores RTL)

0 commit comments

Comments
 (0)