apps.ad5001.eu/static/img/platforms/en/export.sh

12 lines
438 B
Bash
Executable File

#!/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
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