qrr-py/ch_kreuz.py

20 lines
1.1 KiB
Python

#!/usr/bin/env python3
import svgutils.transform as st
def swisscross():
return st.fromstring(
'<?xml version="1.0" encoding="utf-8"?>\
<svg width="7mm" height="7mm" version="1.1" id="Ebene_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\
viewBox="0 0 19.8 19.8" style="enable-background:new 0 0 19.8 19.8;" xml:space="preserve">\
<style type="text/css">\
.st0{fill:#FFFFFF;}\
.st1{fill:none;stroke:#FFFFFF;stroke-width:1.4357;stroke-miterlimit:10;}\
</style>\
<polygon points="18.3,0.7 1.6,0.7 0.7,0.7 0.7,1.6 0.7,18.3 0.7,19.1 1.6,19.1 18.3,19.1 19.1,19.1 19.1,18.3 19.1,1.6 19.1,0.7 "/>\
<rect x="8.3" y="4" class="st0" width="3.3" height="11"/>\
<rect x="4.4" y="7.9" class="st0" width="11" height="3.3"/>\
<polygon class="st1" points="0.7,1.6 0.7,18.3 0.7,19.1 1.6,19.1 18.3,19.1 19.1,19.1 19.1,18.3 19.1,1.6 19.1,0.7 18.3,0.7 1.6,0.7 0.7,0.7 "/>\
</svg>'
).getroot()