Skip to content

Commit

Permalink
Turns out it's a bad idea
Browse files Browse the repository at this point in the history
  • Loading branch information
PoomSmart committed Jun 2, 2023
1 parent 3b18af9 commit a0f63b1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 19 deletions.
16 changes: 7 additions & 9 deletions apple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ if [[ $MOD == 'LQ' ]]
then
COLORS=8
echo "Applying mod: LQ..."
mogrify +dither -posterize 8 -normalize $ASSETS/96/*.png &
mogrify +dither -posterize 8 -normalize $ASSETS/64/*.png &
mogrify +dither -posterize 8 -normalize $ASSETS/40/*.png &
wait -n
mogrify +dither -posterize 8 -normalize $ASSETS/96/*.png
mogrify +dither -posterize 8 -normalize $ASSETS/64/*.png
mogrify +dither -posterize 8 -normalize $ASSETS/40/*.png
fi

echo "Optimizing PNGs..."
Expand All @@ -36,11 +35,10 @@ pngquant --skip-if-larger $COLORS -f --ext .png $ASSETS/96/*.png || true
pngquant --skip-if-larger $COLORS -f --ext .png $ASSETS/64/*.png || true
pngquant --skip-if-larger $COLORS -f --ext .png $ASSETS/40/*.png || true

[[ $HD == true ]] && oxipng -q $ASSETS/160/*.png &
oxipng -q $ASSETS/96/*.png &
oxipng -q $ASSETS/64/*.png &
oxipng -q $ASSETS/40/*.png &
wait -n
[[ $HD == true ]] && oxipng -q $ASSETS/160/*.png
oxipng -q $ASSETS/96/*.png
oxipng -q $ASSETS/64/*.png
oxipng -q $ASSETS/40/*.png

if [[ $MOD != '' ]]
then
Expand Down
3 changes: 1 addition & 2 deletions noto-emoji/noto-emoji.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ python3 gen-handshake.py
for svg in $(find ./svgs -type f -name '*.svg')
do
fname=$(basename $svg)
rsvg-convert -a -h $MAX_SIZE $svg -o images/$MAX_SIZE/${fname/.svg/.png} &
rsvg-convert -a -h $MAX_SIZE $svg -o images/$MAX_SIZE/${fname/.svg/.png}
done
wait -n
../../resize.sh true false false
cd ..

Expand Down
10 changes: 4 additions & 6 deletions prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ echo "Extracting tables..."
# Un-shared tables: ['head', 'hhea', 'meta', 'name', 'trak']
UNSHARED_TABLES='-t head -t hhea -t meta -t name -t trak'
SHARED_TABLES='-x GDEF -x DSIG -x cmap -x feat -x glyf -x hmtx -x loca -x maxp -x morx -x post -x sbix -x vhea -x vmtx -x GPOS -x GlyphOrder -x OS/2'
ttx -q -s -f -x DSIG ${IOS_FONT_NAME}_00.ttf &
ttx -q -s -f $SHARED_TABLES ${IOS_FONT_NAME}_01.ttf &
wait -n
ttx -q -s -f -x DSIG ${IOS_FONT_NAME}_00.ttf
ttx -q -s -f $SHARED_TABLES ${IOS_FONT_NAME}_01.ttf

echo "Removing unneeded strikes..."
python3 ../remove-strikes.py ${IOS_FONT_NAME}_00._s_b_i_x.ttx
Expand All @@ -37,8 +36,7 @@ done
sed 's/_00/_01/g' ${IOS_FONT_NAME}_00.ttx > ${IOS_FONT_NAME}_01.ttx

echo "Building fonts..."
ttx -q -o ${IOS_FONT_NAME}_00.ttf -b ${IOS_FONT_NAME}_00.ttx &
ttx -q -o ${IOS_FONT_NAME}_01.ttf -b ${IOS_FONT_NAME}_01.ttx &
wait -n
ttx -q -o ${IOS_FONT_NAME}_00.ttf -b ${IOS_FONT_NAME}_00.ttx
ttx -q -o ${IOS_FONT_NAME}_01.ttf -b ${IOS_FONT_NAME}_01.ttx

cd ..
3 changes: 1 addition & 2 deletions twemoji/twemoji.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ python3 gen-handshake.py
for svg in $(find ./svgs -type f -name '*.svg')
do
fname=$(basename $svg)
rsvg-convert -a -h $MAX_SIZE $svg -o images/$MAX_SIZE/${fname/.svg/.png} &
rsvg-convert -a -h $MAX_SIZE $svg -o images/$MAX_SIZE/${fname/.svg/.png}
done
wait -n
../../resize.sh true false false
cd ..

Expand Down

0 comments on commit a0f63b1

Please sign in to comment.