beremiz
Clone
Summary
Browse
Changes
Graph
SVGHMI: Implemented "Add Font" and "Remove Font", add font embedding in CSS at build time, tested ok with some OTF for now.
svghmi
2021-03-30, Edouard Tisserant
938b55abe946
SVGHMI: Implemented "Add Font" and "Remove Font", add font embedding in CSS at build time, tested ok with some OTF for now.
#!/bin/bash
INKSCAPE=inkscape
for i in `cat icons.svg |grep -o -e '%%[^%]*%%'|sed 's/%//g'`
do
if [ $i.png -nt icons.svg ]; then
echo "Skip $i"
else
rm -f $i.png
echo "$INKSCAPE" icons.svg -z -e $i.png -i $i
"$INKSCAPE" icons.svg -z -e $i.png -i $i
fi
done