omegamma/assets/img/badges/fr/export.sh

12 lines
455 B
Bash
Raw Normal View History

#!/bin/bash
# This script exports all fonts from svgs to path, and needs to be re-run every time the original file is modified.
# Programs required: inkscape, scour
# Fonts required: Ubuntu, Sharp Sans, Source Sans Pro
for file in *-text.svg; do
basename="${file%-*}"
rm $basename.svg
inkscape $basename-text.svg --export-filename=$basename-s.svg --export-text-to-path
scour -i $basename-s.svg -o $basename.svg
rm $basename-s.svg
done