mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[hb-draw-compare] Spoonfeed svgo
This commit is contained in:
1 parent
c86e0fcd3b
commit
3d68517c38
1 file changed
+5
-1
@@ -67,12 +67,16 @@ for backend in $BACKEND0 $BACKEND1; do
|
||||
done
|
||||
|
||||
echo "Optimizing SVGs..." >&2
|
||||
$SVGO --quiet --precision 0 --folder "$dir"
|
||||
# svgo doesn't seem to handle too many files at once, even with --folder. Spoonfeed it.
|
||||
ls "$dir"/*.svg |
|
||||
xargs -n 1000 \
|
||||
$SVGO --quiet --precision 0
|
||||
|
||||
echo "Diffing SVGs..." >&2
|
||||
for unicode in $unicodes; do
|
||||
numchars=$((numchars+1))
|
||||
if cmp --quiet "$dir/$unicode.$BACKEND0.svg" "$dir/$unicode.$BACKEND1.svg"; then
|
||||
echo "Charater $unicode is the same." >&2
|
||||
continue
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user